GenAIExamples icon indicating copy to clipboard operation
GenAIExamples copied to clipboard

Added pinecone support for the ChatQnA application

Open pallavijaini0525 opened this issue 1 year ago • 2 comments

Type of Change

Added pinecone support for the ChatQnA application

Description

I updated the server.py class in the qna-app/app directory to initialize the vector store according to the vectordb argument. Additionally, I made corresponding changes in the utils.py helper class to handle this functionalit,y

I included the "pinecone" folder containing the "ingest.py" and rag_pinecone folder with "chain.py" files and more.

How has this PR been tested?

This pull request has been tested, following the same procedure as the existing RAG flow. The main difference is that the vectordb parameter was set to "pinecone", and a few additional environment variables were configured in the docker-compose-pinecone.yaml file to use the pinecone vectordb. Did the regression testing for redis-db as well.

how to reproduce the test (including hardware information)

Dependency Change?

langchain-pinecone

pallavijaini0525 avatar Apr 12 '24 18:04 pallavijaini0525

@pallavijaini0525 Please handle the pre-CI issues.

ChatQnA/langchain/docker/qna-app/app/server.py:140:14: F821 Undefined name vectordb ChatQnA/langchain/docker/qna-app/app/utils.py:307:23: F821 Undefined name Pinecone ChatQnA/langchain/docker/qna-app/app/utils.py:340:23: F821 Undefined name Pinecone ChatQnA/langchain/pinecone/ingest_intel.py:85:26: F821 Undefined name doc_path ChatQnA/langchain/pinecone/rag_pinecone/chain.py:71:18: F821 Undefined name TGI_LLM_ENDPOINT Found 5 errors.

lvliang-intel avatar Apr 13 '24 09:04 lvliang-intel

I have made sure to pass all PRE-CI tests/pipeline tasks. anything is pending to get approval for this PR?

pallavijaini0525 avatar May 02 '24 21:05 pallavijaini0525

@pallavijaini0525, Could you please move this PR to https://github.com/opea-project/GenAIComps/tree/main/comps/vectorstores/langchain and https://github.com/opea-project/GenAIComps/tree/main/comps/dataprep?

lvliang-intel avatar May 27 '24 00:05 lvliang-intel

closing this PR and opening a new one for the same

pallavijaini0525 avatar Jun 12 '24 18:06 pallavijaini0525