Skip to content

Commit

Permalink
Update lumen/ai/tools.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ahuang11 authored Jan 2, 2025
1 parent 0f9d5f1 commit 252f144
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lumen/ai/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def __init__(self, **params):
def _update_vector_store(self, _, __, sources):
for source in sources:
if not self.vector_store.query(source["text"], threshold=1):
self.vector_store.add([{"text": source["text"], "metadata": {"text": source.get("metadata", "")}}])
self.vector_store.add([{"text": source["text"], "metadata": {"comments": source.get("metadata", "")}}])

async def respond(self, messages: list[Message], **kwargs: Any) -> str:
query = messages[-1]["content"]
Expand Down

0 comments on commit 252f144

Please sign in to comment.