mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-05 21:19:31 +08:00
30 lines
662 B
Python
30 lines
662 B
Python
"""
|
|
RAG Components
|
|
==============
|
|
|
|
Modular components for building RAG pipelines.
|
|
|
|
Components follow a simple protocol:
|
|
- Each component has a `name` attribute
|
|
- Each component has an async `process()` method
|
|
"""
|
|
|
|
# Import component modules for convenience
|
|
from . import chunkers, embedders, indexers, parsers, retrievers
|
|
from .base import BaseComponent, Component
|
|
from .routing import DocumentType, FileClassification, FileTypeRouter
|
|
|
|
__all__ = [
|
|
"Component",
|
|
"BaseComponent",
|
|
"parsers",
|
|
"chunkers",
|
|
"embedders",
|
|
"indexers",
|
|
"retrievers",
|
|
# File type routing
|
|
"FileTypeRouter",
|
|
"FileClassification",
|
|
"DocumentType",
|
|
]
|