Values.DocumentBlockSourceA document to include in a message.
type nonrec t = {format : DocumentFormat.t option;The format of a document, or its extension.
*)name : DocumentBlockNameString.t;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.
*)source : DocumentSource.t;Contains the content of the document.
*)context : String_.t option;Contextual information about how the document should be processed or interpreted by the model when generating citations.
*)citations : CitationsConfig.t option;Configuration settings that control how citations should be generated for this specific document.
*)}val make :
?format:??? ->
?context:??? ->
?citations:??? ->
name:DocumentBlockNameString.t ->
source:DocumentSource.t ->
unit ->
tval to_value :
t ->
[> `Structure of
(string
* [> `Enum of string
| `String of DocumentBlockNameString.t
| `Structure of
(string
* [> `Blob of DocumentSourceBytesBlob.t
| `Boolean of Boolean.t
| `List of
[> `Structure of (string * [> `String of String_.t ]) list ]
list
| `String of String_.t
| `Structure of (string * [> `String of S3Uri.t ]) list ])
list ])
list ]