Skip to content

Latest commit

 

History

History
75 lines (55 loc) · 1.53 KB

File metadata and controls

75 lines (55 loc) · 1.53 KB

🧠 LangChain Groq Search Agent

A simple LangChain-based AI agent powered by Groq using the openai/gpt-oss-120b model, with real-time web search via Tavily.

This repository provides everything needed to install, configure, and run the agent locally.

🚀 Features

  • Groq-powered LLM (openai/gpt-oss-120b)
  • LangChain agent
  • Real-time web search using Tavily
  • Easy setup with requirements.txt

⚙️ Requirements

  • Python 3.9+
  • Groq API key
  • Tavily API key

🔧 Installation

  1. Clone the repository
git clone https://github.com/Sujit224/langchain-groq-search-agent
cd langchain-groq-search-agent

  1. Create a virtual environment
python -m venv venv
source venv/bin/activate      # macOS / Linux
venv\Scripts\activate         # Windows

  1. Install dependencies
pip install -r requirements.txt

🔑 Environment Variables

Create a .env file in the project root:

LANGCHAIN_AGENT_KEY=your_groq_api_key_here
TAVILY_API_KEY=your_tavily_api_key_here

⚠️ Do not commit API keys to GitHub.


▶️ Usage

Run the agent: python main.py Enter a query when prompted.


🧠 Model Used

Provider: Groq Model: openai/gpt-oss-120b Temperature: 0.3


🔍 Search Capability

This agent uses Tavily to fetch real-time information from the web when needed.


📝 Notes

The model has a knowledge cutoff (June 2024) Web search is used to retrieve up-to-date information Output quality depends on search availability