import os
from unstructured import UnstructuredClient
client = UnstructuredClient(
username=os.environ.get("UNSTRUCTURED_USERNAME"), # This is the default and can be omitted
password=os.environ.get("UNSTRUCTURED_PASSWORD"), # This is the default and can be omitted
)
response = client.data_slice.export_vdb(
target_data_connector_name="target_data_connector_name",
)
print(response.details)
{
"message": "<string>",
"details": {}
}
Data Slices
Export Dataslice2Vdb
Export metadata for a data slice to a target vector database
POST
/
dataslice
/
export
/
vdb
Python
import os
from unstructured import UnstructuredClient
client = UnstructuredClient(
username=os.environ.get("UNSTRUCTURED_USERNAME"), # This is the default and can be omitted
password=os.environ.get("UNSTRUCTURED_PASSWORD"), # This is the default and can be omitted
)
response = client.data_slice.export_vdb(
target_data_connector_name="target_data_connector_name",
)
print(response.details)