Interface EmbeddingHeadersProvider

All Known Implementing Classes:
AWSEmbeddingHeadersProvider, EmbeddingAPIKeyHeaderProvider

public interface EmbeddingHeadersProvider
To use the interface embeddings API the user needs to be authenticated against the embedding provider. - You can set the header variable `x-embedding-api-key` to authenticate against the embedding provider. - You can set multiple headers to authenticate against multiple embedding providers.
  • Method Summary

    Modifier and Type
    Method
    Description
    Build the Header to authenticate against embeddings provider.
  • Method Details

    • getHeaders

      Map<String,String> getHeaders()
      Build the Header to authenticate against embeddings provider.
      Returns:
      headers to use for the embedding provider.