Skip to content

Commit

Permalink
docs: Fixed docs linting
Browse files Browse the repository at this point in the history
  • Loading branch information
tazarov committed Jun 21, 2024
1 parent 9b3a177 commit 28ff847
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions docs/docs.trychroma.com/pages/integrations/voyageai.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const {VoyageAIEmbeddingFunction, InputType} = require('chromadb');
// const {VoyageAIEmbeddingFunction, InputType} from "chromadb"; // ESM import
const embedder = new VoyageAIEmbeddingFunction("apiKey", "voyage-law-2", InputType.DOCUMENT)

// use directly
// use directly
const embeddings = embedder.generate(["document1","document2"])

// pass documents to query for .add and .query
Expand All @@ -39,4 +39,3 @@ const collectionGet = await client.getCollection({name:"name", embeddingFunction
{% /tabs %}

You should pass in the `model_name` argument, which lets you choose which VoyageAI embeddings model to use. You can see the available models [here](https://docs.voyageai.com/docs/embeddings).

0 comments on commit 28ff847

Please sign in to comment.