Skip to content

Conversation

@Shah91n
Copy link
Member

@Shah91n Shah91n commented Nov 21, 2024

New Features:

  • Add batch import functionality to Weaviate CLI
  • Add your own data by enabling batching directly from a local JSON file.

Example Usage:

weaviate-cli batch insert --collection <collection_name> --path <path_to_json_file> --vectorizer <vectorizer_name> --replication-factor <replication_factor>

Sample JSON:

image

Changes

  • batch.py: Implements CLI commands for batch operations, allowing users to create collections dynamically and insert data in bulk from JSON files.
  • batch_manager.py: Handles the core logic for batch operations, including collection creation with advanced configuration (e.g., vectorizers, shards) and robust batch insertion with schema inference and validation.

@Shah91n Shah91n requested a review from jfrancoa November 21, 2024 14:50
@Shah91n Shah91n self-assigned this Nov 21, 2024
Copy link

@orca-security-eu orca-security-eu bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Orca Security Scan Summary

Status Check Issues by priority
Passed Passed Infrastructure as Code high 0   medium 0   low 0   info 0 View in Orca
Passed Passed Secrets high 0   medium 0   low 0   info 0 View in Orca
Passed Passed Vulnerabilities high 0   medium 0   low 0   info 0 View in Orca

@Shah91n Shah91n added the feature adding new feature to the weaviate-cli label Nov 21, 2024
@weaviate-git-bot
Copy link

To avoid any confusion in the future about your contribution to Weaviate, we work with a Contributor License Agreement. If you agree, you can simply add a comment to this PR that you agree with the CLA so that we can merge.

beep boop - the Weaviate bot 👋🤖

PS:
Are you already a member of the Weaviate Slack channel?

@rlmanrique rlmanrique force-pushed the adding-new-function-batch-your-own-data-from-json-file branch from c5c7331 to 9574bc1 Compare January 16, 2025 16:01
Copy link

@orca-security-eu orca-security-eu bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Orca Security Scan Summary

Status Check Issues by priority
Passed Passed Infrastructure as Code high 0   medium 0   low 0   info 0 View in Orca
Passed Passed SAST high 0   medium 0   low 0   info 0 View in Orca
Passed Passed Secrets high 0   medium 0   low 0   info 0 View in Orca
Passed Passed Vulnerabilities high 0   medium 0   low 0   info 0 View in Orca

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature adding new feature to the weaviate-cli

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants