as-cle-bert commited on
Commit
933d8db
·
verified ·
1 Parent(s): b151dc5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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.content}\n\nCONTEXT:\n\n{context}"
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 = ""