Spaces:
Build error
Build error
Commit
•
b3c91dd
1
Parent(s):
e0408d9
Update app.py
Browse files
app.py
CHANGED
@@ -16,6 +16,8 @@ from langchain.chains.question_answering import load_qa_chain
|
|
16 |
from langchain.retrievers.self_query.base import SelfQueryRetriever
|
17 |
from kor_retriever_lex import kor_retriever
|
18 |
from langchain.docstore.document import Document
|
|
|
|
|
19 |
from self_query_retriever_lex import metadata_field_info, document_content_description
|
20 |
from prompts import GRADE_DOCS_PROMPT, GRADE_ANSWER_PROMPT, GRADE_ANSWER_PROMPT_FAST, GRADE_ANSWER_PROMPT_BIAS_CHECK, GRADE_ANSWER_PROMPT_OPENAI, QA_CHAIN_PROMPT_LEX, QA_CHAIN_PROMPT_TRAVEL
|
21 |
|
|
|
16 |
from langchain.retrievers.self_query.base import SelfQueryRetriever
|
17 |
from kor_retriever_lex import kor_retriever
|
18 |
from langchain.docstore.document import Document
|
19 |
+
from langchain.vectorstores import Pinecone
|
20 |
+
from pinecone.client import Client as Pinecone
|
21 |
from self_query_retriever_lex import metadata_field_info, document_content_description
|
22 |
from prompts import GRADE_DOCS_PROMPT, GRADE_ANSWER_PROMPT, GRADE_ANSWER_PROMPT_FAST, GRADE_ANSWER_PROMPT_BIAS_CHECK, GRADE_ANSWER_PROMPT_OPENAI, QA_CHAIN_PROMPT_LEX, QA_CHAIN_PROMPT_TRAVEL
|
23 |
|