Compute text embeddings
replicate_embed_textConvert text into numeric embedding vectors for RAG, semantic search, clustering, and similarity scoring. Supports multiple models and optional extra inputs.
Instructions
Convert text(s) into numeric embedding vectors. Useful for RAG, semantic search, clustering, similarity scoring.
Args:
texts: A single string or an array of strings (max 256). Each text is embedded independently.
model (default "bge-large"): Curated (bge-large, jina-embeddings-v3, all-minilm) or "owner/name".
extra_input (object, optional): Model-specific extras (e.g. {task: "retrieval.query"} for jina v3).
Returns: PredictionResult — the embedding vectors are in structuredContent.output (model-specific shape).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | Embedding model. Curated: bge-large, jina-embeddings-v3, all-minilm. Or "owner/name". | bge-large |
| texts | Yes | A single text or an array of texts to embed. | |
| download | No | Output is a numeric vector — default false. | |
| timeout_ms | No | Max ms to wait for the prediction. If exceeded, returns the prediction ID so you can poll via replicate_get_prediction. Default: 300000 (5min). | |
| extra_input | No |