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