Update app.py
Browse files
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
|
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 ]?")
|