Skip to main content
Glama

Compute text embeddings

replicate_embed_text
Idempotent

Convert 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

TableJSON Schema
NameRequiredDescriptionDefault
modelNoEmbedding model. Curated: bge-large, jina-embeddings-v3, all-minilm. Or "owner/name".bge-large
textsYesA single text or an array of texts to embed.
downloadNoOutput is a numeric vector — default false.
timeout_msNoMax ms to wait for the prediction. If exceeded, returns the prediction ID so you can poll via replicate_get_prediction. Default: 300000 (5min).
extra_inputNo
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations indicate idempotency and non-destructiveness. The description adds return format details (structuredContent.output) and mentions model-specific shapes, providing behavioral context beyond annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is concise (about 120 words) and well-structured: purpose, use cases, args list, return value. No redundant sentences.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool has 5 parameters, no output schema, and nested objects, the description covers main parameters and return format adequately. It lacks explanation for download and timeout_ms, but schema descriptions compensate. An example would improve completeness.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 80% schema description coverage, the description adds value by explaining texts (independent embedding, max 256), model (curated list or custom), and extra_input with an example. Two parameters (download, timeout_ms) are not elaborated but have schema descriptions.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool converts text into numeric embedding vectors and lists specific use cases (RAG, semantic search, clustering, similarity scoring), distinguishing it from siblings that generate images, audio, etc.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides clear use contexts but does not explicitly contrast with alternative tools or state when not to use it. However, the embeddings-focused purpose implicitly differentiates from siblings.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/sena-labs/replicate-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server