Spaces:
Running
Running
as-cle-bert
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -23,7 +23,7 @@ def chat_pokemon(message: str, history):
|
|
23 |
context_search = searcher.search_text(message)
|
24 |
reranked_context = searcher.reranking(message, context_search)
|
25 |
context = "\n\n-----------------\n\n".join(reranked_context)
|
26 |
-
final_prompt = f"USER QUERY:\n\n{message
|
27 |
response = chat_completion(final_prompt)
|
28 |
semantic_cache.upload_to_cache(message, response)
|
29 |
r = ""
|
|
|
23 |
context_search = searcher.search_text(message)
|
24 |
reranked_context = searcher.reranking(message, context_search)
|
25 |
context = "\n\n-----------------\n\n".join(reranked_context)
|
26 |
+
final_prompt = f"USER QUERY:\n\n{message}\n\nCONTEXT:\n\n{context}"
|
27 |
response = chat_completion(final_prompt)
|
28 |
semantic_cache.upload_to_cache(message, response)
|
29 |
r = ""
|