Skip to content
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
8 changes: 7 additions & 1 deletion raganything/modalprocessors.py
Original file line number Diff line number Diff line change
Expand Up @@ -797,18 +797,24 @@ async def _process_chunk_for_extraction(
if not batch_mode:
# Merge with correct file_path parameter
file_path = chunk_data.get("file_path", "manual_creation")
doc_id = chunk_data.get("full_doc_id")
await merge_nodes_and_edges(
chunk_results=chunk_results,
knowledge_graph_inst=self.knowledge_graph_inst,
entity_vdb=self.entities_vdb,
relationships_vdb=self.relationships_vdb,
global_config=self.global_config,
full_entities_storage=self.lightrag.full_entities,
full_relations_storage=self.lightrag.full_relations,
doc_id=doc_id,
pipeline_status=pipeline_status,
pipeline_status_lock=pipeline_status_lock,
llm_response_cache=self.hashing_kv,
entity_chunks_storage=self.lightrag.entity_chunks,
relation_chunks_storage=self.lightrag.relation_chunks,
current_file_number=1,
total_files=1,
file_path=file_path, # Pass the correct file_path
file_path=file_path,
)

# Ensure all storage updates are complete
Expand Down
4 changes: 4 additions & 0 deletions raganything/processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -754,6 +754,8 @@ async def _process_multimodal_content_individual(
pipeline_status=pipeline_status,
pipeline_status_lock=pipeline_status_lock,
llm_response_cache=self.lightrag.llm_response_cache,
entity_chunks_storage=self.lightrag.entity_chunks,
relation_chunks_storage=self.lightrag.relation_chunks,
current_file_number=1,
total_files=1,
file_path=file_name,
Expand Down Expand Up @@ -1358,6 +1360,8 @@ async def _batch_merge_lightrag_style_type_aware(
pipeline_status=pipeline_status,
pipeline_status_lock=pipeline_status_lock,
llm_response_cache=self.lightrag.llm_response_cache,
entity_chunks_storage=self.lightrag.entity_chunks,
relation_chunks_storage=self.lightrag.relation_chunks,
current_file_number=1,
total_files=1,
file_path=file_ref,
Expand Down