-
Notifications
You must be signed in to change notification settings - Fork 126
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2d7abb9
commit 68ae9fa
Showing
3 changed files
with
19 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,16 @@ | ||
# SPDX-FileCopyrightText: 2023-present deepset GmbH <[email protected]> | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
from typing import Union, Dict, Tuple, Optional, List, Any | ||
from dataclasses import asdict | ||
from typing import Any, Dict, List, Optional, Tuple, Union | ||
|
||
import weaviate | ||
from weaviate.auth import AuthCredentials | ||
from weaviate.embedded import EmbeddedOptions | ||
from weaviate.config import Config, ConnectionConfig | ||
|
||
from haystack.core.serialization import default_to_dict, default_from_dict | ||
from haystack.core.serialization import default_from_dict, default_to_dict | ||
from haystack.dataclasses.document import Document | ||
from haystack.document_stores.protocol import DuplicatePolicy | ||
from weaviate.auth import AuthCredentials | ||
from weaviate.config import Config, ConnectionConfig | ||
from weaviate.embedded import EmbeddedOptions | ||
|
||
Number = Union[int, float] | ||
TimeoutType = Union[Tuple[Number, Number], Number] | ||
|
@@ -144,13 +143,15 @@ def from_dict(cls, data: Dict[str, Any]) -> "WeaviateDocumentStore": | |
) | ||
|
||
def count_documents(self) -> int: | ||
... | ||
return 0 | ||
|
||
def filter_documents(self, filters: Optional[Dict[str, Any]] = None) -> List[Document]: | ||
... | ||
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) -> int: | ||
... | ||
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: | ||
... | ||
def delete_documents(self, document_ids: List[str]) -> None: # noqa: ARG002 | ||
return |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters