Skip to content

Latest commit

 

History

19 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

🧠 Research Assistant Agent

A smart, tool-using research assistant powered by LangChain and OpenAI/Anthropic LLMs. It can search the web, extract information from Wikipedia, and save structured research summaries to a text file.

πŸš€ Features

  • 🧾 Accepts a user query and returns a structured response with:
    • Topic
    • Summary
    • Sources
    • Tools used
  • 🌐 Uses DuckDuckGo for web search
  • πŸ“š Queries Wikipedia for relevant info
  • πŸ’Ύ Saves output to research_output.txt

πŸ› οΈ Tech Stack

πŸ“¦ Installation

  1. Clone the repository
    git clone https://github.com/your-username/research-assistant-agent.git
    cd research-assistant-agent
    
  2. Create a virtual environment
    python -m venv venv
    source venv/bin/activate   # On Windows: venv\Scripts\activate
    
  3. Install dependencies
     pip install -r requirements.txt
    
  4. Set up .env file
    OPENAI_API_KEY=your_openai_api_key
    ANTHROPIC_API_KEY=your_anthropic_api_key (optional)
    

πŸ§ͺ Run the App

  python main.py

πŸ“ File Structure

  • main.py # Entry script
  • tools.py # Web, Wikipedia, and file-saving tools
  • requirements.txt # Dependencies
  • research_output.txt # Saved outputs
  • .env # API keys

About

A smart, tool-using research assistant powered by LangChain and OpenAI/Anthropic LLMs. It can search the web, extract information from Wikipedia, and save structured research summaries to a text file.

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages