Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
ysolanky committed Nov 20, 2024
1 parent e2d2ad0 commit cc2e85b
Show file tree
Hide file tree
Showing 10 changed files with 13 additions and 10 deletions.
2 changes: 1 addition & 1 deletion cookbook/knowledge/arxiv_kb.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
# Create an agent with the knowledge base
agent = Agent(
knowledge=knowledge_base,
add_context=True,
search_knowledge=True,
)

# Ask the agent about the knowledge base
Expand Down
2 changes: 1 addition & 1 deletion cookbook/knowledge/combined_kb.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
# Initialize the Agent with the combined knowledge base
agent = Agent(
knowledge=knowledge_base,
add_context=True,
search_knowledge=True,
)

knowledge_base.load(recreate=False)
Expand Down
2 changes: 1 addition & 1 deletion cookbook/knowledge/csv_kb.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
# Initialize the Agent with the knowledge_base
agent = Agent(
knowledge=knowledge_base,
add_context=True,
search_knowledge=True,
)

# Use the agent
Expand Down
2 changes: 1 addition & 1 deletion cookbook/knowledge/docx_kb.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
# Create an agent with the knowledge base
agent = Agent(
knowledge=knowledge_base,
add_context=True,
search_knowledge=True,
)

# Ask the agent about the knowledge base
Expand Down
2 changes: 1 addition & 1 deletion cookbook/knowledge/json_kb.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
# Initialize the Agent with the knowledge_base
agent = Agent(
knowledge=knowledge_base,
add_context=True,
search_knowledge=True,
)

# Use the agent
Expand Down
2 changes: 1 addition & 1 deletion cookbook/knowledge/pdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
# Create an agent with the knowledge base
agent = Agent(
knowledge=knowledge_base,
add_context=True,
search_knowledge=True,
)

# Ask the agent about the knowledge base
Expand Down
5 changes: 4 additions & 1 deletion cookbook/knowledge/pdf_url.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
)
knowledge_base.load(recreate=False) # Comment out after first run

agent = Agent(knowledge_base=knowledge_base, add_context=True)
agent = Agent(
knowledge_base=knowledge_base,
search_knowledge=True,
)

agent.print_response("How to make Thai curry?", markdown=True)
2 changes: 1 addition & 1 deletion cookbook/knowledge/text.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
# Initialize the Assistant with the knowledge_base
agent = Agent(
knowledge=knowledge_base,
add_context=True,
search_knowledge=True,
)

# Use the agent
Expand Down
2 changes: 1 addition & 1 deletion cookbook/knowledge/website_kb.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
# Create an agent with the knowledge base
agent = Agent(
knowledge=knowledge_base,
add_context=True,
search_knowledge=True,
)

# Ask the agent about the knowledge base
Expand Down
2 changes: 1 addition & 1 deletion cookbook/knowledge/wikipedia_kb.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
# Create an agent with the knowledge base
agent = Agent(
knowledge=knowledge_base,
add_context=True,
search_knowledge=True,
)

# Ask the agent about the knowledge base
Expand Down

0 comments on commit cc2e85b

Please sign in to comment.