Skip to content

πŸ€– An intelligent, multi-agent research assistant powered by LLMs like GPT-4, Claude 3.5, and Gemini 1.5. It performs deep research, summarizes findings, cites sources, and even exports to PDF – all through an interactive Streamlit UI.

Notifications You must be signed in to change notification settings

Yaser-123/LLM-Agent-ResearchSuite

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

28 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ€– LLM-Agent-ResearchSuite

An AI-powered research assistant built using LangChain, Gemini 1.5/2.5, GPT-4, Claude 3.5, and real-time web tools like DuckDuckGo and Wikipedia.

This project enables structured research generation with support for saving, summarizing, and exporting insights in a clean, user-friendly format.


🧩 Problem Statement

With the explosion of online content, manually researching any topic is time-consuming. This agent automates the research process using LLMs and tools to generate structured summaries with verified sources β€” all in seconds.


πŸš€ Features

  • πŸ” Multi-tool Research Agent: Combines Wikipedia, DuckDuckGo search, and file-saving capabilities using LangChain Agents.
  • 🧠 LLM Integration: Supports top-tier models (Gemini 1.5/2.5, GPT-4, Claude 3.5) for accurate and structured output.
  • 🧾 Structured Results: Automatically returns research in a standardized JSON format (Topic, Exploration, Summary, Sources, Tools Used).
  • πŸ“„ PDF Export: Download clean PDF reports generated from markdown using xhtml2pdf.
  • πŸ–±οΈ No-code UI: Built with Streamlit for fast, interactive use.

🌐 Live Demo

Check out the live version here:
πŸ‘‰ LLM-Agent-ResearchSuite – Streamlit App

⚠️ Note: This app may take a few seconds to load based on Streamlit’s server spin-up time.


πŸ“¦ Tech Stack

Component Description
LangChain Agent & tool orchestration
Gemini/GPT/Claude Large Language Models for research
DuckDuckGo API Real-time web search tool
Wikipedia API Fast lookup for verified facts
Streamlit Front-end interface
Pydantic Structured output validation
xhtml2pdf PDF generation from markdown

🧠 How It Works

  1. User enters a research topic.
  2. LLM Agent is activated with selected tools (e.g., Wikipedia, Web Search).
  3. LangChain AgentExecutor loops through tools to gather relevant info.
  4. Output is structured, summarized, and can be saved/exported.

πŸ“ Folder Structure

.
β”œβ”€β”€ tools.py          # LangChain tool definitions
β”œβ”€β”€ web.py            # Main Streamlit app + agent pipeline
β”œβ”€β”€ README.md
└── requirements.txt  # Dependencies

πŸ“Έ Screenshots

Here are a few screenshots that demonstrate how the app works:

🏠 Home Screen

Shows the initial UI where the user enters a research query, selects tools, and picks an LLM.

Home Screen


πŸ“‹ Research Output

Displays the structured research result, including topic, exploration, summary points, sources, and tools used.

Research Output


πŸ“„ Downloaded PDF Preview

Highlights the PDF generation feature, allowing users to download a clean, formatted research report.

PDF Output


πŸ§ͺ Example Use Cases

  • πŸ“š Academic Research Summaries
  • πŸ“ˆ Market or Business Analysis
  • 🦸 Fun Topics (e.g., "Unknown Facts about Batman")
  • πŸ” Real-time info gathering + PDF reporting

🎯 Target Audience

  • Students writing reports or research essays
  • Content creators looking to outline factual content
  • Developers learning how to integrate LLMs with tools

βœ… Why This Project Stands Out

  • βœ”οΈ Combines multi-agent orchestration and tool calling β€” not just a chatbot
  • βœ”οΈ Focused on structured knowledge, not random chat
  • βœ”οΈ Versatile for both fun and professional use
  • βœ”οΈ Strong backend + frontend integration

🚫 Known Limitations

  • Heavily depends on the quality and availability of search results.
  • Requires API keys; free-tier models may sometimes return incomplete outputs.
  • Currently supports only English input and output.

πŸ§ͺ Evaluation

The agent was tested across 10 diverse topics (tech, history, science). It consistently returned structured summaries with 85–90% relevance and accuracy when manually compared to top search results.


πŸ™‹β€β™‚οΈ About Me

I’m a passionate Computer Science student and aspiring AI engineer. This project showcases my ability to combine:

  • πŸ€– AI agent design
  • 🧰 Tool integration (LangChain ecosystem)
  • πŸ–₯️ Full-stack development with Python + Streamlit
  • πŸ“š Prompt engineering & structured output parsing

πŸ“Ž How to Run Locally

  1. Clone the repo
git clone https://github.com/Yaser-123/LLM-Agent-ResearchSuite.git
cd LLM-Agent-ResearchSuite
  1. Install dependencies
pip install -r requirements.txt
  1. Add your .env file with your keys:
GOOGLE_API_KEY=your_key
OPENAI_API_KEY=your_key
ANTHROPIC_API_KEY=your_key
  1. Run the app
streamlit run web.py

πŸ’‘ Future Improvements

  • Add tool usage memory (LangGraph or ReAct-style)
  • Add more search engines (Google SERP, You.com)
  • Allow citation formatting (APA/MLA/Harvard)
  • Cloud storage support for research archives

⭐ Give It a Star

If you found this project useful or inspiring, consider giving it a ⭐️ on GitHub!


πŸ“« Contact

Feel free to connect with me on LinkedIn or reach out via email at [email protected] for collaboration opportunities.

About

πŸ€– An intelligent, multi-agent research assistant powered by LLMs like GPT-4, Claude 3.5, and Gemini 1.5. It performs deep research, summarizes findings, cites sources, and even exports to PDF – all through an interactive Streamlit UI.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Languages