Skip to content

Commit 66d7bf3

Browse files
authored
Various connector updates (#627)
1 parent d04543d commit 66d7bf3

27 files changed

+70
-48
lines changed

snippets/destination_connectors/ibm_watsonxdata_sdk.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ from unstructured_client.models.operations import CreateDestinationRequest
66
from unstructured_client.models.shared import (
77
CreateDestinationConnector,
88
DestinationConnectorType,
9-
IbmWatsonxDestinationConnectorConfigInput
9+
IBMWatsonxS3DestinationConnectorConfigInput
1010
)
1111

1212
with UnstructuredClient(api_key_auth=os.getenv("UNSTRUCTURED_API_KEY")) as client:
@@ -15,7 +15,7 @@ with UnstructuredClient(api_key_auth=os.getenv("UNSTRUCTURED_API_KEY")) as clien
1515
create_destination_connector=CreateDestinationConnector(
1616
name="<name>",
1717
type=DestinationConnectorType.IBM_WATSONX_S3,
18-
config=IbmWatsonxDestinationConnectorConfigInput(
18+
config=IBMWatsonxS3DestinationConnectorConfigInput(
1919
iceberg_endpoint="<iceberg-endpoint>",
2020
object_storage_endpoint="<object-storage-endpoint>",
2121
object_storage_region="<object-storage-region>",

snippets/destination_connectors/onedrive.sh.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ unstructured-ingest \
1717
--client-cred $ONEDRIVE_CLIENT_CRED \
1818
--client-id $ONEDRIVE_CLIENT_ID \
1919
--user-pname $ONEDRIVE_USER_PNAME \
20+
--password $ONEDRIVE_USER_PASSWORD \ # For username and password authentication.
2021
--tenant $ONEDRIVE_TENANT \
2122
--authority-url $ONEDRIVE_AUTHORITY_URL \
2223
--remote-url $ONEDRIVE_PATH \

snippets/destination_connectors/onedrive.v2.py.mdx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,10 @@ if __name__ == "__main__":
4242
chunker_config=ChunkerConfig(chunking_strategy="by_title"),
4343
embedder_config=EmbedderConfig(embedding_provider="huggingface"),
4444
destination_connection_config=OnedriveConnectionConfig(
45-
access_config=OnedriveAccessConfig(client_cred=os.getenv("ONEDRIVE_CLIENT_CRED")),
45+
access_config=OnedriveAccessConfig(
46+
client_cred=os.getenv("ONEDRIVE_CLIENT_CRED"),
47+
password=os.getenv("ONEDRIVE_USER_PASSWORD") # For username and password authentication.
48+
),
4649
client_id=os.getenv("ONEDRIVE_CLIENT_ID"),
4750
user_pname=os.getenv("ONEDRIVE_USER_PNAME"),
4851
tenant=os.getenv("ONEDRIVE_TENANT"),

snippets/destination_connectors/onedrive_rest_create.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ curl --request 'POST' --location \
1111
"config": {
1212
"client_id": "<client-id>",
1313
"user_pname": "<user-pname>",
14+
"password": "<password>", # For username and password authentication.
1415
"tenant": "<tenant>",
1516
"authority_url": "<authority-url>",
1617
"client_cred": "<client-cred>",

snippets/destination_connectors/onedrive_sdk.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ with UnstructuredClient(api_key_auth=os.getenv("UNSTRUCTURED_API_KEY")) as clien
1818
config=OneDriveDestinationConnectorConfigInput(
1919
client_id="<client-id>",
2020
user_pname="<user-pname>",
21+
password="<password>", # For username and password authentication.
2122
tenant="<tenant>",
2223
authority_url="<authority-url>",
2324
client_cred="<client-cred>",

snippets/destination_connectors/pinecone.sh.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,6 @@ unstructured-ingest \
1818
pinecone \
1919
--api-key "$PINECONE_API_KEY" \
2020
--index-name "$PINECONE_INDEX_NAME" \
21+
--namespace "$PINECONE_NAMESPACE_NAME" \
2122
--batch-size 80
2223
```

snippets/destination_connectors/pinecone.v2.py.mdx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ if __name__ == "__main__":
4747
index_name=os.getenv("PINECONE_INDEX_NAME")
4848
),
4949
stager_config=PineconeUploadStagerConfig(),
50-
uploader_config=PineconeUploaderConfig()
50+
uploader_config=PineconeUploaderConfig(
51+
batch_size=100,
52+
namespace=os.getenv("PINECONE_NAMESPACE_NAME")
53+
)
5154
).run()
5255
```

snippets/destination_connectors/pinecone_rest_create.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ curl --request 'POST' --location \
1010
"type": "pinecone",
1111
"config": {
1212
"index_name" "<index-name>",
13+
"namespace": "<namespace-name>",
1314
"api_key": "<api-key>",
1415
"batch_size" <batch-size>
1516
}

snippets/destination_connectors/pinecone_sdk.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ with UnstructuredClient(api_key_auth=os.getenv("UNSTRUCTURED_API_KEY")) as clien
1717
type=DestinationConnectorType.PINECONE,
1818
config=PineconeDestinationConnectorConfigInput(
1919
index_name="<index-name>",
20+
namespace="<namespace-name>",
2021
api_key="<api-key>",
2122
batch_size=<batch-size>
2223
)

snippets/general-shared-text/confluence-api-placeholders.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
- `extract_images` - Set to `true` to download images and replace the HTML content with Base64-encoded images. The default is `false` if not otherwise specified.
77
- `extract_files` - Set to `true` to download any embedded files in pages. The default is `false` if not otherwise specified.
88

9-
For API token authentication:
9+
For username and API token authentication:
1010

1111
- `<username>` - The name or email address of the target user.
1212
- `<api-token>` - The user's API token value.
@@ -17,7 +17,7 @@ For personal access token (PAT) authentication:
1717
- `<personal-access-token>` - The target user's PAT value.
1818
- `cloud` should always be `false`.
1919

20-
For password authentication:
20+
For username and password authentication:
2121

2222
- `<username>` - The name or email address of the target user.
2323
- `<password>` - The user's password.

0 commit comments

Comments
 (0)