Skip to content

Commit 4a9625f

Browse files
authored
bugfix: rebrand from Astra to Astra DB (#17)
* bugfix: rebrand from Astra to Astra DB * Update black linting * Update CHANGELOG.md
1 parent 4bb84df commit 4a9625f

File tree

24 files changed

+103
-98
lines changed

24 files changed

+103
-98
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
* **Leverage pydantic base models** All user-supplied configs are now derived from pydantic base models to leverage better type checking and add built in support for sensitive fields.
77
* **Autogenerate click options from base models** Leverage th pydantic base models for all configs to autogenerate teh cli options exposed when running ingest as a CLI.
88
* **Drop required Unstructured dependency** Unstructured was moved to an extra dependency to only be imported when needed for functionality such as local partitioning/chunking.
9+
* **Rebrand Astra to Astra DB** The Astra DB integration was re-branded to be consistent
10+
with DataStax standard branding.
911

1012
## 0.0.3
1113

File renamed without changes.
File renamed without changes.

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def load_requirements(file: Union[str, Path]) -> List[str]:
8181
)
8282
connectors_reqs = {
8383
"airtable": load_requirements("requirements/connectors/airtable.in"),
84-
"astra": load_requirements("requirements/connectors/astra.in"),
84+
"astradb": load_requirements("requirements/connectors/astradb.in"),
8585
"azure": load_requirements("requirements/connectors/azure.in"),
8686
"azure-cognitive-search": load_requirements(
8787
"requirements/connectors/azure-cognitive-search.in",

test_e2e/dest/astra.sh renamed to test_e2e/dest/astradb.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ set -e
55
SRC_PATH=$(dirname "$(realpath "$0")")
66
SCRIPT_DIR=$(dirname "$SRC_PATH")
77
cd "$SCRIPT_DIR"/.. || exit 1
8-
OUTPUT_FOLDER_NAME=astra-dest
8+
OUTPUT_FOLDER_NAME=astradb-dest
99
OUTPUT_DIR=$SCRIPT_DIR/structured-output/$OUTPUT_FOLDER_NAME
1010
WORK_DIR=$SCRIPT_DIR/workdir/$OUTPUT_FOLDER_NAME
1111
max_processes=${MAX_PROCESSES:=$(python3 -c "import os; print(os.cpu_count())")}
@@ -21,7 +21,7 @@ if [ -z "$ASTRA_DB_API_ENDPOINT" ]; then
2121
fi
2222

2323
RANDOM_SUFFIX=$((RANDOM % 100000 + 1))
24-
COLLECTION_NAME="astra_test_output_$RANDOM_SUFFIX"
24+
COLLECTION_NAME="astradb_test_output_$RANDOM_SUFFIX"
2525
EMBEDDING_DIMENSION=384
2626

2727
# shellcheck disable=SC1091
@@ -31,7 +31,7 @@ function cleanup() {
3131
cleanup_dir "$OUTPUT_DIR"
3232
cleanup_dir "$WORK_DIR"
3333

34-
python "$SCRIPT_DIR"/python/test-ingest-astra-output.py \
34+
python "$SCRIPT_DIR"/python/test-ingest-astradb-output.py \
3535
--token "$ASTRA_DB_APPLICATION_TOKEN" \
3636
--api-endpoint "$ASTRA_DB_API_ENDPOINT" \
3737
--collection-name "$COLLECTION_NAME" down
@@ -51,14 +51,14 @@ PYTHONPATH=. ./unstructured_ingest/main.py \
5151
--chunk-max-characters 1500 \
5252
--chunk-multipage-sections \
5353
--embedding-provider "langchain-huggingface" \
54-
astra \
54+
astradb \
5555
--token "$ASTRA_DB_APPLICATION_TOKEN" \
5656
--api-endpoint "$ASTRA_DB_API_ENDPOINT" \
5757
--collection-name "$COLLECTION_NAME" \
5858
--embedding-dimension "$EMBEDDING_DIMENSION" \
5959
--requested-indexing-policy '{"deny": ["metadata"]}'
6060

61-
python "$SCRIPT_DIR"/python/test-ingest-astra-output.py \
61+
python "$SCRIPT_DIR"/python/test-ingest-astradb-output.py \
6262
--token "$ASTRA_DB_APPLICATION_TOKEN" \
6363
--api-endpoint "$ASTRA_DB_API_ENDPOINT" \
6464
--collection-name "$COLLECTION_NAME" check

0 commit comments

Comments
 (0)