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

WeaviateDocumentStore initialization and serialization #187

Merged
merged 3 commits into from
Jan 15, 2024

Conversation

silvanocerza
Copy link
Contributor

@silvanocerza silvanocerza commented Jan 10, 2024

Relates to #131

This PR implements a minimal initialization of WeaviateDocumentStore and the internal Weaviate client.

It also adds proper serialization of the Document Store.

We also fix the weaviate-client version to avoid breakages whenever the next upcoming version is released.

@silvanocerza silvanocerza self-assigned this Jan 10, 2024
@silvanocerza silvanocerza requested a review from a team as a code owner January 10, 2024 17:31
@silvanocerza silvanocerza requested review from ZanSara and removed request for a team January 10, 2024 17:31
Comment on lines +148 to +157
def filter_documents(self, filters: Optional[Dict[str, Any]] = None) -> List[Document]: # noqa: ARG002
return []

def write_documents(
self, documents: List[Document], policy: DuplicatePolicy = DuplicatePolicy.NONE # noqa: ARG002
) -> int:
return 0

def delete_documents(self, document_ids: List[str]) -> None: # noqa: ARG002
return
Copy link
Contributor Author

Choose a reason for hiding this comment

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

ARG002 is ignored for the time being to let CI pass. In future PRs they'll be implement and the noqa removed.

Copy link
Contributor

@ZanSara ZanSara left a comment

Choose a reason for hiding this comment

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

Only one question, otherwise LGTM

@@ -46,6 +46,7 @@ git_describe_command = 'git describe --tags --match="integrations/weaviate-v[0-9
dependencies = [
"coverage[toml]>=6.5",
"pytest",
"ipython",
Copy link
Contributor

Choose a reason for hiding this comment

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

We need ipython as a dependency?

@silvanocerza silvanocerza merged commit c54bffe into main Jan 15, 2024
18 checks passed
@silvanocerza silvanocerza deleted the weaviate-initialization-serialization branch January 15, 2024 15:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants