Demo Time - a GenAI based QnA python app using RAG pattern (LangChain, PineCone & Open AI api)
I’ll share a small Q&A app to show how a RAG pattern can be implemented using the tech stack - Pinecone (SAAS based Vector Database), Langchain & OpenAI.
Step 1: We need to create a Vector index data store in the Pinecone SAAS database having dimension 1536 and supporting cosine metric for retrieval.
Step 2: Install the following python modules.
|
pip langchain pip pinecone |
Step 3: Run the following code snippets which demonstrates how some text data is vectorized using OpenAI’s api and stored in the Pinecone ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access