gcharanteja commited on
Commit ·
cf2a24d
1
Parent(s): 114ab3c
feat: add curation and vector services, enhance README with local development and configuration details
Browse files- README.md +52 -2
- curation.js → services/curation.js +0 -0
- llm.js → services/llm.js +0 -0
- vector.js → services/vector.js +0 -0
- tools/curateTool.js +1 -1
- tools/vectorTool.js +1 -1
README.md
CHANGED
|
@@ -1,12 +1,62 @@
|
|
|
|
|
|
|
|
| 1 |
---
|
|
|
|
| 2 |
title: Memory
|
| 3 |
emoji: ⚡
|
| 4 |
colorFrom: indigo
|
| 5 |
colorTo: purple
|
| 6 |
sdk: docker
|
| 7 |
pinned: false
|
|
|
|
| 8 |
---
|
| 9 |
|
| 10 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
|
| 12 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# ⚡ Memory
|
| 2 |
+
|
| 3 |
---
|
| 4 |
+
|
| 5 |
title: Memory
|
| 6 |
emoji: ⚡
|
| 7 |
colorFrom: indigo
|
| 8 |
colorTo: purple
|
| 9 |
sdk: docker
|
| 10 |
pinned: false
|
| 11 |
+
|
| 12 |
---
|
| 13 |
|
| 14 |
+
A Docker-powered Model Context Protocol (MCP) server for memory management.
|
| 15 |
+
For more details, check out the [Hugging Face Spaces Config Reference](https://huggingface.co).
|
| 16 |
+
|
| 17 |
+
---
|
| 18 |
+
|
| 19 |
+
## 🛠️ Local Development
|
| 20 |
+
|
| 21 |
+
Run the server locally with this command:
|
| 22 |
+
|
| 23 |
+
```bash
|
| 24 |
+
DATA_DIR=. node server.js
|
| 25 |
+
```
|
| 26 |
+
|
| 27 |
+
---
|
| 28 |
+
|
| 29 |
+
## ⚙️ Project Configurations
|
| 30 |
+
|
| 31 |
+
### 1. `config.json`
|
| 32 |
+
|
| 33 |
+
Save this file in your root project directory.
|
| 34 |
+
|
| 35 |
+
```json
|
| 36 |
+
{
|
| 37 |
+
"CHROMA_URL": "",
|
| 38 |
+
"CHROMA_COLLECTION": "",
|
| 39 |
+
"EMBEDDER_BASE_URL": "",
|
| 40 |
+
"EMBEDDER_API_KEY": "",
|
| 41 |
+
"OPENAI_MODEL": "stepfun-ai/step-3.5-flash",
|
| 42 |
+
"OUTPUT_DIR": "/data/context-tree"
|
| 43 |
+
}
|
| 44 |
+
```
|
| 45 |
+
|
| 46 |
+
### 2. `mcp.json` (VS Code Integration)
|
| 47 |
+
|
| 48 |
+
Add this configuration to your local VS Code application path to connect the server.
|
| 49 |
+
|
| 50 |
+
📁 **Path:** `~/Library/Application Support/Code/User/mcp.json`
|
| 51 |
|
| 52 |
+
```json
|
| 53 |
+
{
|
| 54 |
+
"servers": {
|
| 55 |
+
"my-mcp-server-6170c10f": {
|
| 56 |
+
"url": "https://maxxcarl-memory.hf.space/sse",
|
| 57 |
+
"type": "sse"
|
| 58 |
+
}
|
| 59 |
+
},
|
| 60 |
+
"inputs": []
|
| 61 |
+
}
|
| 62 |
+
```
|
curation.js → services/curation.js
RENAMED
|
File without changes
|
llm.js → services/llm.js
RENAMED
|
File without changes
|
vector.js → services/vector.js
RENAMED
|
File without changes
|
tools/curateTool.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
import { curateText } from "../curation.js";
|
| 2 |
|
| 3 |
const curateKnowledgeTool = {
|
| 4 |
name: "curate_knowledge",
|
|
|
|
| 1 |
+
import { curateText } from "../services/curation.js";
|
| 2 |
|
| 3 |
const curateKnowledgeTool = {
|
| 4 |
name: "curate_knowledge",
|
tools/vectorTool.js
CHANGED
|
@@ -5,7 +5,7 @@ import {
|
|
| 5 |
listCollectionDataToolDefinition,
|
| 6 |
queryCollectionData,
|
| 7 |
queryCollectionDataToolDefinition,
|
| 8 |
-
} from "../vector.js";
|
| 9 |
|
| 10 |
export const vectorTools = [
|
| 11 |
addDocumentsToolDefinition,
|
|
|
|
| 5 |
listCollectionDataToolDefinition,
|
| 6 |
queryCollectionData,
|
| 7 |
queryCollectionDataToolDefinition,
|
| 8 |
+
} from "../services/vector.js";
|
| 9 |
|
| 10 |
export const vectorTools = [
|
| 11 |
addDocumentsToolDefinition,
|