Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions mint.json
Original file line number Diff line number Diff line change
Expand Up @@ -525,6 +525,7 @@
"platform/destinations/postgresql",
"platform/destinations/qdrant",
"platform/destinations/s3",
"platform/destinations/redis",
"platform/destinations/weaviate"
]
},
Expand Down Expand Up @@ -576,6 +577,7 @@
"platform/api/destinations/pinecone",
"platform/api/destinations/postgresql",
"platform/api/destinations/qdrant",
"platform/api/destinations/redis",
"platform/api/destinations/s3",
"platform/api/destinations/weaviate"
]
Expand Down
1 change: 1 addition & 0 deletions platform/api/destinations/overview.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ For the list of specific settings, see:
- [Pinecone](/platform/api/destinations/pinecone) (`destination_type=pinecone`)
- [PostgreSQL](/platform/api/destinations/postgresql) (`destination_type=postgres`)
- [Qdrant](/platform/api/destinations/qdrant) (`destination_type=qdrant-cloud`)
- [Redis](/platform/api/destinations/redis) (`destination_type=redis`)
- [S3](/platform/api/destinations/s3) (`destination_type=s3`)
- [Weaviate](/platform/api/destinations/weaviate) (`destination_type=weaviate`)

30 changes: 30 additions & 0 deletions platform/api/destinations/redis.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
title: Redis
---

Send processed data from Unstructured to Redis.

The requirements are as follows.

import RedisPrerequisites from '/snippets/general-shared-text/redis.mdx';

<RedisPrerequisites />

To create or change a Redis destination connector, see the following examples.

import RedisAPIRESTCreate from '/snippets/destination_connectors/redis_rest_create.mdx';
import RedisAPIRESTChange from '/snippets/destination_connectors/redis_rest_change.mdx';

<CodeGroup>
<RedisAPIRESTCreate />
<RedisAPIRESTChange />
</CodeGroup>

Replace the preceding placeholders as follows:

import RedisAPIPlaceholders from '/snippets/general-shared-text/redis-api-placeholders.mdx';

<RedisAPIPlaceholders />

To change a connector, replace `<connector-id>` with the destination connector's unique ID.
To get this ID, see [List destination connectors](/platform/api/overview#list-destination-connectors).
1 change: 1 addition & 0 deletions platform/connectors.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ If your source is not listed here, you might still be able to connect Unstructur
- [Pinecone](/platform/destinations/pinecone)
- [PostgreSQL](/platform/destinations/postgresql)
- [Qdrant](/platform/destinations/qdrant)
- [Redis](/platform/destinations/redis)
- [S3](/platform/destinations/s3)
- [Weaviate](/platform/destinations/weaviate)

Expand Down
1 change: 1 addition & 0 deletions platform/destinations/overview.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ To create a destination connector:
- [Pinecone](/platform/destinations/pinecone)
- [PostgreSQL](/platform/destinations/postgresql)
- [Qdrant](/platform/destinations/qdrant)
- [Redis](/platform/destinations/redis)
- [S3](/platform/destinations/s3)
- [Weaviate](/platform/destinations/weaviate)

Expand Down
26 changes: 26 additions & 0 deletions platform/destinations/redis.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
title: Redis
---

Send processed data from Unstructured to Redis.

The requirements are as follows.

import RedisPrerequisites from '/snippets/general-shared-text/redis.mdx';

<RedisPrerequisites />

To create the destination connector:

1. On the sidebar, click **Connectors**.
2. Click **Destinations**.
3. Cick **New** or **Create Connector**.
4. Give the connector some unique **Name**.
5. In the **Provider** area, click **Redis**.
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**.

import RedisFields from '/snippets/general-shared-text/redis-platform.mdx';

<RedisFields />
24 changes: 24 additions & 0 deletions snippets/destination_connectors/redis_rest_change.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
```bash REST (Change)
curl --request 'PUT' --location \
"$UNSTRUCTURED_API_URL/destinations/<connector-id>" \
--header 'accept: application/json' \
--header "unstructured-api-key: $UNSTRUCTURED_API_KEY" \
--header 'content-type: application/json' \
--data \
'{
"config": {
"database": <database>,
"ssl": <true|false>,
"batch_size": <batch-size>,

# For URI authentication:
"uri": "<uri>"

# For password authentication:
"host": "<host>",
"port": <port>,
"username": "<username>",
"password": "<password>"
}
}'
```
26 changes: 26 additions & 0 deletions snippets/destination_connectors/redis_rest_create.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
```bash REST (Create)
curl --request 'POST' --location \
"$UNSTRUCTURED_API_URL/destinations" \
--header 'accept: application/json' \
--header "unstructured-api-key: $UNSTRUCTURED_API_KEY" \
--header 'content-type: application/json' \
--data \
'{
"name": "<name>",
"type": "redis",
"config": {
"database": <database>,
"ssl": <true|false>,
"batch_size": <batch-size>,

# For URI authentication:
"uri": "<uri>"

# For password authentication:
"host": "<host>",
"port": <port>,
"username": "<username>",
"password": "<password>"
}
}'
```
9 changes: 9 additions & 0 deletions snippets/general-shared-text/redis-api-placeholders.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
- `<name>` (required) - A unique name for this connector.
- `<uri>` For URI authentication, the connection URI for the target database user and password, hostname, and port number. Use the format of `redis://<username>:<password>@<hostname>:<port-number>`. If SSL encryption is enabled for the database, use `rediss://` instead of `redis://`.
- `<host>` (_required_ for password authentication): The target database's hostname.
- `<port>`: For password authentication, the database's port number. The default is `6379` unless otherwise specified.
- `<username>` (_required_ for password authentication): The name of the database user (not the logged in user).
- `<password>` (_required_ for password authentication): The database user's password.
- `<database>`: The number (index) for the target database. The default is `0` unless otherwise specified.
- For `ssl`, `true` to enable SSL encryption for the connection. Set to `true` only if SSL is already set up and enabled for the target database. The default is `true` unless otherwise specified.
- `<batch-size>`: The maximum number of records to upload in a single batch. The default is `100` unless otherwise specified.
11 changes: 11 additions & 0 deletions snippets/general-shared-text/redis-platform.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Fill in the following fields:

- **Name** (_required_): A unique name for this connector.
- **URI**: If **URI** is selected for **Authentication Method**, the connection URI for the target database user and password, hostname, and port number. Use the format of `redis://<username>:<password>@<hostname>:<port-number>`. If SSL encryption is enabled for the database, use `rediss://` instead of `redis://`.
- **Host** (_required_ if **Password** is selected for **Authentication Method**): The target database's hostname.
- **Port**: If **Password** is selected for **Authentication Method**, the database's port number. The default is `6379` unless otherwise specified.
- **Username** (_required_ if **Password** is selected for **Authentication Method**): The name of the database user (not the logged in user).
- **Password** (_required_ if **Password** is selected for **Authentication Method**): The database user's password.
- **Database Index**: The number (index) for the target database. The default is `0` unless otherwise specified.
- **SSL**: Check this box to enable SSL encryption for the connection. Check this box only if SSL is already set up and enabled for the target database. This box is checked by default.
- **Batch Size**: The maximum number of records to upload in a single batch. The default is `100` unless otherwise specified.