ManagesStores
trait ManagesStores
Methods
createStore(string $name, string|null $description = null, Collection|null $fileIds = null, DateInterval|null $expiresWhenIdleFor = null)
Create a new vector store.
string
addFileToStore(string $storeId, HasProviderId $file, array $metadata = [])
Add a file to a vector store.
bool
removeFileFromStore(string $storeId, HasProviderId|string $documentId)
Remove a file from a vector store.
bool
deleteStore(string $storeId)
Delete a vector store by its ID.
Details
at line 30
Store
getStore(string $storeId)
Get a vector store by its ID.
at line 38
Store
createStore(string $name, string|null $description = null, Collection|null $fileIds = null, DateInterval|null $expiresWhenIdleFor = null)
Create a new vector store.
at line 87
string
addFileToStore(string $storeId, HasProviderId $file, array $metadata = [])
Add a file to a vector store.
at line 122
bool
removeFileFromStore(string $storeId, HasProviderId|string $documentId)
Remove a file from a vector store.
at line 162
bool
deleteStore(string $storeId)
Delete a vector store by its ID.