Class EmbeddingRequest

java.lang.Object
org.springframework.ai.embedding.EmbeddingRequest
All Implemented Interfaces:
ModelRequest<List<String>>

public class EmbeddingRequest extends Object implements ModelRequest<List<String>>
Request to embed a list of input instructions.
Author:
Christian Tzolov
  • Constructor Details

  • Method Details

    • getInstructions

      public List<String> getInstructions()
      Description copied from interface: ModelRequest
      Retrieves the instructions or input required by the AI model.
      Specified by:
      getInstructions in interface ModelRequest<List<String>>
      Returns:
      the instructions or input required by the AI model
    • getOptions

      @Nullable public EmbeddingOptions getOptions()
      Description copied from interface: ModelRequest
      Retrieves the customizable options for AI model interactions.
      Specified by:
      getOptions in interface ModelRequest<List<String>>
      Returns:
      the customizable options for AI model interactions