Spaces:
Runtime error
Runtime error
File size: 976 Bytes
e62dc16 fbafb79 e62dc16 4826e54 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
---
title: AgenticRAG
emoji: 🌖
colorFrom: pink
colorTo: pink
sdk: gradio
sdk_version: 5.29.1
app_file: app.py
pinned: false
license: apache-2.0
---
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
# Agentic RAG with LangGraph
A simple agentic RAG system using LangGraph with Azure OpenAI.
## Setup
1. **Install dependencies:**
```bash
pip install -r requirements.txt
```
2. **Create `.env` file in the project root:**
```
AZURE_OPENAI_ENDPOINT=your_azure_endpoint
AZURE_OPENAI_API_KEY=your_api_key
AZURE_OPENAI_DEPLOYMENT_NAME=your_deployment_name
AZURE_OPENAI_API_VERSION=2024-02-01
```
## Run
```bash
python app.py
```
The agent will automatically query for "Lady Ada Lovelace" and show the response.
## Tools Available
- **Guest Info**: Retrieves guest information from the dataset
- **Weather Info**: Provides dummy weather data
- **Hub Stats**: Gets Hugging Face model statistics
|