This page was recently updated. What do you think about it? Let us know!.
- A LanceDB open source software (OSS) installation on a local machine, a server, or a virtual machine. (LanceDB Cloud is not supported.)
-
For LanceDB OSS with local data storage:
- The local path to the folder where the LanceDB data is (or will be) stored. See Connect to a database in the LanceDB documentation.
-
The name of the target LanceDB table within the local data folder.
Unstructured recommends that the target table have a field named
record_id
with a text string data type. Unstructured can use this field to do intelligent record overwrites. Without this field, duplicate records might be written to the table or, in some cases, the operation could fail altogether.
-
For LanceDB OSS with data storage in an Amazon S3 bucket:
-
The URI for the target Amazon S3 bucket and any target folder path within that bucket. Use the format
s3://<bucket-name>[/<folder-name>]
. -
The name of the target LanceDB table within the Amazon S3 bucket.
Unstructured recommends that the target table have a field named
record_id
with a text string data type. Unstructured can use this field to do intelligent record overwrites. Without this field, duplicate records might be written to the table or, in some cases, the operation could fail altogether. - The AWS access key ID and AWS secret access key for the AWS IAM entity that has access to the Amazon S3 bucket.
-
The URI for the target Amazon S3 bucket and any target folder path within that bucket. Use the format
-
For LanceDB OSS with data storage in an Azure Blob Storage account:
-
The name of the target Azure Blob Storage account.
= The URI for the target container within that Azure Blob Storage account and any target folder path within that container. Use the format
az://<container-name>[/<folder-name>]
. -
The name of the target LanceDB table within the Azure Blob Storage account.
Unstructured recommends that the target table have a field named
record_id
with a text string data type. Unstructured can use this field to do intelligent record overwrites. Without this field, duplicate records might be written to the table or, in some cases, the operation could fail altogether. - The access key for the Azure Blob Storage account.
-
The name of the target Azure Blob Storage account.
= The URI for the target container within that Azure Blob Storage account and any target folder path within that container. Use the format
-
For LanceDB OSS with data storage in a Google Cloud Storage bucket:
-
The URI for the target Google Cloud Storage bucket and any target folder path within that bucket. Use the format
gs://<bucket-name>[/<folder-name>]
. -
The name of the target LanceDB table within the Google Cloud Storage bucket.
Unstructured recommends that the target table have a field named
record_id
with a text string data type. Unstructured can use this field to do intelligent record overwrites. Without this field, duplicate records might be written to the table or, in some cases, the operation could fail altogether. - A single-line string that contains the contents of the downloaded service account key file for the Google Cloud service account that has access to the Google Cloud Storage bucket.
-
The URI for the target Google Cloud Storage bucket and any target folder path within that bucket. Use the format
CLI, Python
-
For LanceDB OSS with local data storage:
LANCEDB_URI
- The local path to the folder where the LanceDB data is stored, represented by--uri
(CLI) oruri
(Python).LANCEDB_TABLE
- The name of the target LanceDB table within the local data folder, represented by--table-name
(CLI) ortable_name
(Python).
-
For LanceDB OSS with data storage in an Amazon S3 bucket:
LANCEDB_URI
- The URI for the target Amazon S3 bucket and any target folder path within that bucket. Use the formats3://<bucket-name>[/<folder-name>]
. This is represented by--uri
(CLI) oruri
(Python).LANCEDB_TABLE
- The name of the target LanceDB table within the Amazon S3 bucket, rrepresented by--table-name
(CLI) ortable_name
(Python).AWS_ACCESS_KEY_ID
- The AWS access key ID for the AWS IAM entity that has access to the Amazon S3 bucket, represented by--aws-access-key-id
(CLI) oraws_access_key_id
(Python).AWS_SECRET_ACCESS_KEY
- The AWS secret access key for the AWS IAM entity that has access to the Amazon S3 bucket, represented by--aws-secret-access-key
(CLI) oraws_secret_access_key
(Python).
-
For LanceDB OSS with data storage in an Azure Blob Storage account:
LANCEDB_URI
- The URI for the target container within that Azure Blob Storage account and any target folder path within that container. Use the formataz://<container-name>[/<folder-name>]
. This is represented by--uri
(CLI) oruri
(Python).LANCEDB_TABLE
- The name of the target LanceDB table within the Azure Blob Storage account, represented by--table-name
(CLI) ortable_name
(Python).AZURE_STORAGE_ACCOUNT_NAME
- The name of the target Azure Blob Storage account, represented by--azure-storage-account-name
(CLI) orazure_storage_account_name
(Python).AZURE_STORAGE_ACCOUNT_KEY
- The access key for the Azure Blob Storage account, represented by--azure-storage-account-key
(CLI) orazure_storage_account_key
(Python).
-
For LanceDB OSS with data storage in a Google Cloud Storage bucket:
LANCEDB_URI
- The URI for the target Google Cloud Storage bucket and any target folder path within that bucket. Use the formatgs://<bucket-name>[/<folder-name>]
. This is represented by--uri
(CLI) oruri
(Python).LANCEDB_TABLE
- The name of the target LanceDB table within the Google Cloud Storage bucket, represented by--table-name
(CLI) ortable_name
(Python).GCS_SERVICE_ACCOUNT_KEY
- A single-line string that contains the contents of the downloaded service account key file for the Google Cloud service account that has access to the Google Cloud Storage bucket, represented by--google-service-account-key
(CLI) orgoogle_service_account_key
(Python).
--partition-by-api
option (CLI) or partition_by_api
(Python) parameter to specify where files are processed:
-
To do local file processing, omit
--partition-by-api
(CLI) orpartition_by_api
(Python), or explicitly specifypartition_by_api=False
(Python). Local file processing does not use an Unstructured API key or API URL, so you can also omit the following, if they appear:--api-key $UNSTRUCTURED_API_KEY
(CLI) orapi_key=os.getenv("UNSTRUCTURED_API_KEY")
(Python)--partition-endpoint $UNSTRUCTURED_API_URL
(CLI) orpartition_endpoint=os.getenv("UNSTRUCTURED_API_URL")
(Python)- The environment variables
UNSTRUCTURED_API_KEY
andUNSTRUCTURED_API_URL
-
To send files to the Unstructured Partition Endpoint for processing, specify
--partition-by-api
(CLI) orpartition_by_api=True
(Python). Unstructured also requires an Unstructured API key and API URL, by adding the following:--api-key $UNSTRUCTURED_API_KEY
(CLI) orapi_key=os.getenv("UNSTRUCTURED_API_KEY")
(Python)--partition-endpoint $UNSTRUCTURED_API_URL
(CLI) orpartition_endpoint=os.getenv("UNSTRUCTURED_API_URL")
(Python)- The environment variables
UNSTRUCTURED_API_KEY
andUNSTRUCTURED_API_URL
, representing your API key and API URL, respectively.
You must specify the API URL only if you are not using the default API URL for Unstructured Ingest, which applies to Starter and Team accounts.The default API URL for Unstructured Ingest ishttps://api.unstructuredapp.io/general/v0/general
, which is the API URL for the Unstructured Partition Endpoint. However, you should always use the URL that was provided to you when your Unstructured account was created. If you do not have this URL, email Unstructured Support at support@unstructured.io.If you do not have an API key, get one now.If you are using an Enterprise account, the process for generating Unstructured API keys, and the Unstructured API URL that you use, are different. For instructions, see your Unstructured account administrator, or email Unstructured Support at support@unstructured.io.