Class RetrieveAndGenerateRequest

    • Method Detail

      • input

        public final RetrieveAndGenerateInput input()

        Contains the query to be made to the knowledge base.

        Returns:
        Contains the query to be made to the knowledge base.
      • retrieveAndGenerateConfiguration

        public final RetrieveAndGenerateConfiguration retrieveAndGenerateConfiguration()

        Contains configurations for the knowledge base query and retrieval process. For more information, see Query configurations.

        Returns:
        Contains configurations for the knowledge base query and retrieval process. For more information, see Query configurations.
      • sessionConfiguration

        public final RetrieveAndGenerateSessionConfiguration sessionConfiguration()

        Contains details about the session with the knowledge base.

        Returns:
        Contains details about the session with the knowledge base.
      • sessionId

        public final String sessionId()

        The unique identifier of the session. When you first make a RetrieveAndGenerate request, Amazon Bedrock automatically generates this value. You must reuse this value for all subsequent requests in the same conversational session. This value allows Amazon Bedrock to maintain context and knowledge from previous interactions. You can't explicitly set the sessionId yourself.

        Returns:
        The unique identifier of the session. When you first make a RetrieveAndGenerate request, Amazon Bedrock automatically generates this value. You must reuse this value for all subsequent requests in the same conversational session. This value allows Amazon Bedrock to maintain context and knowledge from previous interactions. You can't explicitly set the sessionId yourself.
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object