Spaces:
Sleeping
Sleeping
Merge pull request #54 from almutareb/fix-doc-issue-in-gui
Browse files
rag_app/structured_tools/structured_tools.py
CHANGED
@@ -78,7 +78,7 @@ def knowledgeBase_search(query:str) -> str:
|
|
78 |
docs = retriever.invoke(query)
|
79 |
|
80 |
# add the session id to each element in `docs`
|
81 |
-
[i.update({"session_id":db.session_id}) for i in docs]
|
82 |
db.add_many(docs)
|
83 |
|
84 |
for doc in docs:
|
|
|
78 |
docs = retriever.invoke(query)
|
79 |
|
80 |
# add the session id to each element in `docs`
|
81 |
+
[i.metadata.update({"session_id":db.session_id}) for i in docs]
|
82 |
db.add_many(docs)
|
83 |
|
84 |
for doc in docs:
|