Allow related chunks missing in knowledge graph queries
This commit is contained in:
parent
0e0b4a94dc
commit
35cd567c9e
2 changed files with 5 additions and 2 deletions
|
|
@ -119,4 +119,3 @@ Before building multi-architecture images, ensure you have:
|
||||||
- Docker 20.10+ with Buildx support
|
- Docker 20.10+ with Buildx support
|
||||||
- Sufficient disk space (20GB+ recommended for offline image)
|
- Sufficient disk space (20GB+ recommended for offline image)
|
||||||
- Registry access credentials (if pushing images)
|
- Registry access credentials (if pushing images)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3332,7 +3332,11 @@ async def _build_query_context(
|
||||||
query_embedding=search_result["query_embedding"],
|
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
|
return None
|
||||||
|
|
||||||
# Stage 4: Build final LLM context with dynamic token processing
|
# Stage 4: Build final LLM context with dynamic token processing
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue