Skip to content

Commit

Permalink
Fix search query prefix
Browse files Browse the repository at this point in the history
Co-authored-by: Rinor Hoxha <[email protected]>
  • Loading branch information
philippgille and rinor authored Apr 21, 2024
1 parent 2982980 commit e43515a
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 @@ -110,7 +110,7 @@ func main() {
start := time.Now()
log.Println("Querying chromem-go...")
// "nomic-embed-text" specific prefix (not required with OpenAI's or other models)
query := "search_document: " + question
query := "search_query: " + question
docRes, err := collection.Query(ctx, query, 2, nil, nil)
if err != nil {
panic(err)
Expand Down

0 comments on commit e43515a

Please sign in to comment.