Class RagRequest

java.lang.Object
ai.vectros.resources.inference.requests.RagRequest

public final class RagRequest extends Object
  • Method Details

    • getQuery

      public String getQuery()
      Returns:
      The natural-language question to answer over your indexed content.
    • getInstructions

      public Optional<String> getInstructions()
      Returns:
      Optional system prompt that overrides the default. Defaults to a generic instruction to answer using only the provided context.
    • getModel

      public Optional<String> getModel()
      Returns:
      Model alias to use, from the list returned by GET /v1/models. Defaults to claude-haiku-4-5.
    • getSearch

      public Optional<RagSearch> getSearch()
    • getMaxTokens

      public Optional<Integer> getMaxTokens()
      Returns:
      Maximum number of tokens to generate. Defaults to 1024; the maximum is 4096.
    • getTemperature

      public Optional<Float> getTemperature()
      Returns:
      Sampling temperature. Defaults to 0.3, favoring more deterministic, retrieval-grounded answers.
    • getAllowGlobalRegion

      public Optional<Boolean> getAllowGlobalRegion()
      Returns:
      Opt this request into global (non-US) region serving for lower cost. Requires a signed global-processing waiver on your account that permits per-request override; otherwise the request is rejected with 403. When omitted, the request follows your account's default residency setting.
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • getAdditionalProperties

      public Map<String,Object> getAdditionalProperties()
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • builder

      public static RagRequest.QueryStage builder()