Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add batch import functionality to Weaviate CLI & Add your own data from a local JSON file #99

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Shah91n
Copy link
Collaborator

@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 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?

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.

2 participants