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.
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 |