Add warning for vector chunks missing chunk_id

This commit is contained in:
yangdx 2025-08-25 12:42:25 +08:00
parent b6aedba7ae
commit f688e95f56

View file

@ -2180,6 +2180,8 @@ async def _build_query_context(
"frequency": 1, # Vector chunks always have frequency 1
"order": i + 1, # 1-based order in vector search results
}
else:
logger.warning(f"Vector chunk missing chunk_id: {chunk}")
# Use round-robin merge to combine local and global data fairly
final_entities = []