Vision Lens SDK
    Preparing search index...

    Function generateEmbeddings

    • Generate embeddings for a list of ProcessedResults using the configured provider.

      Provider routing:

      • openai / azure → text-embedding-3-small (1536 dims)
      • google / vertex → text-embedding-004 (768 dims)
      • anthropic / bedrock → falls back to OpenAI if apiKey is set, else throws
      • ollama → nomic-embed-text via POST /api/embeddings
      • hybrid → uses the cloud provider embedding path (openai/google/anthropic)

      Processing is sequential — embeddings are a post-run step and do not need concurrency.

      Parameters

      Returns Promise<EmbeddingEntry[]>