Simple Search Engine App Using Langchain + DuckDuckGo

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

Vivek Sharma

Founding Engineer

Ally Solutions

Logo