fix parent-child retrival count
This commit is contained in:
parent
54c33ca476
commit
b33063e946
@ -49,10 +49,6 @@ class BaseVector(ABC):
|
|||||||
def delete(self) -> None:
|
def delete(self) -> None:
|
||||||
raise NotImplementedError
|
raise NotImplementedError
|
||||||
|
|
||||||
@abstractmethod
|
|
||||||
def update_metadata(self, document_id: str, metadata: dict) -> None:
|
|
||||||
raise NotImplementedError
|
|
||||||
|
|
||||||
def _filter_duplicate_texts(self, texts: list[Document]) -> list[Document]:
|
def _filter_duplicate_texts(self, texts: list[Document]) -> list[Document]:
|
||||||
for text in texts.copy():
|
for text in texts.copy():
|
||||||
if text.metadata and "doc_id" in text.metadata:
|
if text.metadata and "doc_id" in text.metadata:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user