fix readme
Browse files
README.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
# π€ LangGraph Data Analyst Agent
|
| 2 |
|
| 3 |
An intelligent data analyst agent built with LangGraph that analyzes customer support conversations with advanced memory, conversation persistence, and query recommendations.
|
|
@@ -41,6 +53,7 @@ User Query β Classifier β [Structured Agent | Unstructured Agent | Recommend
|
|
| 41 |
### Prerequisites
|
| 42 |
- **Python Version**: 3.9 or higher
|
| 43 |
- **API Key**: OpenAI API key or Nebius API key
|
|
|
|
| 44 |
|
| 45 |
### Installation
|
| 46 |
|
|
@@ -68,7 +81,7 @@ NEBIUS_API_KEY=your_nebius_api_key_here
|
|
| 68 |
|
| 69 |
4. **Run the application**:
|
| 70 |
```bash
|
| 71 |
-
streamlit run
|
| 72 |
```
|
| 73 |
|
| 74 |
5. **Access the app**:
|
|
@@ -76,7 +89,16 @@ Open your browser to `http://localhost:8501`
|
|
| 76 |
|
| 77 |
### Alternative Deployment
|
| 78 |
|
| 79 |
-
For
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 80 |
```bash
|
| 81 |
export OPENAI_API_KEY=your_api_key_here
|
| 82 |
# OR
|
|
@@ -203,10 +225,10 @@ Agents/
|
|
| 203 |
βββ README.md # This file
|
| 204 |
βββ requirements.txt # Python dependencies
|
| 205 |
βββ .env # API keys (create this)
|
| 206 |
-
βββ
|
| 207 |
βββ langgraph_agent.py # LangGraph agent implementation
|
| 208 |
-
βββ app.py # Original app (for reference)
|
| 209 |
βββ agent-memory.ipynb # Memory example notebook
|
|
|
|
| 210 |
βββ DEPLOYMENT_GUIDE.md # Original deployment guide
|
| 211 |
```
|
| 212 |
|
|
|
|
| 1 |
+
---
|
| 2 |
+
title: LangGraph Data Analyst Agent
|
| 3 |
+
emoji: π€
|
| 4 |
+
colorFrom: blue
|
| 5 |
+
colorTo: purple
|
| 6 |
+
sdk: streamlit
|
| 7 |
+
sdk_version: "1.28.0"
|
| 8 |
+
app_file: app.py
|
| 9 |
+
pinned: false
|
| 10 |
+
license: mit
|
| 11 |
+
---
|
| 12 |
+
|
| 13 |
# π€ LangGraph Data Analyst Agent
|
| 14 |
|
| 15 |
An intelligent data analyst agent built with LangGraph that analyzes customer support conversations with advanced memory, conversation persistence, and query recommendations.
|
|
|
|
| 53 |
### Prerequisites
|
| 54 |
- **Python Version**: 3.9 or higher
|
| 55 |
- **API Key**: OpenAI API key or Nebius API key
|
| 56 |
+
- **For Hugging Face Spaces**: Ensure your API key is set as a Space secret
|
| 57 |
|
| 58 |
### Installation
|
| 59 |
|
|
|
|
| 81 |
|
| 82 |
4. **Run the application**:
|
| 83 |
```bash
|
| 84 |
+
streamlit run app.py
|
| 85 |
```
|
| 86 |
|
| 87 |
5. **Access the app**:
|
|
|
|
| 89 |
|
| 90 |
### Alternative Deployment
|
| 91 |
|
| 92 |
+
#### For Hugging Face Spaces:
|
| 93 |
+
1. **Fork or upload this repository to Hugging Face Spaces**
|
| 94 |
+
2. **Set your API key as a Space secret:**
|
| 95 |
+
- Go to your Space settings
|
| 96 |
+
- Navigate to "Variables and secrets"
|
| 97 |
+
- Add a secret named `NEBIUS_API_KEY` or `OPENAI_API_KEY`
|
| 98 |
+
- Enter your API key as the value
|
| 99 |
+
3. **The app will start automatically**
|
| 100 |
+
|
| 101 |
+
#### For other cloud deployment:
|
| 102 |
```bash
|
| 103 |
export OPENAI_API_KEY=your_api_key_here
|
| 104 |
# OR
|
|
|
|
| 225 |
βββ README.md # This file
|
| 226 |
βββ requirements.txt # Python dependencies
|
| 227 |
βββ .env # API keys (create this)
|
| 228 |
+
βββ app.py # LangGraph Streamlit app
|
| 229 |
βββ langgraph_agent.py # LangGraph agent implementation
|
|
|
|
| 230 |
βββ agent-memory.ipynb # Memory example notebook
|
| 231 |
+
βββ test_agent.py # Test suite
|
| 232 |
βββ DEPLOYMENT_GUIDE.md # Original deployment guide
|
| 233 |
```
|
| 234 |
|