This commit is contained in:
huaqingxu
2026-03-06 23:39:52 +08:00
parent b1198b343b
commit 19db078e72
2 changed files with 31 additions and 4 deletions

View File

@@ -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

View File

@@ -45,7 +45,7 @@ DEFAULT_CONFIG = {
"llm": {
"provider": "ollama",
"config": {
"host": OLLAMA_HOST,
# "host": OLLAMA_HOST,
"model": OLLAMA_LLM_MODEL,
"temperature": 0.2,
},
@@ -53,7 +53,7 @@ DEFAULT_CONFIG = {
"embedder": {
"provider": "ollama",
"config": {
"host": OLLAMA_HOST,
# "host": OLLAMA_HOST,
"model": OLLAMA_EMBEDDER_MODEL,
},
},