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

Added support for weaviate vector database #353

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

Conversation

d-vignesh
Copy link

  • Added support for Weaviate vector database
  • Implemented the functionality of document insertion and incremental insertion.

Tested the changes locally using weaviate cloud instance.

Initial Insertion(Added two files, file1 and file2):
initial-insertion

Incremental Insertion(Added two more file, file3 and file4):
incremental-insertion

Weaviate dashboard(4 objects inserted to the collection):
weaviate-dashboard-object-count

@@ -2,4 +2,4 @@
singlestoredb==1.0.4

### Weaviate client (in progress)
Copy link
Contributor

Choose a reason for hiding this comment

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

Can remove this in progress comment.

Copy link
Author

Choose a reason for hiding this comment

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

done

# TODO (chiragjn): Revisit this, we should not be letting `value` be empty
document_ids.add(group.get("groupedBy", {}).get("value", "") or "")
return list(document_ids)
pass
Copy link
Contributor

Choose a reason for hiding this comment

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

This function can be removed as it is not in the base class.

Copy link
Author

Choose a reason for hiding this comment

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

done

# TODO (chiragjn): Revisit this, we should not be letting `value` be empty
document_ids.add(group.get("groupedBy", {}).get("value", "") or "")
return list(document_ids)
pass

def delete_documents(self, collection_name: str, document_ids: List[str]):
Copy link
Contributor

Choose a reason for hiding this comment

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

This function can be removed as it is not in the base class.

Copy link
Author

Choose a reason for hiding this comment

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

done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants