This project is a minimalist search tool that integrates DuckDuckGo with Langchain to enable real-time LLM-powered information retrieval.
It leverages the DuckDuckGoSearchRun
tool from
langchain_community.tools
and supports multiple LLMs
using
Azure OpenAI APIs.
๐ก Core Langchain Concepts Used:
The architecture is modular, and the backend is built using Flask. Users can test search queries by running a local server and using curl or frontend tools.
๐งช Example usage:
curl -X POST http://localhost:5000/news -H "Content-Type: application/json" -d '{"query": "Hiking tips to mountains"}'
The project uses environment variables to protect sensitive keys. Make sure to check out the included
.env-sample
and setup accordingly.
๐ Source Code: GitHub Repository
Founding Engineer
Ally Solutions