Class DocumentBlock
Inheritance
DocumentBlock
Assembly: Glitch9.AIDevKit.Provider.AmazonAws.dll
Syntax
public sealed class DocumentBlock : ContentBlock
Properties
|
Edit this page
View Source
Citations
Optional. Configuration settings that control how citations should be generated
for this specific document.
Declaration
[JsonProperty("citations")]
public CitationsConfiguration Citations { get; set; }
Property Value
|
Edit this page
View Source
Context
Optional. Contextual information about how the document should be processed
or interpreted by the model when generating citations.
Declaration
[JsonProperty("context")]
public string Context { get; set; }
Property Value
|
Edit this page
View Source
Optional. The format of a document, or its extension.
Declaration
[JsonProperty("format")]
public string Format { get; set; }
Property Value
|
Edit this page
View Source
Name
Required. A name for the document.
The name can only contain alphanumeric characters, whitespace (no more than one in a row),
hyphens, parentheses, and square brackets.
Note: 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.
Declaration
[JsonProperty("name")]
public string Name { get; set; }
Property Value
|
Edit this page
View Source
Source
Required. Contains the content of the document.
Declaration
[JsonProperty("source")]
public DocumentBlock.DocumentSource Source { get; set; }
Property Value
Methods
|
Edit this page
View Source
Base64(string, string, string)
Declaration
public static DocumentBlock Base64(string base64Data, string name, string format = null)
Parameters
Returns
|
Edit this page
View Source
S3(string, string, string, string)
Declaration
public static DocumentBlock S3(string s3Uri, string name, string format = null, string bucketOwner = null)
Parameters
Returns
Extension Methods