-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
community[patch]: update libs/langchain-community/src/vectorstores/analyticdb.ts #5025
Conversation
When the pageContent is empty in certain scenarios (such as when using unstructuredIo), an error occurs during embedding.
Update analyticdb.ts When the pageContent is empty in certain scenarios (such as when using unstructuredIo), an error occurs during embedding.
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Thanks for this! Is the issue empty string or |
I've encountered a scenario where loading PDF files using https://unstructured.io/ results in some content being parsed as undefined. While it's possible to implement a fix before writing to the ADB, I believe that the purpose of langchain is to facilitate easier integration between upstream and downstream processes. Wouldn't it be more efficient for the langchain to handle these cases of undefined values, ensuring a smoother data flow and reducing the need for additional checks and fixes on the client side? |
Yeah we can, I'm thinking we should add this to the unstructured loader too since this won't be the only integration that will deal with it. Fine for now! |
Thank you! |
Fixes # (issue)
When the pageContent is empty in certain scenarios (such as when using unstructuredIo), an error occurs during embedding.