Skip to content

Conversation

@miguelgrinberg
Copy link
Collaborator

I have updated the chatbot RAG example to use the recently released langchain 0.3.

@alizenhom
Copy link

does the chatbot rag example work without this PR?

i have tried to spin up the chatbot RAG app, followed the documentation step by step but there is a dependency conflict happening

i always get this error when trying to run flask run

ModuleNotFoundError: No module named 'langchain_elasticsearch'

also langchain-community is missing from dependecies

@miguelgrinberg
Copy link
Collaborator Author

I believe the example is currently broken, at least I got a report of dependency issues, which is why I looked into this.

The langchain-community package used to be part of the core langchain, and it isn't anymore. I have added it as a top-level dependency in this PR.

I'm not sure why you get errors for langchain-elasticsearch. This package was also split from core langchain a while ago, but it is explicitly listed in the requirements already.

@alizenhom
Copy link

thankyou!

@miguelgrinberg miguelgrinberg merged commit 405258b into elastic:main Sep 24, 2024
2 checks passed
@miguelgrinberg miguelgrinberg deleted the upgrade-to-langchain-0-3 branch September 24, 2024 08:51
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

Successfully merging this pull request may close these issues.

3 participants