-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
how to use web search in ollama? #214
Comments
@win4r you can use websearch in Ollama using our DuckDuckGo tool. Checkout an example here: from phi.assistant import Assistant
from phi.tools.duckduckgo import DuckDuckGo
from phi.llm.ollama import OllamaTools
assistant = Assistant(
llm=OllamaTools(model="llama3"),
tools=[DuckDuckGo()],
show_tool_calls=True,
)
assistant.print_response("Whats happening in the US?", markdown=True) |
Can you add debug_mode=True as a param to the Assistant and share debug logs? |
@win4r |
~/ai/phidata$ python assistant.py
DEBUG ============== user ============== No matter how I set the search function, it doesn't work. The same is true for tavily, only the output of large models |
how to use web search in ollama?
The text was updated successfully, but these errors were encountered: