Chunk
Google Gemini document chunk
Operations
Create
Create a new document
function : Create(value:String, metadata:Map<String,String>, document:Document) ~ Chunk
Parameters
Name | Type | Description |
---|---|---|
value | String | check string value |
metadata | Map<String,String> | document metadata |
document | Document | document to attach chunk |
Return
Type | Description |
---|---|
Chunk | new Document |
Delete
Delete existing chunk
method : public : Delete() ~ Bool
Return
Type | Description |
---|---|
Bool | true if successful, false otherwise |
Get
Get existing chunk
function : Get(name:String) ~ Chunk
Parameters
Name | Type | Description |
---|---|---|
name | String | chunk name |
Return
Type | Description |
---|---|
Chunk | existing chunk |
GetCreateTime
Get creation time
method : public : GetCreateTime() ~ System.Time.Date
Return
Type | Description |
---|---|
System.Time.Date | creation time |
GetUpdateTime
Get update time
method : public : GetUpdateTime() ~ System.Time.Date
Return
Type | Description |
---|---|
System.Time.Date | update time |
List
Get all existing chunks
function : List(document:Document) ~ Collection.Vector<Chunk>
Parameters
Name | Type | Description |
---|---|---|
document | Document | document of documents to list |
Return
Type | Description |
---|---|
CollectionVector<Chunk> | list of chunks |
ToString
String representation of the object
method : public : ToString() ~ String
Return
Type | Description |
---|---|
String | string representation |