Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -130,7 +130,7 @@ def generate_response(prompt):
|
|
130 |
|
131 |
response = rag_chain_with_source.invoke(prompt)
|
132 |
answer = response["answer"]
|
133 |
-
|
134 |
yield sources_txt
|
135 |
|
136 |
# question = "How can I do hybrid search with a pinecone database?"
|
|
|
130 |
|
131 |
response = rag_chain_with_source.invoke(prompt)
|
132 |
answer = response["answer"]
|
133 |
+
formatted_response = f"Answer: {answer}\n\nSources:\n" + "\n".join(sources)
|
134 |
yield sources_txt
|
135 |
|
136 |
# question = "How can I do hybrid search with a pinecone database?"
|