The AI Research Hub is a web application designed to provide insightful answers and relevant research findings based on your queries. It harnesses the power of Large Language Models (LLMs) and sophisticated information retrieval techniques to delve into complex topics and present comprehensive results.
At its core, the backend features a Deep Research AI Agentic System 🤖🧠 employing a dual-agent architecture orchestrated with LangGraph 🔗 and LangChain 🔗🧩 frameworks. This system is designed as follows:
- Research & Data Collection Agent 🕵️♀️: This agent focuses on actively crawling websites and gathering online information using Tavily 🌐🔍.
- Answer Drafting Agent ✍️: This agent takes the organized information collected by the research agent and synthesizes it into a comprehensive and well-structured answer 📝.
The frontend (React ⚛️) provides a user-friendly interface to interact with this powerful research system.
- Python 🐍
- FastAPI 🚀
- LangChain 🔗🧩
- LangGraph 🔗🕸️
- Tavily 🌐🔍
- Uvicor⚙️
- React ⚛️
- CSS 💅
- JavaScript 🧩
- Navigate to the
frontenddirectory in your project. - Install dependencies:
npm install # or yarn install - Start the development server:
The frontend will typically be accessible at
npm run dev # or yarn devhttp://localhost:3000in your browser 🌐.
- Navigate to the
backenddirectory in your project. - Create a virtual environment (recommended for a clean setup 🪴):
python -m venv venv source venv/bin/activate # On Linux/macOS 🐧🍎 venv\Scripts\activate # On Windows 🪟
- Install dependencies:
pip install -r requirements.txt
- Navigate to the
deep_research_agentdirectory. - Run the Langchain/LangGraph research agent directly :
python main.py
- To run the FastAPI backend API server 🚀:
The backend API will typically be accessible at
cd ../ uvicorn main:app --reloadhttp://127.0.0.1:8000👂.
Important Note: Make sure your backend API keys (for LLMs 🔑, Tavily 🔑, etc.) are properly configured as environment variables or within your backend code for the AI to work its magic ✨.
- Start both the frontend (⚛️) and backend (🐍🔗) development servers.
- Open your favorite web browser 🌐 and go to the frontend URL (usually
http://localhost:3000). - Type your burning research question 🤔 into the input field.
- Click the "Search" button 🖱️.
- The frontend will send your insightful query to the backend API 📡.
- The backend's dual-agent system 🤖🤖, powered by LangGraph 🔗🕸️ and utilizing Tavily 🌐🔍 for web crawling, will process your request. The research agent 🕵️♀️ will gather information, and the answer drafting agent ✍️ will synthesize the findings.
- The backend will send back a comprehensive drafted answer 📝 and the relevant research sources 📚 to the frontend.
- The frontend will proudly display the AI-powered results for your enlightenment 💡.
This project is licensed under the MIT License. 📝


