Spaces:
Sleeping
Sleeping
fix: remove cache hit in tool
Browse files
tools.py
CHANGED
@@ -73,9 +73,6 @@ extract_tool = TavilyExtract()
|
|
73 |
def search_and_extract(query: str) -> list[dict]:
|
74 |
"""Performs a web search and returns structured content extracted from top results."""
|
75 |
time.sleep(3) # To avoid hitting the API rate limit in the llm-apis when calling the tool multiple times in a row.
|
76 |
-
if query in cache:
|
77 |
-
print(f"Cache hit for query: {query}")
|
78 |
-
return cache[query]
|
79 |
MAX_NUMBER_OF_CHARS = 10_000
|
80 |
|
81 |
if CUSTOM_DEBUG:
|
|
|
73 |
def search_and_extract(query: str) -> list[dict]:
|
74 |
"""Performs a web search and returns structured content extracted from top results."""
|
75 |
time.sleep(3) # To avoid hitting the API rate limit in the llm-apis when calling the tool multiple times in a row.
|
|
|
|
|
|
|
76 |
MAX_NUMBER_OF_CHARS = 10_000
|
77 |
|
78 |
if CUSTOM_DEBUG:
|