add
This commit is contained in:
31
README.md
31
README.md
@@ -105,7 +105,7 @@ Before running the server, ensure you have:
|
||||
- `GET /docs` - OpenAPI documentation
|
||||
|
||||
# 验证
|
||||
测试 ollama
|
||||
## 测试 ollama
|
||||
|
||||
curl http://localhost:11434/api/embeddings \
|
||||
-d '{
|
||||
@@ -113,5 +113,32 @@ curl http://localhost:11434/api/embeddings \
|
||||
"prompt":"hello world"
|
||||
}'
|
||||
|
||||
测试 mem0
|
||||
## 测试 mem0
|
||||
健康检查:
|
||||
|
||||
curl http://localhost:8000/health
|
||||
|
||||
返回:
|
||||
|
||||
{"status":"ok"}
|
||||
|
||||
创建记忆:
|
||||
|
||||
curl -X POST http://localhost:8000/v2/memories \
|
||||
-H "Content-Type: application/json" \
|
||||
-d '{
|
||||
"user_id":"test",
|
||||
"text":"测试用例创建"
|
||||
}'
|
||||
|
||||
搜索记忆:
|
||||
|
||||
curl -X POST http://localhost:8000/v2/memories/search \
|
||||
-H "Content-Type: application/json" \
|
||||
-d '{
|
||||
"user_id":"test",
|
||||
"query":"测试"
|
||||
}'
|
||||
|
||||
|
||||
## 测试 neo4j
|
||||
|
||||
Reference in New Issue
Block a user