Spaces:
Runtime error
Runtime error
Commit
·
1209a38
1
Parent(s):
bac0d19
Update Index.py
Browse files
Index.py
CHANGED
@@ -251,6 +251,7 @@ def rag(domain: str, question: str):
|
|
251 |
answer = _search(question, extractor)
|
252 |
text = _prompt(question)
|
253 |
text += "\n" + "\n".join(x["text"]for x in embeddings.search(question))
|
|
|
254 |
print(text)
|
255 |
|
256 |
return {"question": question, "answer": answer}
|
|
|
251 |
answer = _search(question, extractor)
|
252 |
text = _prompt(question)
|
253 |
text += "\n" + "\n".join(x["text"]for x in embeddings.search(question))
|
254 |
+
print("Look here for context --> ")
|
255 |
print(text)
|
256 |
|
257 |
return {"question": question, "answer": answer}
|