Optional topKMaximum number of results to return.
5
Optional modalitiesFilter results to specific modalities. If omitted or empty, all modalities are searched.
Optional collectionVector store collection to search in.
'multimodal'
Optional hydeHyDE (Hypothetical Document Embedding) configuration for this search.
When enabled, a hypothetical answer is generated from the query via LLM and embedded instead of the raw query. This produces embeddings that are semantically closer to stored document representations, improving recall for vague or exploratory queries.
Requires a HydeRetriever to be set on the indexer via
MultimodalIndexer.setHydeRetriever.
Optional enabled?: booleanWhether to use HyDE for this search.
false
Optional hypothesis?: stringPre-generated hypothesis text (skips the LLM call).
const results = await indexer.search('architecture diagram', {
hyde: { enabled: true },
});
Options for cross-modal search.
Example