mirror of https://github.com/hwchase17/langchain
community: Fix all page numbers were the same for _BaseGoogleVertexAISearchRetriever (#19175)
- Description: - This pull request is to fix a bug where page numbers were not set correctly. In the current code, all chunks share the same metadata object doc_metadata, so the page number is set with the same value for all documents. To fix this, I changed to using separate metadata objects for each chunk. - Issue: - None - Dependencies: - No additional dependencies are required for this change. - Twitter handle: - @eycjur - Test - Even if it's not a bug, there are cases where everything ends up with the same number of pages, so it's very difficult for me to write integration tests.pull/19190/head^2
parent
160a7077b0
commit
8d2c34e655
Loading…
Reference in New Issue