Class OpenAiEmbeddingClient

java.lang.Object
ch.tocco.nice2.optional.aiassistant.impl.function.manual.OpenAiEmbeddingClient
All Implemented Interfaces:
EmbeddingClient

@Component public class OpenAiEmbeddingClient extends Object implements EmbeddingClient
EmbeddingClient backed by an OpenAI-compatible /embeddings endpoint, configured via ManualParameterProvider. The model and dimension must match what the docs-retrieval-service indexed the manual with.
  • Constructor Details

  • Method Details

    • embed

      public float[] embed(String text)
      Specified by:
      embed in interface EmbeddingClient
      Returns:
      the embedding vector for text