Interface DocumentBlock.Builder

    • Method Detail

      • format

        DocumentBlock.Builder format​(String format)

        The format of a document, or its extension.

        Parameters:
        format - The format of a document, or its extension.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        DocumentFormat, DocumentFormat
      • name

        DocumentBlock.Builder name​(String name)

        A name for the document. The name can only contain the following characters:

        • Alphanumeric characters

        • Whitespace characters (no more than one in a row)

        • Hyphens

        • Parentheses

        • Square brackets

        This field is vulnerable to prompt injections, because the model might inadvertently interpret it as instructions. Therefore, we recommend that you specify a neutral name.

        Parameters:
        name - A name for the document. The name can only contain the following characters:

        • Alphanumeric characters

        • Whitespace characters (no more than one in a row)

        • Hyphens

        • Parentheses

        • Square brackets

        This field is vulnerable to prompt injections, because the model might inadvertently interpret it as instructions. Therefore, we recommend that you specify a neutral name.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • source

        DocumentBlock.Builder source​(DocumentSource source)

        Contains the content of the document.

        Parameters:
        source - Contains the content of the document.
        Returns:
        Returns a reference to this object so that method calls can be chained together.