Skip to content

Commit

Permalink
Updated embedder model
Browse files Browse the repository at this point in the history
  • Loading branch information
vodkar committed Nov 19, 2024
1 parent a4159db commit 0a07b04
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cookbook/providers/ollama_tools/knowledge.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Run Ollama Server: `ollama serve`
Pull required models:
`ollama pull openhermes`
`ollama pull nomic-embed-text`
`ollama pull llama3.1:8b`
If you haven't deployed database yet, run:
Expand All @@ -25,7 +25,7 @@
vector_db=PgVector(
table_name="recipes",
db_url=db_url,
embedder=OllamaEmbedder(host="http://localhost:11434"),
embedder=OllamaEmbedder(model="nomic-embed-text", host="http://localhost:11434", dimensions=768),
),
)
knowledge_base.load(recreate=False) # Comment out after first run
Expand Down

0 comments on commit 0a07b04

Please sign in to comment.