From 89ce417452d2340da8e29bf7db800904ef204e46 Mon Sep 17 00:00:00 2001 From: Ivan Leo Date: Tue, 12 Mar 2024 00:00:07 +0800 Subject: [PATCH] Update default_embedding_functions.md (#1073) Added a small bit of documentation for the `dim` feature which is provided by the new `text-embedding-3` model series that allows users to shorten an embedding. Happy to discuss a bit on the phrasing but I struggled quite a bit with getting it to work so wanted to help others who might want to use the newer model too --- docs/src/embeddings/default_embedding_functions.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/src/embeddings/default_embedding_functions.md b/docs/src/embeddings/default_embedding_functions.md index 5895d38c..c076def9 100644 --- a/docs/src/embeddings/default_embedding_functions.md +++ b/docs/src/embeddings/default_embedding_functions.md @@ -47,6 +47,7 @@ LanceDB registers the OpenAI embeddings function in the registry by default, as | Parameter | Type | Default Value | Description | |---|---|---|---| | `name` | `str` | `"text-embedding-ada-002"` | The name of the model. | +| `dim` | `int` | Model default | For OpenAI's newer text-embedding-3 model, we can specify a dimensionality that is smaller than the 1536 size. This feature supports it | ```python