All Bundles
VectorStoreFile
Vector store files represent files inside a vector store
Derived from: EndPoint
Operations
Code example:
store := API.OpenAI.VectorStore->Load(store_id, token);
file := API.OpenAI.File->Load(file_id, token);
if(store <> Nil & file <> Nil) {
VectorStoreFile->Create(file, store, token)->ToString()->PrintLine();
};
Create
Create a vector store
function : Create(file:API.OpenAI.File, store:VectorStore, token:String) ~ VectorStoreFile
Parameters
Return
Delete
Deletes a file store
function : Delete(store_file_id:String, store:VectorStore, token:String) ~ Bool
Parameters
Name | Type | Description |
---|
store_file_id | String | vector store file ID |
store | VectorStore | vector store that the files belong to |
token | String | API token |
Return
Type | Description |
---|
Bool | true if successful, false otherwise |
GetBytes
Get the store's usage in bytes
method : public : GetBytes() ~ Int
Return
Type | Description |
---|
Int | store's usage in bytes |
GetCreatedAt
Unix timestamp (in seconds) of when the object instance was created
method : public : GetCreatedAt() ~ Int
Return
Type | Description |
---|
Int | time with the object instance was created |
GetId
Get object instance API ID
method : public : GetId() ~ String
Return
Type | Description |
---|
String | instance ID |
GetObject
Get the object type
method : public : GetObject() ~ String
Return
Type | Description |
---|
String | object type |
GetStatus
Get the store's status
method : public : GetStatus() ~ String
Return
Type | Description |
---|
String | store's status |
GetVectorStore
Get vector store
method : public : GetVectorStore() ~ VectorStore
Return
ListStoreFiles
Lists vector store files
function : ListStoreFiles(store:VectorStore, token:String) ~ Vector<VectorStoreFile>
Parameters
Name | Type | Description |
---|
store | VectorStore | vector store that the files belong to |
token | String | API token |
Return
Load
Loads vector store file
function : Load(store_file_id:String, store:VectorStore, token:String) ~ VectorStoreFile
Parameters
Name | Type | Description |
---|
store_file_id | String | vector store file ID |
store | VectorStore | vector store that the files belong to |
token | String | API token |
Return
ToString
String representation of the object
method : public : ToString() ~ String
Return
Type | Description |
---|
String | string representation |