Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
manthanguptaa committed Oct 4, 2024
1 parent da9bef5 commit bf6b9b5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cookbook/agents/sqlite_storage.py
Original file line number Diff line number Diff line change
@@ -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,
)
Expand Down
2 changes: 1 addition & 1 deletion cookbook/examples/rag_with_lance_and_sqlite/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bf6b9b5

Please sign in to comment.