devve1 commited on
Commit
22ba2d8
1 Parent(s): 95656ff

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -222,7 +222,7 @@ def main(query: str, client: QdrantClient, collection_name: str, llm, dense_mode
222
  docs = [(scored_point.payload['text'], scored_point.payload['metadata']) for scored_point in scored_points]
223
  contents, metadatas = [list(t) for t in zip(*docs)]
224
 
225
- context = "\n\n".join(contents)
226
  print(f'Context : {context}')
227
 
228
  gen_text = outlines.generate.json(llm, Question, whitespace_pattern=r"[\n ]?")
 
222
  docs = [(scored_point.payload['text'], scored_point.payload['metadata']) for scored_point in scored_points]
223
  contents, metadatas = [list(t) for t in zip(*docs)]
224
 
225
+ context = "\n".join(contents)
226
  print(f'Context : {context}')
227
 
228
  gen_text = outlines.generate.json(llm, Question, whitespace_pattern=r"[\n ]?")