From 80d08a7cf742933c008e9ac390334c1ceb972bec Mon Sep 17 00:00:00 2001 From: Ashpreet Bedi Date: Tue, 19 Mar 2024 23:00:01 +0000 Subject: [PATCH] v2.3.62 --- cookbook/claude/exa_search.py | 2 +- phi/tools/exa.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cookbook/claude/exa_search.py b/cookbook/claude/exa_search.py index 07d019352..cc67efc99 100644 --- a/cookbook/claude/exa_search.py +++ b/cookbook/claude/exa_search.py @@ -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) diff --git a/phi/tools/exa.py b/phi/tools/exa.py index 2d4fe4066..f9746f1be 100644 --- a/phi/tools/exa.py +++ b/phi/tools/exa.py @@ -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. """