graphrag
graphrag copied to clipboard
Probable mistake in local search context builder?
When studying the build of local search context, I found some suspicious code in graphrag/query/structured_search/local_search/mixed_context.py.
In line 451-452, final_context is replaced by the current_context generated in the current loop step. I guess the reasonable logic is appending the current_context to the list variable of final_context.
final_context = current_context
final_context_data = current_context_data
Could anyone check on this and correct me if I got something wrong with the designed logic here?