batch_process_embeddings
Process content files to generate embeddings for AI tasks like similarity search, classification, and retrieval. Handles file ingestion, batch processing, and result delivery as 1536-dimensional vectors with metadata.
Instructions
COMPLETE EMBEDDINGS WORKFLOW - End-to-end embeddings batch processing. WORKFLOW: 1) Ingests content, 2) Queries user for task type (or auto-recommends), 3) Converts to JSONL, 4) Uploads, 5) Creates batch job, 6) Polls until complete, 7) Downloads results. BEST FOR: Simple one-call embeddings generation. RETURNS: Embeddings array (1536-dimensional vectors) with metadata.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"inputFile": "<inputFile>"
},
"name": "batch_process_embeddings"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| inputFile | Yes | Path to content file | |
| taskType | No | Embedding task type (omit to get interactive prompt) | |
| model | No | Embedding model | gemini-embedding-001 |
| outputLocation | No | Output directory for results | |
| pollIntervalSeconds | No | Seconds between status checks |