You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: api-reference/how-to/embedding.mdx
+13-9Lines changed: 13 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -45,41 +45,45 @@ To use the Ingest CLI or Ingest Python library to generate embeddings, do the fo
45
45
46
46
- The provider ID `aws-bedrock` for [Amazon Bedrock](https://aws.amazon.com/bedrock/). [Learn more](https://python.langchain.com/v0.2/docs/integrations/text_embedding/bedrock/).
47
47
-`huggingface` for [Hugging Face](https://huggingface.co/). [Learn more](https://python.langchain.com/v0.2/docs/integrations/text_embedding/huggingfacehub/).
48
+
-`mixedbread-ai` for [Mixedbread](https://www.mixedbread.ai/). [Learn more](https://www.mixedbread.ai/docs/embeddings/overview).
49
+
-`octoai` for [Octo AI](https://octo.ai/). [Learn more](https://octo.ai/docs/text-gen-solution/using-unstructured-io-for-embedding-documents).
48
50
-`openai` for [OpenAI](https://openai.com/). [Learn more](https://python.langchain.com/v0.2/docs/integrations/text_embedding/openai/).
51
+
-`togetherai` for [Together.ai](https://www.together.ai/). [Learn more](https://docs.together.ai/docs/embedding-models).
49
52
-`vertexai` for [Google Vertex AI PaLM](https://cloud.google.com/vertex-ai/docs/generative-ai/learn/overview). [Learn more](https://python.langchain.com/v0.2/docs/integrations/text_embedding/google_vertex_ai_palm/).
50
53
-`voyageai` for [Voyage AI](https://www.voyageai.com/). [Learn more](https://python.langchain.com/v0.2/docs/integrations/text_embedding/voyageai/).
51
-
-`mixedbread-ai` for [Mixedbread](https://www.mixedbread.ai/). [Learn more](https://www.mixedbread.ai/docs/embeddings/overview).
52
-
-`octoai` for [Octo AI](https://octo.ai/). [Learn more](https://octo.ai/docs/text-gen-solution/using-unstructured-io-for-embedding-documents).
53
-
54
+
54
55
2. Run the following command to install the required Python package for the embedding provider:
55
56
56
57
- For `aws-bedrock`, run `pip install "unstructured-ingest[bedrock]"`.
57
58
- For `huggingface`, run `pip install "unstructured-ingest[embed-huggingface]"`.
59
+
- For `mixedbread-ai`, run `pip install "unstructured-ingest[embed-mixedbreadai]"`.
60
+
- For `octoai`, run `pip install "unstructured-ingest[embed-octoai]"`.
58
61
- For `openai`, run `pip install "unstructured-ingest[openai]"`.
62
+
- For `togetherai`, run `pip install "unstructured-ingest[togetherai]"`.
59
63
- For `vertexai`, run `pip install "unstructured-ingest[embed-vertexai]"`.
60
64
- For `voyageai`, run `pip install "unstructured-ingest[embed-voyageai]"`.
61
-
- For `mixedbread-ai`, run `pip install "unstructured-ingest[embed-mixedbreadai]"`.
62
-
- For `octoai`, run `pip install "unstructured-ingest[embed-octoai]"`.
63
65
64
66
3. For the following embedding providers, you can choose the model that you want to use. If you do choose a model, note the model's name:
65
67
66
68
-`aws-bedrock`. [Choose a model](https://docs.aws.amazon.com/bedrock/latest/userguide/model-ids.html). No default model is provided. [Learn more about the supported models](https://docs.aws.amazon.com/bedrock/latest/userguide/models-supported.html).
67
69
-`huggingface`. [Choose a model](https://huggingface.co/models?other=embeddings), or use the default model [sentence-transformers/all-MiniLM-L6-v2](https://huggingface.co/sentence-transformers/all-MiniLM-L6-v2).
70
+
-`mixedbread-ai`. [Choose a model](https://www.mixedbread.ai/docs/embeddings/models), or use the default model [mixedbread-ai/mxbai-embed-large-v1](https://www.mixedbread.ai/docs/embeddings/mxbai-embed-large-v1).
71
+
-`octoai`. [Choose a model](https://octo.ai/blog/supercharge-rag-performance-using-octoai-and-unstructured-embeddings/), or use the default model `thenlper/gte-large`.
68
72
-`openai`. [Choose a model](https://platform.openai.com/docs/guides/embeddings/embedding-models), or use the default model `text-embedding-ada-002`.
73
+
-`togetherai`. [Choose a model](https://docs.together.ai/docs/embedding-models), or use the default model `togethercomputer/m2-bert-80M-8k-retrieval`.
69
74
-`vertexai`. [Choose a model](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/text-embeddings-api), or use the default model `textembedding-gecko@001`.
70
75
-`voyageai`. [Choose a model](https://docs.voyageai.com/docs/embeddings). No default model is provided.
71
-
-`mixedbread-ai`. [Choose a model](https://www.mixedbread.ai/docs/embeddings/models), or use the default model [mixedbread-ai/mxbai-embed-large-v1](https://www.mixedbread.ai/docs/embeddings/mxbai-embed-large-v1).
72
-
-`octoai`. [Choose a model](https://octo.ai/blog/supercharge-rag-performance-using-octoai-and-unstructured-embeddings/), or use the default model `thenlper/gte-large`.
73
76
74
77
4. Note the special settings to connect to the provider:
75
78
76
79
- For `aws-bedrock`, you'll need an AWS access key value, the corresponding AWS secret access key value, and the corresponding AWS Region identifier. [Get an AWS access key and secret access key](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_access-keys.html).
77
80
- For `huggingface`, if you use a gated model (a model with special conditions that you must accept before you can use it, or a privately published model), you'll need an HF inference API key value, beginning with `hf_`. [Get an HF inference API key](https://huggingface.co/docs/api-inference/en/quicktour#get-your-api-token). To learn whether your model requires an HF inference API key, see your model provider's documentation.
81
+
- For `mixedbread-ai`, you'll need a Mixedbread API key value. [Get a Mixedbread API key](https://www.mixedbread.ai/dashboard?next=api-keys).
82
+
- For `octoai`, you'll need an Octo AI API token value. [Get an Octo AI API token](https://octo.ai/docs/getting-started/how-to-create-octoai-access-token).
78
83
- For `openai`, you'll need an OpenAI API key value. [Get an OpenAI API key](https://platform.openai.com/docs/quickstart/create-and-export-an-api-key).
84
+
- For `togetherai`, you'll need a together.ai API key value. [Get a together.ai API key](https://docs.together.ai/reference/authentication-1).
79
85
- For `vertexai`, you'll need the path to a Google Cloud credentials JSON file. Learn more [here](https://cloud.google.com/docs/authentication/application-default-credentials#GAC) and [here](https://googleapis.dev/python/google-auth/latest/reference/google.auth.html#module-google.auth).
80
86
- For `voyageai`, you'll need a Voyage AI API key value. [Get a Voyage AI API key](https://docs.voyageai.com/docs/api-key-and-installation#authentication-with-api-keys).
81
-
- For `mixedbread-ai`, you'll need a Mixedbread API key value. [Get a Mixedbread API key](https://www.mixedbread.ai/dashboard?next=api-keys).
82
-
- For `octoai`, you'll need an Octo AI API token value. [Get an Octo AI API token](https://octo.ai/docs/getting-started/how-to-create-octoai-access-token).
83
87
84
88
5. Now, apply all of this information as follows, and then run your command or code:
Copy file name to clipboardExpand all lines: snippets/ingest-configuration-shared/embedding-configuration.mdx
+10-8Lines changed: 10 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ A common embedding configuration is a critical component that allows for dynamic
10
10
11
11
* <Iconicon="v"/><Iconicon="1"/> `aws_secret_access_key`: The AWS secret access key to be used for AWS-based embedders, such as Amazon Bedrock.
12
12
13
-
* <Iconicon="v"/><Iconicon="2"/> `embedding_provider`: The embedding provider to use while doing embedding. Available values include `openai`, `huggingface`, `aws-bedrock`, `vertexai`, `voyageai`, and `octoai`.
13
+
* <Iconicon="v"/><Iconicon="2"/> `embedding_provider`: The embedding provider to use while doing embedding. Available values include `aws-bedrock`, `huggingface`, `octoai`, `openai`, `togetherai`, `vertexai`, and `voyageai`.
14
14
15
15
* <Iconicon="v"/><Iconicon="2"/> `embedding_api_key`: The API key to use, if one is required to generate the embeddings through an API service, such as OpenAI.
16
16
@@ -24,21 +24,23 @@ A common embedding configuration is a critical component that allows for dynamic
24
24
25
25
* <Iconicon="v"/><Iconicon="1"/> `model_name`: The specific model to use for the embedding provider, if necessary.
26
26
27
-
* <Iconicon="v"/><Iconicon="1"/> `provider`: The embedding provider to use while doing embedding. Available values include `openai`, `huggingface`, `aws-bedrock`, `vertexai`, `voyageai`, and `octoai`.
27
+
* <Iconicon="v"/><Iconicon="1"/> `provider`: The embedding provider to use while doing embedding. Available values include `aws-bedrock`, `huggingface`, `octoai`, `openai`, `togetherai`, `vertexai`, and `voyageai`.
0 commit comments