Mikeplockhart commited on
Commit
4c886ca
1 Parent(s): fbb896c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -53,10 +53,11 @@ def search_chroma(query:str):
53
  query_text=query
54
  #n_results=2
55
  )
56
- print(results[0])
57
- print(results[0].QueryResponse.metadata)
58
  instructions = ['\n'.join(item.metadata['payload']['instructions']) for item in results]
59
  text_only= [f"# Title:\n{item.metadata['payload']['title']}\n\n## Description:\n{item.metadata['payload']['doc']}\n\n ## Instructions:\n{instructions}" for item in results]
 
60
  return "".join(text_only)
61
 
62
  def reranking_results(query: str, top_k_results: list[str]):
 
53
  query_text=query
54
  #n_results=2
55
  )
56
+ #print(results[0])
57
+ #print(results[0].QueryResponse.metadata)
58
  instructions = ['\n'.join(item.metadata['payload']['instructions']) for item in results]
59
  text_only= [f"# Title:\n{item.metadata['payload']['title']}\n\n## Description:\n{item.metadata['payload']['doc']}\n\n ## Instructions:\n{instructions}" for item in results]
60
+ print(text_only)
61
  return "".join(text_only)
62
 
63
  def reranking_results(query: str, top_k_results: list[str]):