Skip to content

Commit

Permalink
Update example to use changed constructor function
Browse files Browse the repository at this point in the history
  • Loading branch information
philippgille authored Apr 21, 2024
1 parent 9298535 commit f51b592
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/rag-wikipedia-ollama/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func main() {
// variable to be set.
// For this example we choose to use a locally running embedding model though.
// It requires Ollama to serve its API at "http://localhost:11434/api".
collection, err := db.GetOrCreateCollection("Wikipedia", nil, chromem.NewEmbeddingFuncOllama(embeddingModel))
collection, err := db.GetOrCreateCollection("Wikipedia", nil, chromem.NewEmbeddingFuncOllama(embeddingModel, ""))
if err != nil {
panic(err)
}
Expand Down

0 comments on commit f51b592

Please sign in to comment.