David Potter 6c78677ebb
feat: add Astra source connector (#3304)
Thanks to @erichare we now have an AstraDB source connector.

updating constant names to be more aligned with AstraDB
2024-07-10 20:29:22 +00:00

23 lines
676 B
Bash
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/usr/bin/env bash
# Processes the Unstructured-IO/unstructured repository
# through Unstructured's library in 2 processes.
# Structured outputs are stored in astra-ingest-output/
# NOTE, this script is not ready-to-run!
# You must enter a token, endpoint and collection name
# before running.
SCRIPT_DIR=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &>/dev/null && pwd)
cd "$SCRIPT_DIR"/../../.. || exit 1
PYTHONPATH=. ./unstructured/ingest/main.py \
astra \
--token "<AstraDB Application Token>" \
--api-endpoint "<AstraDB Api Endpoint>" \
--collection-name "<AstraDB Collection Name>" \
--num-processes "2" \
--output-dir astra-ingest-output \
--verbose