Encyclopedia Autonomica

Encyclopedia Autonomica

Saturday Code Snippet

Teach our LlamaIndex Agent to search the Internet with DuckDuckGo

Jan Daniel Semrau (MFin, CAIO)'s avatar
Jan Daniel Semrau (MFin, CAIO)
Apr 20, 2024
∙ Paid
Share

I was really suffering through the documentation of LlamaIndex to teach my agent how to search the Internet. But now its working.

You start with installing the package. This is usually not included in the documentation and results in a “module not found” error.

pip install llama_index.tools.duckduckgo

Then you can easily import the SearchTool with this sta…

This post is for paid subscribers

Already a paid subscriber? Sign in
© 2025 JDS
Privacy ∙ Terms ∙ Collection notice
Start writingGet the app
Substack is the home for great culture