Spaces:
Running
Running
Commit
·
ddfde92
1
Parent(s):
24336e6
Update readme
Browse files
README.md
CHANGED
|
@@ -11,3 +11,40 @@ short_description: 'This space defines a RAG MCP server '
|
|
| 11 |
---
|
| 12 |
|
| 13 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
---
|
| 12 |
|
| 13 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
| 14 |
+
|
| 15 |
+
|
| 16 |
+
# Rag MCP server
|
| 17 |
+
|
| 18 |
+
This is a simple gradio server that allows you to run a RAG (Retrieval-Augmented Generation) model using the
|
| 19 |
+
MCP (Model Control Protocol) interface.
|
| 20 |
+
|
| 21 |
+
# Requirements
|
| 22 |
+
|
| 23 |
+
- UV: The python package manager. Visit https://github.com/astral-sh/uv
|
| 24 |
+
|
| 25 |
+
Since the server uses SERPER API, you will need to set the `SERPER_API_KEY` environment variable to
|
| 26 |
+
enable the search functionality. You can export it in your shell:
|
| 27 |
+
|
| 28 |
+
```bash
|
| 29 |
+
export SERPER_API_KEY=your_serper_api_key
|
| 30 |
+
```
|
| 31 |
+
|
| 32 |
+
|
| 33 |
+
# Installation
|
| 34 |
+
```bash
|
| 35 |
+
uv sync
|
| 36 |
+
```
|
| 37 |
+
|
| 38 |
+
# Usage
|
| 39 |
+
|
| 40 |
+
Just run the gradio application:
|
| 41 |
+
|
| 42 |
+
```bash
|
| 43 |
+
uv run gradio app.py
|
| 44 |
+
```
|
| 45 |
+
|
| 46 |
+
|
| 47 |
+
# Access the server
|
| 48 |
+
Open your browser and go to `http://localhost:7860` to access the RAG MCP server.
|
| 49 |
+
|
| 50 |
+
You can see the [gradio docs](https://www.gradio.app/guides/building-mcp-server-with-gradio) for more information on how to use the interface.
|