ragflow/test/unit_test/retrieval/__init__.py
hsparks.codes d9a24f4fdc feat: Add hierarchical retrieval architecture for production-grade RAG
Implements three-tier retrieval system to address scalability and precision
limitations in production environments with large document collections.

Features:
- Tier 1: Knowledge Base Routing (auto/rule-based/llm-based)
- Tier 2: Document Filtering (metadata-based)
- Tier 3: Chunk Refinement (vector search with parent-child support)

Changes:
- Add HierarchicalRetrieval class with configurable retrieval pipeline
- Add hierarchical_retrieval_config field to Dialog model
- Add database migration for new configuration field
- Add comprehensive unit tests (35 tests, all passing)

Fixes #11610
2025-12-03 11:16:24 +01:00

15 lines
622 B
Python

#
# Copyright 2025 The InfiniFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#