Allow related chunks missing in knowledge graph queries
This commit is contained in:
@@ -119,4 +119,3 @@ Before building multi-architecture images, ensure you have:
|
||||
- Docker 20.10+ with Buildx support
|
||||
- Sufficient disk space (20GB+ recommended for offline image)
|
||||
- Registry access credentials (if pushing images)
|
||||
|
||||
|
||||
@@ -3332,7 +3332,11 @@ async def _build_query_context(
|
||||
query_embedding=search_result["query_embedding"],
|
||||
)
|
||||
|
||||
if not merged_chunks:
|
||||
if (
|
||||
not merged_chunks
|
||||
and not truncation_result["entities_context"]
|
||||
and not truncation_result["relations_context"]
|
||||
):
|
||||
return None
|
||||
|
||||
# Stage 4: Build final LLM context with dynamic token processing
|
||||
|
||||
Reference in New Issue
Block a user