-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Opensearch store does not support object in metadata and fail silently #1589
Comments
Yes, we ran into the same issue with github document loader. |
Hi, @yeouchien! I'm Dosu, and I'm helping the langchainjs team manage their backlog. I wanted to let you know that we are marking this issue as stale. From what I understand, the issue you reported is related to a bug in the Opensearch store in langchainjs. The bug causes the store to fail silently during bulk indexing when objects are included in the metadata. A suggested workaround is to delete the object in the metadata. Raymondfeng also mentioned encountering a similar issue with the GitHub document loader. Before we proceed, we would like to confirm if this issue is still relevant to the latest version of the langchainjs repository. If it is, please let us know by commenting on this issue. Otherwise, feel free to close the issue yourself. If we don't receive any response within 7 days, the issue will be automatically closed. Thank you for your understanding and contribution to langchainjs! Let us know if you have any further questions or concerns. |
Opensearch bulk indexing is failing silently due to default index mapping
https://github.com/hwchase17/langchainjs/blob/61e89dbaec07b4b50a55efe0f74faec5b2e701fd/langchain/src/vectorstores/opensearch.ts#L177-L186
Code to repro:
code above will create the index but unable to index the documents because of the metadata created from
RecursiveCharacterTextSplitter
metadata: { source: '/tmp/pdfloader.pdf', pdf: [Object], loc: [Object] }
Workaround for this issue:
delete the object in metadata
Potential solution:
https://github.com/hwchase17/langchainjs/blob/61e89dbaec07b4b50a55efe0f74faec5b2e701fd/langchain/src/vectorstores/pinecone.ts#L59
https://github.com/opensearch-project/opensearch-js/blob/main/guides/bulk.md#handling-errors
The text was updated successfully, but these errors were encountered: