Skip to content

Commit cbc7c4f

Browse files
authored
Astra DB connectors: remove embedding dimensions setting from Platform, Ingest (#357)
1 parent 27bee65 commit cbc7c4f

File tree

5 files changed

+4
-10
lines changed

5 files changed

+4
-10
lines changed

snippets/destination_connectors/astradb.sh.mdx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,4 @@ unstructured-ingest \
1818
--api-endpoint $ASTRA_DB_API_ENDPOINT \
1919
--token $ASTRA_DB_APPLICATION_TOKEN \
2020
--keyspace $ASTRA_DB_KEYSPACE \
21-
--collection-name $ASTRA_DB_COLLECTION \
22-
--embedding-dimension $ASTRA_DB_EMBEDDING_DIMENSIONS
23-
```
21+
--collection-name $ASTRA_DB_COLLECTION

snippets/destination_connectors/astradb.v1.py.mdx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ def get_writer() -> Writer:
3030
),
3131
keyspace=os.getenv("ASTRA_DB_KEYSPACE"),
3232
collection_name=os.getenv("ASTRA_DB_COLLECTION"),
33-
embedding_dimension=os.getenv("ASTRA_DB_EMBEDDING_DIMENSIONS"),
3433
),
3534
write_config=AstraWriteConfig(batch_size=80),
3635
)

snippets/destination_connectors/astradb.v2.py.mdx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,7 @@ if __name__ == "__main__":
4949
stager_config=AstraDBUploadStagerConfig(),
5050
uploader_config=AstraDBUploaderConfig(
5151
keyspace=os.getenv("ASTRA_DB_KEYSPACE"),
52-
collection_name=os.getenv("ASTRA_DB_COLLECTION"),
53-
embedding_dimension=os.getenv("ASTRA_DB_EMBEDDING_DIMENSIONS")
52+
collection_name=os.getenv("ASTRA_DB_COLLECTION")
5453
)
5554
).run()
5655
```

snippets/general-shared-text/astradb-cli-api.mdx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,4 @@ These environment variables:
1313
- `ASTRA_DB_API_ENDPOINT` - The API endpoint for the Astra DB database, represented by `--api-endpoint` (CLI) or `api_endpoint` (Python). To get the endpoint, see the **Database Details > API Endpoint** value on your database's **Overview** tab.
1414
- `ASTRA_DB_APPLICATION_TOKEN` - The database application token value for the database, represented by `--token` (CLI) or `token` (Python). To get the token, see the **Database Details > Application Tokens** box on your database's **Overview** tab.
1515
- `ASTRA_DB_KEYSPACE` - The name of the keyspace for the database, represented by `--keyspace` (CLI) or `keyspace` (Python).
16-
- `ASTRA_DB_COLLECTION` - The name of the collection for the keyspace, represented by `--collection-name` (CLI) or `collection_name` (Python).
17-
- `ASTRA_DB_EMBEDDING_DIMENSIONS` - The number of dimensions in the collection, represented by `--embedding-dimension` (CLI) or `embedding_dimension` (Python).
16+
- `ASTRA_DB_COLLECTION` - The name of the collection for the keyspace, represented by `--collection-name` (CLI) or `collection_name` (Python).

snippets/general-shared-text/astradb-platform.mdx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,4 @@ Fill in the following fields:
33
- **Name** (_required_): A unique name for this connector.
44
- **Token** (_required_): The application token for the database.
55
- **API Endpoint** (_required_): The database's associated API endpoint.
6-
- **Collection Name** (_required_): The name of the collection in the namespace.
7-
- **Embedding Dimension** (_required_): The number of dimensions in the collection.
6+
- **Collection Name** (_required_): The name of the collection in the namespace.

0 commit comments

Comments
 (0)