Improve log message formatting for better readability

This commit is contained in:
yangdx 2025-09-09 17:41:09 +08:00
parent f064b950fc
commit 09abb656b8
2 changed files with 3 additions and 3 deletions

View file

@ -3011,7 +3011,7 @@ async def _get_node_data(
): ):
# get similar entities # get similar entities
logger.info( logger.info(
f"Query nodes: {query}, top_k: {query_param.top_k}, cosine: {entities_vdb.cosine_better_than_threshold}" f"Query nodes: {query} (top_k:{query_param.top_k}, cosine:{entities_vdb.cosine_better_than_threshold})"
) )
results = await entities_vdb.query(query, top_k=query_param.top_k) results = await entities_vdb.query(query, top_k=query_param.top_k)
@ -3287,7 +3287,7 @@ async def _get_edge_data(
query_param: QueryParam, query_param: QueryParam,
): ):
logger.info( logger.info(
f"Query edges: {keywords}, top_k: {query_param.top_k}, cosine: {relationships_vdb.cosine_better_than_threshold}" f"Query edges: {keywords} (top_k:{query_param.top_k}, cosine:{relationships_vdb.cosine_better_than_threshold})"
) )
results = await relationships_vdb.query(keywords, top_k=query_param.top_k) results = await relationships_vdb.query(keywords, top_k=query_param.top_k)