mirror of
https://github.com/HKUDS/LightRAG.git
synced 2025-12-29 15:52:30 +00:00
Add logging for chunk truncation in mix_kg_vector_query
This commit is contained in:
parent
b0d87b2e29
commit
2a010c985e
@ -911,7 +911,8 @@ async def mix_kg_vector_query(
|
||||
if c["created_at"]:
|
||||
chunk_text = f"[Created at: {time.strftime('%Y-%m-%d %H:%M:%S', time.localtime(c['created_at']))}]\n{chunk_text}"
|
||||
formatted_chunks.append(chunk_text)
|
||||
|
||||
|
||||
logger.info(f"Truncate {len(chunks)} to {len(formatted_chunks)} chunks")
|
||||
return "\n--New Chunk--\n".join(formatted_chunks)
|
||||
except Exception as e:
|
||||
logger.error(f"Error in get_vector_context: {e}")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user