Spaces:
Runtime error
Runtime error
Update utils.py
Browse files
utils.py
CHANGED
|
@@ -195,7 +195,7 @@ def get_gpt_response(transcription_path, query, logger):
|
|
| 195 |
return "\n\n".join(doc.page_content for doc in docs)
|
| 196 |
|
| 197 |
rag_chain = (
|
| 198 |
-
{"context": retriever
|
| 199 |
| rag_prompt_custom
|
| 200 |
| llm
|
| 201 |
| StrOutputParser()
|
|
|
|
| 195 |
return "\n\n".join(doc.page_content for doc in docs)
|
| 196 |
|
| 197 |
rag_chain = (
|
| 198 |
+
{"context": retriever, "question": RunnablePassthrough()}
|
| 199 |
| rag_prompt_custom
|
| 200 |
| llm
|
| 201 |
| StrOutputParser()
|