If you’re new to Unstructured, read this note first.Before you can create a destination connector, you must first sign in to your Unstructured account:
- If you do not already have an Unstructured account, sign up for free. After you sign up, you are automatically signed in to your new Unstructured Let’s Go account, at https://platform.unstructured.io. To sign up for a Business account instead, contact Unstructured Sales, or learn more.
- If you already have an Unstructured Let’s Go, Pay-As-You-Go, or Business SaaS account and are not already signed in, sign in to your account at https://platform.unstructured.io. For other types of Business accounts, see your Unstructured account administrator for sign-in instructions, or email Unstructured Support at support@unstructured.io.
-
After you sign in to your Unstructured Let’s Go, Pay-As-You-Go, or Business account, click API Keys on the sidebar.
For a Business account, before you click API Keys, make sure you have selected the organizational workspace you want to create an API key for. Each API key works with one and only one organizational workspace. Learn more. -
Click Generate API Key.
-
Follow the on-screen instructions to finish generating the key.
-
Click the Copy icon next to your new key to add the key to your system’s clipboard. If you lose this key, simply return and click the Copy icon again.
- For the Unstructured UI or the Unstructured API, local OpenSearch instances are not supported.
-
For Unstructured Ingest, local and non-local OpenSearch instances are supported.
For example, to set up an Amazon OpenSearch Service managed cluster instance, complete steps similar to the following:
- Sign in to your AWS account, and then open your AWS Management Console.
- Open your Amazon OpenSearch Service console.
- On the sidebar, expand Managed clusters, and then click Dashboard.
- Click Create domain.
- In the Name tile, for Domain name, enter some unique domain name for your new OpenSearch instance.
- In the Domain creation method tile, select a method for creating the domain. For faster setup with sensible default settings, this example uses the Easy create method. Learn more about the Standard create method.
- In the Engine options tile, for Version, AWS recommends that you select the latest version.
- In the Network tile, for Network, select a network access method. For faster setup, this example uses the Public access method. Learn more about the VPC access method.
- For IP address type, select Dual-stack mode.
-
In the Fine-grained access control tile, do one of the following:
- If you want to use an existing AWS IAM user in the AWS account as the domain’s master user, then for Master user, select Set IAM ARN as master user. Then enter the IAM ARN for the master user in the IAM ARN box.
- If you want to create a master user and password as the domain’s master user instead, then for Master user, select Create master user. Then specify some username and password for this new master user by filling in the Master username, Master password, and Confirm master password fields. Make sure to save the master user’s password in a secure location.
- Click Create.
-
After the domain is created, you must allow Unstructured to access the domain, as follows:
a. If the new domain’s settings page is not already showing, open it as follows:
in your Amazon Open Search Service console, on the sidebar, expand Managed clusters, and then click Domains. Then,
in the list of available domains, click the name of the newly created domain.
b. On the Security configuration tab, click Edit.
c. In the Access policy tile, for Domain access policy, select Only use fine-grained access control.
d. Click Clear policy.
e. Click Save changes.
- Sign in to your AWS account, and then open your AWS Management Console.
- Open your Amazon OpenSearch Service console.
- On the sidebar, expand Serverless, and then click Dashboard.
- Click Create collection.
- In the Collection details tile, for Collection name, enter some unique name for your new OpenSearch Serverless collection. Optionally, for Description, enter some meaningful description for your new collection.
-
For Collection type, select Search.
Unstructured does not support the Vector search collection type. If you need vector search support, you can either continue with these steps to use the Search collection type, or you can follow the preceding steps to set up set up an Amazon OpenSearch Service managed cluster instead. However, note that the Amazon OpenSearch Serverless Search collection type is not as optimal as the Vector search collection type.
- In the Collection creation method tile, select Standard create.
- For Encryption, choose an AWS KMS key type.
- For Network access settings, choose an Access type.
- For Resource type, select both Enable access to OpenSearch endpoint and Enable access to OpenSearch Dashboards.
- Click Next.
- In the Definition method tile, select JSON.
-
In the JSON editor box, enter the following JSON, replacing the following placeholders:
- Replace
<collection-name>with the name of the new OpenSearch Serverless collection. - Replace
<account-id>with the target AWS account ID. - Replace
<user-id>with the ID of the target AWS IAM user.
- Replace
- Click Next.
- For Data access policy settings, select Create as a new data access policy.
- In the Name and description tile, enter some unique name and an optional description for the new data access policy.
- Click Next.
-
Enter any desired index details, and click Next again. For example:
a. For Index name, enter the name of the new index in the collection.
b. For Automatic Semantic Enrichment fields, click Add, enterembeddingsfor Automatic Semantic Enrichment field name, click Add, and click *Confirm.
c. For Lexical search fields, click Add, entertextfor Field name and select Text for Data type, click Add, and click *Confirm.
- Click Submit.
-
The instance’s host URL, as follows:
-
For an Amazon OpenSearch Service instance, do the following:
- Sign in to your AWS account, and then open your AWS Management Console.
- Open your Amazon OpenSearch Service console.
- On the sidebar, expand Managed clusters, and then click Dashboard.
- In the list of available domains, click the name of your domain.
- In the General information tile, copy the value of Domain endpoint v2 (dual stack).
-
For an Amazon OpenSearch Serverless collection, do the following:
- Sign in to your AWS account, and then open your AWS Management Console.
- Open your Amazon OpenSearch Service console.
- On the sidebar, expand Serverless, and then click Dashboard.
- In the list of available collections, click the name of your collection.
- On the Overview tab, in the Endpoint tile, copy the value of OpenSearch endpoint.
- For a local OpenSearch instance, see Communicate with OpenSearch.
-
For an Amazon OpenSearch Service instance, do the following:
-
The name of the search index on the instance.
For the destination connector, if you need to create an index and you’re using a master user and password as the domain’s master user, you can use for example the following
curlcommand. Replace the following placeholders:- Replace
<host>with the instance’s host URL. - Replace
<port>with the instance’s port number, which is typically443(for encrypted connections, and less commonly9200for unencrypted connections). - Replace
<master-username>with the master user’s name, and replace<master-password>with the master user’s password. - Replace
<index-name>with the name of the new search index on the instance. - Replace
<index-schema>with the schema for the new search index on the instance. A schema is optional; see the explanation following thiscurlcommand for more information.
If you’re using an existing AWS IAM user as the domain’s master user instead, you should use the AWS Command Line Interface (CLI) to create the index instead of using the precedingcurlcommand. To learn how, see create-index in the AWS CLI Command Reference. For the destination connector, the index does not need to contain a schema beforehand. If Unstructured encounters an index without a schema, Unstructured will automatically create a compatible schema for you before inserting items into the index. Nonetheless, to reduce possible schema compatibility issues, Unstructured recommends that you create a schema that is compatible with Unstructured’s schema. Unstructured cannot provide a schema that is guaranteed to work in all circumstances. This is because these schemas will vary based on your source files’ types; how you want Unstructured to partition, chunk, and generate embeddings; any custom post-processing code that you run; and other factors. For objects in themetadatafield that Unstructured produces and that you want to store in an OpenSearch index, you must create fields in your index’s schema that follows Unstructured’smetadatafield naming convention. For example, if Unstructured produces ametadatafield with the following child objects:You can adapt the following index schema example for your own needs. Note that outside ofmetadata, the following fields are required by Unstructured whenever you create your own index schema:element_idrecord_id, which is required by Unstructured for intelligent record updates.type, which is not required, but highly recommended.textembeddingsif embeddings are generated; make sure to setdimensionto the same number of dimensions as the embedding model generates.
See also: - Replace
- For non-local OpenSearch instances, or if you’re using basic authentication to a local OpenSearch instance, the master user’s name and password.
-
For local OpenSearch instances, if you’re using certificates for authentication instead of basic authentication:
- The path to the Certificate Authority (CA) bundle, if you use intermediate CAs with your root CA.
- The path to the combined private key and certificate file, or
- The paths to the separate private key and certificate file.
-
<name>(required) - A unique name for this connector. -
https://<host>:<port>(required) - The OpenSearch instance’s host URL, which typically takes the form ofhttps://<host>:<port>. -
<index-name>(required) - The name of the search index on the instance. -
<username>- If you’re using basic authentication to the instance, the domain’s master user’s name. -
<password>- If you’re using basic authentication to the instance, the domain’s master user’s password. -
<aws-access-key-id>- If you’re using an existing AWS IAM user as the domain’s master user, the AWS access key ID for the AWS IAM user. If you’re also using AWS STS for authentication, this will be a temporary AWS access key ID. -
<aws-secret-access-key>- If you’re using an existing AWS IAM user as the domain’s master user, the AWS secret access key for the AWS IAM user. If you’re also using AWS STS for authentication, this will be a temporary AWS secret access key. -
<aws-session-token>- If you’re using AWS STS for authentication, the temporary AWS STS session token. -
<field-name>(source connectors only) - Any specific fields to be accessed in the index. -
<use-ssl>(required) - True if the OpenSearch instance requires an SSL connection; otherwise, false.

