Skip to content

Commit

Permalink
fix requested-indexing-policy
Browse files Browse the repository at this point in the history
  • Loading branch information
potter-potter committed May 15, 2024
1 parent 8e6ec2f commit b52b76b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test_unstructured_ingest/dest/astra.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ PYTHONPATH=. ./unstructured/ingest/main.py \
--api-endpoint "$ASTRA_DB_ENDPOINT" \
--collection-name "$COLLECTION_NAME" \
--embedding-dimension "$EMBEDDING_DIMENSION" \
--requested-indexing-policy '{"deny": "metadata"}'
--requested-indexing-policy '{"deny": ["metadata"]}'

python "$SCRIPT_DIR"/python/test-ingest-astra-output.py \
--token "$ASTRA_DB_TOKEN" \
Expand Down
2 changes: 1 addition & 1 deletion unstructured/ingest/cli/cmds/astra.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def get_cli_options() -> t.List[click.Option]:
default=None,
type=Dict(),
help="The indexing policy to use for the collection."
'example: \'{"deny": "metadata"}\' ',
'example: \'{"deny": ["metadata"]}\' ',
),
]
return options
Expand Down

0 comments on commit b52b76b

Please sign in to comment.