[Bug]: `refresh_ref_docs()` / `arefresh_ref_docs()` drop kwargs after the first document in a batch
![[Bug]: `refresh_ref_docs()` / `arefresh_ref_docs()` drop kwargs after the first document in a batch](https://www.chat-gpts.plus/wp-content/uploads/2026/06/21518-40a95a4b-768x403.jpg)
该 Bug 存在于 LlamaIndex 工具的 BaseIndex 类中,具体在 refresh_ref_docs() 和其异步版本 arefresh_ref_docs() 方法中。当用户想批量刷新多个文档并为每个文档传入自定义 insert_kwargs 或 update_kwargs 时,只有








