Interface EmbeddingModel

  • All Implemented Interfaces:

    
    public interface EmbeddingModel
    
                        

    Represents a model that can convert a given text into an embedding (vector representation of the text).

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Constructor Detail

    • Method Detail

      • embed

         Response<Embedding> embed(TextSegment textSegment)

        Embed the text content of a TextSegment.

        Parameters:
        textSegment - the text segment to embed.
        Returns:

        the embedding.

      • dimension

         int dimension()

        Returns the dimension of the Embedding produced by this embedding model.

        Returns:

        dimension of the embedding