mirror of
https://github.com/Unstructured-IO/unstructured.git
synced 2025-07-03 07:05:20 +00:00

Given the tendency for shell scripts to easily enter into a few levels of indentation and long line lengths, update the default to 2 spaces.
19 lines
492 B
Bash
19 lines
492 B
Bash
#!/usr/bin/env bash
|
|
|
|
EMBEDDING_PROVIDER=${EMBEDDING_PROVIDER:-"langchain-huggingface"}
|
|
|
|
unstructured-ingest \
|
|
local \
|
|
--input-path example-docs/book-war-and-peace-1225p.txt \
|
|
--output-dir local-output-to-pinecone \
|
|
--strategy fast \
|
|
--chunk-elements \
|
|
--embedding-provider "$EMBEDDING_PROVIDER" \
|
|
--num-processes 2 \
|
|
--verbose \
|
|
pinecone \
|
|
--api-key "$PINECONE_API_KEY" \
|
|
--index-name "$PINECONE_INDEX_NAME" \
|
|
--environment "$PINECONE_ENVIRONMENT" \
|
|
--batch-size 80
|