Skip to content

Commit

Permalink
v2.3.62
Browse files Browse the repository at this point in the history
  • Loading branch information
ashpreetbedi committed Mar 19, 2024
1 parent f279024 commit 80d08a7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cookbook/claude/exa_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
from phi.llm.anthropic import Claude
from phi.tools.exa import ExaTools

assistant = Assistant(llm=Claude(), tools=[ExaTools()], show_tool_calls=True)
assistant = Assistant(llm=Claude(), tools=[ExaTools()], show_tool_calls=True, debug_mode=True)
assistant.cli_app(markdown=True)
4 changes: 2 additions & 2 deletions phi/tools/exa.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,11 @@ def search_exa(self, query: str, num_results: int = 5) -> str:
logger.error(f"Failed to search exa {e}")
return f"Error: {e}"

def search_exa_with_contents(self, query: str, num_results: int = 2, text_length_limit: int = 1000) -> str:
def search_exa_with_contents(self, query: str, num_results: int = 3, text_length_limit: int = 1000) -> str:
"""Searches Exa for a query and returns the contents from the search results.
:param query: The query to search for.
:param num_results: The number of results to return. Defaults to 2.
:param num_results: The number of results to return. Defaults to 3.
:param text_length_limit: The length of the text to return. Defaults to 1000.
:return: JSON string of the search results.
"""
Expand Down

0 comments on commit 80d08a7

Please sign in to comment.