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
|
||||
|
||||
4
main.py
4
main.py
@@ -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,
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user