Chunk
Google Gemini document chunk
Operations
Create
Create a new document
function : Create(value:String, metadata:Map<String,String>, document:Document) ~ ChunkParameters
| 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() ~ BoolReturn
| Type | Description |
|---|---|
| Bool | true if successful, false otherwise |
Get
Get existing chunk
function : Get(name:String) ~ ChunkParameters
| Name | Type | Description |
|---|---|---|
| name | String | chunk name |
Return
| Type | Description |
|---|---|
| Chunk | existing chunk |
GetCreateTime
Get creation time
method : public : GetCreateTime() ~ System.Time.DateReturn
| Type | Description |
|---|---|
| Date | creation time |
GetUpdateTime
Get update time
method : public : GetUpdateTime() ~ System.Time.DateReturn
| Type | Description |
|---|---|
| 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() ~ StringReturn
| Type | Description |
|---|---|
| String | string representation |