Skip to content

Commit

Permalink
docs[patch]: fix chroma distance function reference link (#6714)
Browse files Browse the repository at this point in the history
  • Loading branch information
spielhoelle authored Sep 7, 2024
1 parent 31e64e1 commit 66569b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/src/indexes/vector_stores/chroma/fromDocs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const vectorStore = await Chroma.fromDocuments(docs, new OpenAIEmbeddings(), {
url: "http://localhost:8000", // Optional, will default to this value
collectionMetadata: {
"hnsw:space": "cosine",
}, // Optional, can be used to specify the distance method of the embedding space https://docs.trychroma.com/usage-guide#changing-the-distance-function
}, // Optional, can be used to specify the distance method of the embedding space https://docs.trychroma.com/guides#changing-the-distance-function
});

// Search for the most similar document
Expand Down

0 comments on commit 66569b3

Please sign in to comment.