From bf6b9b55352f5454adb6b840bfd8000a277efca6 Mon Sep 17 00:00:00 2001 From: Manthan Gupta Date: Fri, 4 Oct 2024 17:38:13 +0530 Subject: [PATCH] fix --- cookbook/agents/sqlite_storage.py | 4 ++-- cookbook/examples/rag_with_lance_and_sqlite/agent.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cookbook/agents/sqlite_storage.py b/cookbook/agents/sqlite_storage.py index ab670bfc2..e9d595a8a 100644 --- a/cookbook/agents/sqlite_storage.py +++ b/cookbook/agents/sqlite_storage.py @@ -1,11 +1,11 @@ -"""Run `pip install duckduckgo-search` to install dependencies.""" +"""Run `pip install duckduckgo-search sqlalchemy openai` to install dependencies.""" from phi.agent import Agent from phi.tools.duckduckgo import DuckDuckGo from phi.storage.agent.sqllite import SqlAgentStorage agent = Agent( - storage=SqlAgentStorage(table_name="recipies", db_file="data.db"), + storage=SqlAgentStorage(table_name="recipes", db_file="data.db"), tools=[DuckDuckGo()], add_chat_history_to_messages=True, ) diff --git a/cookbook/examples/rag_with_lance_and_sqlite/agent.py b/cookbook/examples/rag_with_lance_and_sqlite/agent.py index 277e314df..f84cb8fa3 100644 --- a/cookbook/examples/rag_with_lance_and_sqlite/agent.py +++ b/cookbook/examples/rag_with_lance_and_sqlite/agent.py @@ -34,7 +34,7 @@ # agent.knowledge_base.load(recreate=False) # You can also use this to load a knowledge base after creating agent # Set up SQL storage for the agent's data -storage = SqlAgentStorage(table_name="recipies", db_file="data.db") +storage = SqlAgentStorage(table_name="recipes", db_file="data.db") storage.create() # Create the storage if it doesn't exist # Initialize the Agent with various configurations including the knowledge base and storage