Skip to content
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

Upgrade from langchain.document_loaders to langchain_unstructured #40

Open
antonum opened this issue Oct 29, 2024 · 0 comments
Open

Upgrade from langchain.document_loaders to langchain_unstructured #40

antonum opened this issue Oct 29, 2024 · 0 comments

Comments

@antonum
Copy link
Collaborator

antonum commented Oct 29, 2024

https://github.com/redis-developer/redis-ai-resources/blob/main/python-recipes/RAG/01_redisvl.ipynb

loader = UnstructuredFileLoader(
    doc, mode="single", strategy="fast"
)

Fails to load any data and triggers the warning:

:8: LangChainDeprecationWarning: The class UnstructuredFileLoader was deprecated in LangChain 0.2.8 and will be removed in 1.0. An updated version of the class exists in the :class:~langchain-unstructured package and should be used instead. To use it run pip install -U :class:~langchain-unstructured and import as from :class:~langchain_unstructured import UnstructuredLoader``.
loader = UnstructuredFileLoader(
Done preprocessing. Created 0 chunks of the original pdf resources/nke-10k-2023.pdf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant