This project is a LangGraph-based AI Agent Chatbot deployed on Hugging Face Spaces. It uses FastAPI for the backend and Streamlit for the frontend.
- Define custom AI agents with system prompts.
- Select from a list of Groq models.
- Optionally allow the agent to perform web searches.
- Interact with the AI agent through a user-friendly interface.
- Docker
- Python 3.9+
git clone https://github.com/yourusername/LangGraph-based-AI-Agent-Chatbot.git
cd LangGraph-based-AI-Agent-ChatbotCreate a .env file in the root directory and add your API keys:
GROQ_API_KEY=your_groq_api_key
TAVILY_API_KEY=your_tavily_api_key
docker build -t langgraph-ai-agent .
docker run -p 8501:8501 -p 9999:9999 langgraph-ai-agentOpen your browser and go to http://localhost:8501 to access the Streamlit frontend.
frontend.py: Streamlit app for the user interface.backend.py: FastAPI app for handling API requests.ai_agent.py: Logic for interacting with the AI agent.Dockerfile: Docker configuration for containerizing the application.requirements.txt: List of Python dependencies.
- Define your AI agent by entering a system prompt.
- Select a Groq model from the list.
- Optionally enable web search.
- Enter your query and click "Ask Agent!" to get a response.
This project is licensed under the MIT License.