Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Web search is not working #141

Open
alalulu8668 opened this issue Jun 7, 2024 · 0 comments
Open

Web search is not working #141

alalulu8668 opened this issue Jun 7, 2024 · 0 comments

Comments

@alalulu8668
Copy link
Collaborator

web search extension is not working, i got following error message:
{
"error": "object list can't be used in 'await' expression",
"traceback": "Traceback (most recent call last):\n File "/usr/local/lib/python3.11/site-packages/schema_agents/role.py", line 545, in call_tool\n return await tool(*args, **kwargs)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File "", line 2, in search_web\n File "/usr/local/lib/python3.11/site-packages/schema_agents/tools/init.py", line 52, in wrapper\n return await ret\n ^^^^^^^^^\n File "/usr/local/lib/python3.11/site-packages/bioimageio_chatbot/chatbot_extensions/web_search_extension/init.py", line 14, in search_web\n content = await search_duckduckgo(query, langchain_compressor, max_results=5, similarity_threshold=0.5, instant_answers=True, chunk_size=500, num_results_to_process=5)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File "/usr/local/lib/python3.11/site-packages/bioimageio_chatbot/chatbot_extensions/web_search_extension/llm_web_search.py", line 18, in search_duckduckgo\n for answer in await ddgs.answers(query):\n ^^^^^^^^^^^^^^^^^^^^^^^^^\nTypeError: object list can't be used in 'await' expression\n"
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant