From 9da7dd452a47bf21ff071dcb87344ca23bf2e230 Mon Sep 17 00:00:00 2001 From: "Govind.S.B" Date: Wed, 6 Mar 2024 18:34:27 +0530 Subject: [PATCH 1/4] Create together-ai-embeddings.md --- docs/embeddings/together-ai-embeddings.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 docs/embeddings/together-ai-embeddings.md diff --git a/docs/embeddings/together-ai-embeddings.md b/docs/embeddings/together-ai-embeddings.md new file mode 100644 index 0000000..3787470 --- /dev/null +++ b/docs/embeddings/together-ai-embeddings.md @@ -0,0 +1,15 @@ +--- +--- + +# Together Embeddings Endpoint. + +Together AI Recently launched [embeddings endpoint](https://docs.together.ai/docs/embeddings-rest) and they offer really cheap yet fast inference endpoints, you can use them with Chroma using `TogetherAIEmbeddingFunction`. + +A list of available embedding models can be seen [here](https://docs.together.ai/docs/embedding-models) + +```python +import chromadb.utils.embedding_functions as embedding_functions +palm_embedding = embedding_functions.TogetherAIEmbeddingFunction( + api_key=api_key, model=model_name) + +``` From 224077594f0a333965a96add9f3df40c76c04263 Mon Sep 17 00:00:00 2001 From: "Govind.S.B" Date: Wed, 6 Mar 2024 18:36:41 +0530 Subject: [PATCH 2/4] Update together-ai-embeddings.md --- docs/embeddings/together-ai-embeddings.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/embeddings/together-ai-embeddings.md b/docs/embeddings/together-ai-embeddings.md index 3787470..019693d 100644 --- a/docs/embeddings/together-ai-embeddings.md +++ b/docs/embeddings/together-ai-embeddings.md @@ -9,7 +9,7 @@ A list of available embedding models can be seen [here](https://docs.together.ai ```python import chromadb.utils.embedding_functions as embedding_functions -palm_embedding = embedding_functions.TogetherAIEmbeddingFunction( +together_embedding = embedding_functions.TogetherAIEmbeddingFunction( api_key=api_key, model=model_name) ``` From 7df5dd376bb10600dde5b40d804668f821fb8684 Mon Sep 17 00:00:00 2001 From: "Govind.S.B" Date: Mon, 11 Mar 2024 01:20:33 +0000 Subject: [PATCH 3/4] updated docs for embeddings --- docs/embeddings.md | 1 + sidebars.js | 1 + 2 files changed, 2 insertions(+) diff --git a/docs/embeddings.md b/docs/embeddings.md index 0d2f37b..3d8b5aa 100644 --- a/docs/embeddings.md +++ b/docs/embeddings.md @@ -20,6 +20,7 @@ Chroma provides lightweight wrappers around popular embedding providers, making | [Instructor](/embeddings/instructor) | ✅ | ➖ | | [Hugging Face Embedding Server](/embeddings/hugging-face-embedding-server) | ✅ | ✅ | | [Jina AI](/embeddings/jinaai) | ✅ | ✅ | +| [Together AI](/embeddings/together-ai-embeddings) | ✅ | ➖ | We welcome pull requests to add new Embedding Functions to the community. diff --git a/sidebars.js b/sidebars.js index 62c6fd8..5d7c5aa 100644 --- a/sidebars.js +++ b/sidebars.js @@ -93,6 +93,7 @@ const sidebars = { 'embeddings/instructor', 'embeddings/hugging-face-embedding-server', 'embeddings/jinaai', + 'embeddings/together-ai-embeddings', ], }, ], From d6f37f65f41d2214ea3a87f4d0a72cc9858c49d9 Mon Sep 17 00:00:00 2001 From: "Govind.S.B" Date: Wed, 10 Apr 2024 03:20:27 +0000 Subject: [PATCH 4/4] changed phrasing and added api key source --- docs/embeddings/together-ai-embeddings.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/embeddings/together-ai-embeddings.md b/docs/embeddings/together-ai-embeddings.md index 019693d..ac0c608 100644 --- a/docs/embeddings/together-ai-embeddings.md +++ b/docs/embeddings/together-ai-embeddings.md @@ -3,9 +3,10 @@ # Together Embeddings Endpoint. -Together AI Recently launched [embeddings endpoint](https://docs.together.ai/docs/embeddings-rest) and they offer really cheap yet fast inference endpoints, you can use them with Chroma using `TogetherAIEmbeddingFunction`. +Together AI Recently launched [embeddings](https://docs.together.ai/docs/embeddings-rest) inference endpoints, you can use them with Chroma using `TogetherAIEmbeddingFunction`. A list of available embedding models can be seen [here](https://docs.together.ai/docs/embedding-models) +You can get your API Keys from [here](https://api.together.xyz/settings/api-keys) ```python import chromadb.utils.embedding_functions as embedding_functions