Image data as a URL string (file:// or https://) or a raw Buffer.
Optional metadataOptional metadata to attach to the indexed document. Stored alongside the embedding for filtering during search.
{ source: 'upload', tags: ['landscape', 'nature'] }
Optional collectionVector store collection to index into.
'multimodal'
Options for indexing an image into the vector store.
The image is described by a vision-capable LLM, then the description is embedded and stored alongside the original image reference.
Example