Skip to content
This repository was archived by the owner on Jul 17, 2025. It is now read-only.

fix: deletion issue for xml, docx and pptx files from qdrant #15

Merged
merged 2 commits into from
Jun 10, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ async def aextract_content(self, file_path: Path, name: str) -> list[InternalInf
infer_table_structure=True,
)

return self._process_elements(elements, file_path.name)
return self._process_elements(elements, name)

def _process_elements(self, elements: list[Element], document_name: str) -> list[InternalInformationPiece]:
processed_elements: list[InternalInformationPiece] = []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ async def aextract_content(self, file_path: Path, name: str) -> list[InternalInf
A list of processed information pieces extracted from the XML file.
"""
elements = partition_xml(filename=file_path.as_posix(), xml_keep_tags=False)
return self._process_elements(elements, file_path.name)
return self._process_elements(elements, name)

def _process_elements(self, elements: list[Element], document_name: str) -> list[InternalInformationPiece]:
processed_elements: list[InternalInformationPiece] = []
Expand Down
Loading