Interface RetrievalInstructionContent.Builder

  • Method Details

    • retrievalGuidance

      RetrievalInstructionContent.Builder retrievalGuidance(String retrievalGuidance)

      How to interpret and decompose the question, and what to prioritise when searching.

      Parameters:
      retrievalGuidance - How to interpret and decompose the question, and what to prioritise when searching.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • persona

      Who the assistant is: identity, tone and language.

      Parameters:
      persona - Who the assistant is: identity, tone and language.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • answerFormat

      RetrievalInstructionContent.Builder answerFormat(String answerFormat)

      How the answer is structured, including how sources are cited.

      Parameters:
      answerFormat - How the answer is structured, including how sources are cited.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • answerPolicy

      RetrievalInstructionContent.Builder answerPolicy(String answerPolicy)

      Whether and how to answer: how strongly an answer must be supported, and what to do with questions outside scope.

      Parameters:
      answerPolicy - Whether and how to answer: how strongly an answer must be supported, and what to do with questions outside scope.
      Returns:
      Returns a reference to this object so that method calls can be chained together.