Spaces:
Runtime error
Runtime error
Shaileshshantaram Kadam commited on
Commit ·
ce18273
1
Parent(s): 26fb17f
Updated app
Browse files- query_data.py +3 -3
query_data.py
CHANGED
|
@@ -25,9 +25,9 @@ QA_PROMPT = PromptTemplate(template=template, input_variables=["question", "cont
|
|
| 25 |
|
| 26 |
def get_chain(vectorstore):
|
| 27 |
llm = OpenAI(temperature=0)
|
| 28 |
-
qa_chain = ConversationalRetrievalChain
|
| 29 |
-
|
| 30 |
-
vectorstore,
|
| 31 |
qa_prompt=QA_PROMPT,
|
| 32 |
condense_question_prompt=CONDENSE_QUESTION_PROMPT,
|
| 33 |
)
|
|
|
|
| 25 |
|
| 26 |
def get_chain(vectorstore):
|
| 27 |
llm = OpenAI(temperature=0)
|
| 28 |
+
qa_chain = ConversationalRetrievalChain(
|
| 29 |
+
retriever=llm,
|
| 30 |
+
vectorstore=vectorstore,
|
| 31 |
qa_prompt=QA_PROMPT,
|
| 32 |
condense_question_prompt=CONDENSE_QUESTION_PROMPT,
|
| 33 |
)
|