--- title: Jina sidebarTitle: Jina --- import { PyEmbeddingJinaText, PyEmbeddingJinaMultimodal, } from '/snippets/provider_examples.mdx'; ## Vector Dimensions {#vector-dimensions} `ndims()`, used when declaring a schema such as `Vector(func.ndims())`, returns the default width of these models: | Model | Dimensions | |---|---| | `jina-clip-v1` | 768 | | `jina-clip-v2` | 1024 | | `jina-embeddings-v2-small-en` | 512 | | `jina-embeddings-v2-base-en` | 768 | | `jina-embeddings-v2-base-code` | 768 | | `jina-embeddings-v2-base-de` | 768 | | `jina-embeddings-v2-base-zh` | 768 | | `jina-embeddings-v2-base-es` | 768 | | `jina-embeddings-v3` | 1024 | | `jina-embeddings-v4` | 2048 | For any other model name, `ndims()` raises `ValueError`. Appending to an existing table whose vector column is a fixed-size list does not call `ndims()`: the generated vectors are checked against the width stored in the table. ## Text Embedding Models {#text-embedding-models} Jina embeddings are used to generate embeddings for text and image data. You also need to set the `JINA_API_KEY` environment variable to use the Jina API. You can find a list of supported models under [https://jina.ai/embeddings/](https://jina.ai/embeddings/) Supported parameters (to be passed in `create` method) are: | Parameter | Type | Default Value | Description | |---|---|---|---| | `name` | `str` | `"jina-clip-v1"` | The model ID of the jina model to use | Usage Example: Replace `your-api-key` with your Jina API key. This provider reads it from `JINA_API_KEY`; the example sets it explicitly. In application code, supply it through your environment or a secrets manager. {PyEmbeddingJinaText} ## Multimodal Embedding Models {#multimodal-embedding-models} Jina embeddings can also be used to embed both text and image data, only some of the models support image data and you can check the list under [https://jina.ai/embeddings/](https://jina.ai/embeddings/) Supported parameters (to be passed in `create` method) are: | Parameter | Type | Default Value | Description | |---|---|---|---| | `name` | `str` | `"jina-clip-v1"` | The model ID of the jina model to use | Usage Example: {PyEmbeddingJinaMultimodal}