Send processed data from Unstructured to Weaviate.

You’ll need:

The Weaviate prerequisites:

  1. A Weaviate database instance. The following information assumes that you have a Weaviate Cloud (WCD) account with a Weaviate database cluster in that account. Create a WCD account. Create a database cluster. For other database options, learn more.

  2. The URL and API key for the database cluster. Get the URL and API key.

  3. A collection in the database cluster. Note the name of the collection, also known as the collection’s class name. Create a collection.

    The schema of the collection that you use must match the data that Unstructured writes to it. Otherwise, you might get unexpected results or errors. Unstructured cannot provide a schema that is guaranteed to work for everyone 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.

    You can adapt the following collection schema example for your own needs:

    {
        "class": "Elements",
        "properties": [
            {
                "name": "element_id",
                "dataType": ["text"]
            },
            {
                "name": "text",
                "dataType": ["text"]
            },
            {
                "name": "embeddings",
                "dataType": ["number[]"]
            },
            {
                "name": "metadata",
                "dataType": ["object"],
                "nestedProperties": [
                    {
                        "name": "parent_id",
                        "dataType": ["text"]
                    },
                    {
                        "name": "page_number",
                        "dataType": ["text"]
                    },
                    {
                        "name": "is_continuation",
                        "dataType": ["boolean"]
                    },
                    {
                        "name": "orig_elements",
                        "dataType": ["text"]
                    }
                ]
            }
        ]
    }
    

    See also :

To create the destination connector:

  1. On the sidebar, click Connectors.
  2. Click Destinations.
  3. Click Add new.
  4. Give the connector some unique Name.
  5. In the Provider area, click Weaviate.
  6. Click Continue.
  7. Follow the on-screen instructions to fill in the fields as described later on this page.
  8. Click Save and Test.

Fill in the following fields:

  • Name (required): A unique name for the connector.
  • Host URL (required): The URL of the Weaviate database cluster.
  • Collection Name (required): The name of the target collection within the cluster.
  • Batch Size: The maximum number of records to be transmitted in a single batch.
  • API Key (required): The API key provided by Weaviate to access the cluster.