record_embedding
Store embedding vectors for files or symbols to populate a vector search index, enabling semantic search and retrieval in AI coding environments.
Instructions
Store an embedding vector for a symbol or file. Call this after generating an embedding with your native capability. Used to populate the vector search index.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entity_type | Yes | What kind of entity this embedding represents | |
| entity_id | Yes | ID of the file or symbol being embedded | |
| snapshot_id | No | Snapshot this embedding belongs to | |
| model | Yes | Embedding model identifier (e.g. text-embedding-3-small) | |
| vector | Yes | The embedding vector produced by the agent | |
| source_text | Yes | The text that was embedded (for audit / re-embed on model change) |