Skip to content

armgit / mem0

Public Imported from GitHub
0

The Memory Layer for AI Agents - Drop-in memory infrastructure for AI agents and apps. Context that persists. Built for production.

Update llms card to properly use local ollama (#1395)

golemus11fc4a84519e
diff --git a/docs/components/llms.mdx b/docs/components/llms.mdx
index 2cc588a07..3bd88b615 100644
--- a/docs/components/llms.mdx
+++ b/docs/components/llms.mdx
@@ -330,6 +330,7 @@ Setup Ollama using https://github.com/jmorganca/ollama
```python main.py
import os
+os.environ["OLLAMA_HOST"] = "http://127.0.0.1:11434"
from embedchain import App
# load llm configuration from config.yaml file
@@ -345,6 +346,12 @@ llm:
top_p: 1
stream: true
base_url: 'http://localhost:11434'
+embedder:
+ provider: ollama
+ config:
+ model: znbang/bge:small-en-v1.5-q8_0
+ base_url: http://localhost:11434
+
```
</CodeGroup>