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 ...
Get Enterprise GENERATIVE AI Well-Architected Framework & Patterns now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.