From 3085cf87551eb73ab43da59039c8a813e7d6a71f Mon Sep 17 00:00:00 2001 From: Josh XT Date: Mon, 18 Nov 2024 20:16:17 -0500 Subject: [PATCH] fix collection ref --- agixt/XT.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/agixt/XT.py b/agixt/XT.py index 5a19565962c..4212a55036f 100644 --- a/agixt/XT.py +++ b/agixt/XT.py @@ -95,11 +95,11 @@ def __init__( self.failures = 0 self.input_tokens = 0 self.file_reader = None - if self.conversation_id: + if self.collection_id is not None: self.file_reader = FileReader( agent_name=self.agent_name, agent_config=self.agent.AGENT_CONFIG, - collection_number=self.conversation_id, + collection_number=self.collection_id, ApiClient=self.ApiClient, user=self.user_email, ) @@ -715,7 +715,7 @@ async def learn_from_file( file_url: str = "", file_name: str = "", user_input: str = "", - collection_id: str = "1", + collection_id: str = "0", ): """ Learn from a file