Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
BlackyDrum authored Jun 16, 2024
1 parent 6119873 commit 6fb9671
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -434,9 +434,9 @@ int main()

**Parameters**
- **apiKey**: The API key to access the API.
- **model**: (Optional) The model to use for generating embeddings. Defaults to "jina-embeddings-v2-base-en".
- **baseUrl**: (Optional) The base URL of the API server. Defaults to "api.jina.ai".
- **path**: (Optional) The path of the endpoint for generating embeddings. Defaults to "/v1/embeddings".
- **model**: (Optional) The model to use for generating embeddings. Defaults to `jina-embeddings-v2-base-en`.
- **baseUrl**: (Optional) The base URL of the API server. Defaults to `api.jina.ai`.
- **path**: (Optional) The path of the endpoint for generating embeddings. Defaults to `/v1/embeddings`.

> Note: You can get started immediately by obtaining a free Jina API Key with 1M Tokens [here](https://jina.ai/embeddings/#apiform)
Expand All @@ -452,10 +452,10 @@ int main()

**Parameters**
- **apiKey**: The API key to access the API.
- **model**: (Optional) The model to use for generating embeddings. Defaults to "text-embedding-3-small".
- **dimensions**: (Optional) The number of dimensions of the embeddings. Defaults to 1536.
- **baseUrl**: (Optional) The base URL of the API server. Defaults to "api.openai.com".
- **path**: (Optional) The path of the endpoint for generating embeddings. Defaults to "/v1/embeddings".
- **model**: (Optional) The model to use for generating embeddings. Defaults to `text-embedding-3-small`.
- **dimensions**: (Optional) The number of dimensions of the embeddings. Defaults to `1536`.
- **baseUrl**: (Optional) The base URL of the API server. Defaults to `api.openai.com`.
- **path**: (Optional) The path of the endpoint for generating embeddings. Defaults to `/v1/embeddings`.

**CohereEmbeddingFunction**
```cpp
Expand All @@ -469,10 +469,10 @@ int main()

**Parameters**
- **apiKey**: The API key to access the API.
- **model**: (Optional) The model to use for generating embeddings. Defaults to "embed-english-v3.0".
- **inputType**: (Optional) The input type passed to the model. Defaults to "classification".
- **baseUrl**: (Optional) The base URL of the API server. Defaults to "api.cohere.com".
- **path**: (Optional) The path of the endpoint for generating embeddings. Defaults to "/v1/embed".
- **model**: (Optional) The model to use for generating embeddings. Defaults to `embed-english-v3.0`.
- **inputType**: (Optional) The input type passed to the model. Defaults to `classification`.
- **baseUrl**: (Optional) The base URL of the API server. Defaults to `api.cohere.com`.
- **path**: (Optional) The path of the endpoint for generating embeddings. Defaults to `/v1/embed`.


**VoyageAIEmbeddingFunction**
Expand All @@ -487,10 +487,10 @@ int main()

**Parameters**
- **apiKey**: The API key to access the API.
- **model**: (Optional) The model to use for generating embeddings. Defaults to "voyage-2".
- **inputType**: (Optional) The input type passed to the model. Defaults to "document".
- **baseUrl**: (Optional) The base URL of the API server. Defaults to "api.voyageai.com".
- **path**: (Optional) The path of the endpoint for generating embeddings. Defaults to "/v1/embeddings".
- **model**: (Optional) The model to use for generating embeddings. Defaults to `voyage-2`.
- **inputType**: (Optional) The input type passed to the model. Defaults to `document`.
- **baseUrl**: (Optional) The base URL of the API server. Defaults to `api.voyageai.com`.
- **path**: (Optional) The path of the endpoint for generating embeddings. Defaults to `/v1/embeddings`.

**TogetherAIEmbeddingFunction**
```cpp
Expand All @@ -504,9 +504,9 @@ int main()

**Parameters**
- **apiKey**: The API key to access the API.
- **model**: (Optional) The model to use for generating embeddings. Defaults to "togethercomputer/m2-bert-80M-8k-retrieval".
- **baseUrl**: (Optional) The base URL of the API server. Defaults to "api.together.xyz".
- **path**: (Optional) The path of the endpoint for generating embeddings. Defaults to "/v1/embeddings".
- **model**: (Optional) The model to use for generating embeddings. Defaults to `togethercomputer/m2-bert-80M-8k-retrieval`.
- **baseUrl**: (Optional) The base URL of the API server. Defaults to `api.together.xyz`.
- **path**: (Optional) The path of the endpoint for generating embeddings. Defaults to `/v1/embeddings`.

### Get Embeddings from a Collection
To retrieve embeddings from an existing collection in ChromaDB, use the `GetEmbeddings` method. This method allows you to specify the collection, optional IDs of the embeddings, and optional filters and fields to include in the result.
Expand Down

0 comments on commit 6fb9671

Please sign in to comment.