This commit is contained in:
zrguo
2025-07-04 21:16:03 +08:00
parent 5288be9d0c
commit 322358df42
2 changed files with 6 additions and 6 deletions

View File

@@ -117,8 +117,8 @@ rag_anything.update_context_config(
```python
from raganything.modalprocessors import (
ContextExtractor,
ContextConfig,
ContextExtractor,
ContextConfig,
ImageModalProcessor
)
@@ -371,4 +371,4 @@ Check out these example files for complete usage demonstrations:
For detailed API documentation, see the docstrings in:
- `raganything/modalprocessors.py` - Context extraction and modal processors
- `raganything/config.py` - Configuration options
- `raganything/raganything.py` - Main RAGAnything class integration
- `raganything/raganything.py` - Main RAGAnything class integration

View File

@@ -96,7 +96,7 @@ async def process_image_example(lightrag: LightRAG, vision_model_func):
}
# Process image
description, entity_info = await image_processor.process_multimodal_content(
(description, entity_info, _) = await image_processor.process_multimodal_content(
modal_content=image_content,
content_type="image",
file_path="image_example.jpg",
@@ -128,7 +128,7 @@ async def process_table_example(lightrag: LightRAG, llm_model_func):
}
# Process table
description, entity_info = await table_processor.process_multimodal_content(
(description, entity_info, _) = await table_processor.process_multimodal_content(
modal_content=table_content,
content_type="table",
file_path="table_example.md",
@@ -151,7 +151,7 @@ async def process_equation_example(lightrag: LightRAG, llm_model_func):
equation_content = {"text": "E = mc^2", "text_format": "LaTeX"}
# Process equation
description, entity_info = await equation_processor.process_multimodal_content(
(description, entity_info, _) = await equation_processor.process_multimodal_content(
modal_content=equation_content,
content_type="equation",
file_path="equation_example.txt",