Spaces:
Sleeping
Sleeping
zeyadahmedd
commited on
Commit
•
1aa32b3
1
Parent(s):
9d813d5
Update app.py
Browse files
app.py
CHANGED
@@ -94,9 +94,12 @@ def architecture_with_chroma(data):
|
|
94 |
query_texts=[query],
|
95 |
n_results=5
|
96 |
)
|
|
|
97 |
context = results.get('documents')[0]
|
98 |
results_metadata = list(results.get("metadatas")[0])
|
99 |
results_documents = list(results.get("documents")[0])
|
|
|
|
|
100 |
for i in range(5):
|
101 |
results_documents[i] = f"In {results_metadata[i].get('/Title')}:" + results_documents[i]
|
102 |
for data in results_documents:
|
|
|
94 |
query_texts=[query],
|
95 |
n_results=5
|
96 |
)
|
97 |
+
print(results," de elresults\n")
|
98 |
context = results.get('documents')[0]
|
99 |
results_metadata = list(results.get("metadatas")[0])
|
100 |
results_documents = list(results.get("documents")[0])
|
101 |
+
print(len(results_documents),"da el len bta3 elcontexts\n")
|
102 |
+
print(results_documents)
|
103 |
for i in range(5):
|
104 |
results_documents[i] = f"In {results_metadata[i].get('/Title')}:" + results_documents[i]
|
105 |
for data in results_documents:
|