Update graph_db_adapter.py, graph_derive_edges.py, graph_subgraph.py, graph_utils.py, ingestion_processor.py, and retriever.py to version 4.1.0: Introduce Scope-Awareness and Section-Filtering features, enhancing edge retrieval and processing. Implement Note-Scope Zones extraction from Markdown, improve edge ID generation with target_section, and prioritize Note-Scope Links during de-duplication. Update documentation for clarity and consistency across modules.
This commit is contained in:
1 parent
be2bed9927
commit
39fd15b565
14 files changed
+1004
-37
No files matched your search
+7
-1
@@ -56,6 +56,7 @@ class EdgeDTO(BaseModel):
|
||||
class QueryRequest(BaseModel):
|
||||
"""
|
||||
Request für /query. Unterstützt Multi-Stream Isolation via filters.
|
||||
WP-24c v4.1.0: Erweitert um Section-Filtering und Scope-Awareness.
|
||||
"""
|
||||
mode: Literal["semantic", "edge", "hybrid"] = "hybrid"
|
||||
query: Optional[str] = None
|
||||
@@ -67,7 +68,10 @@ class QueryRequest(BaseModel):
|
||||
explain: bool = False
|
||||
|
||||
# WP-22/25: Dynamische Gewichtung der Graphen-Highways
|
||||
boost_edges: Optional[Dict[str, float]] = None
|
||||
boost_edges: Optional[Dict[str, float]] = None
|
||||
|
||||
# WP-24c v4.1.0: Section-Filtering für präzise Section-Links
|
||||
target_section: Optional[str] = None
|
||||
|
||||
|
||||
class FeedbackRequest(BaseModel):
|
||||
@@ -125,6 +129,7 @@ class QueryHit(BaseModel):
|
||||
"""
|
||||
Einzelnes Trefferobjekt.
|
||||
WP-25: stream_origin hinzugefügt für Tracing und Feedback-Optimierung.
|
||||
WP-24c v4.1.0: source_chunk_id für RAG-Kontext hinzugefügt.
|
||||
"""
|
||||
node_id: str
|
||||
note_id: str
|
||||
@@ -137,6 +142,7 @@ class QueryHit(BaseModel):
|
||||
payload: Optional[Dict] = None
|
||||
explanation: Optional[Explanation] = None
|
||||
stream_origin: Optional[str] = Field(None, description="Name des Ursprungs-Streams")
|
||||
source_chunk_id: Optional[str] = Field(None, description="Chunk-ID der Quelle (für RAG-Kontext)")
|
||||
|
||||
|
||||
class QueryResponse(BaseModel):
|
||||
|
||||
Reference in new issue
Block a user