Spaces:
Runtime error
Runtime error
| 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 | |