Doc: add "memory" in EC "Custom config" section and fix typos in the json config sample (#2574)
This commit is contained in:
@@ -70,6 +70,9 @@ cache:
|
|||||||
config:
|
config:
|
||||||
similarity_threshold: 0.8
|
similarity_threshold: 0.8
|
||||||
auto_flush: 50
|
auto_flush: 50
|
||||||
|
|
||||||
|
memory:
|
||||||
|
top_k: 10
|
||||||
```
|
```
|
||||||
|
|
||||||
```json config.json
|
```json config.json
|
||||||
@@ -92,7 +95,7 @@ cache:
|
|||||||
"api_key": "sk-xxx",
|
"api_key": "sk-xxx",
|
||||||
"model_kwargs": {"response_format": {"type": "json_object"}},
|
"model_kwargs": {"response_format": {"type": "json_object"}},
|
||||||
"api_version": "2024-02-01",
|
"api_version": "2024-02-01",
|
||||||
"http_client_proxies": "http://testproxy.mem0.net:8000",
|
"http_client_proxies": "http://testproxy.mem0.net:8000"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"vectordb": {
|
"vectordb": {
|
||||||
@@ -108,7 +111,7 @@ cache:
|
|||||||
"config": {
|
"config": {
|
||||||
"model": "text-embedding-ada-002",
|
"model": "text-embedding-ada-002",
|
||||||
"api_key": "sk-xxx",
|
"api_key": "sk-xxx",
|
||||||
"http_client_proxies": "http://testproxy.mem0.net:8000",
|
"http_client_proxies": "http://testproxy.mem0.net:8000"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"chunker": {
|
"chunker": {
|
||||||
@@ -120,13 +123,16 @@ cache:
|
|||||||
"cache": {
|
"cache": {
|
||||||
"similarity_evaluation": {
|
"similarity_evaluation": {
|
||||||
"strategy": "distance",
|
"strategy": "distance",
|
||||||
"max_distance": 1.0,
|
"max_distance": 1.0
|
||||||
},
|
},
|
||||||
"config": {
|
"config": {
|
||||||
"similarity_threshold": 0.8,
|
"similarity_threshold": 0.8,
|
||||||
"auto_flush": 50,
|
"auto_flush": 50
|
||||||
},
|
}
|
||||||
},
|
},
|
||||||
|
"memory": {
|
||||||
|
"top_k": 10
|
||||||
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -190,6 +196,9 @@ config = {
|
|||||||
'auto_flush': 50,
|
'auto_flush': 50,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
'memory': {
|
||||||
|
'top_k': 10,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
</CodeGroup>
|
</CodeGroup>
|
||||||
|
|||||||
Reference in New Issue
Block a user