-
Notifications
You must be signed in to change notification settings - Fork 15.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
Templates on templates.langchain.com don't work with the provided instructions #26734
Comments
TypeError: Expected a Runnable, got <class 'NotImplementedType'>. The second argument to add_routes should be a Runnable instance.add_route(app, runnable, ...) is the correct usage.Please make sure that you are using a runnable which is an instance of langchain_core.runnables.Runnable. I suspect you haven't fully followed the directions. There's a manual step to put the appropriate runnable as an argument to add_routes. |
I am following exactly the directions on the LangChain website ... https://templates.langchain.com I am familiar with coding my own LECL chains with no issues, it's the LangChain CLI commands on the web page that don't seem to work. I have tried in a vanilla virtual environment, as they are written, they give the error. I tried a few templates, same thing. Could you perhaps try following the instructions on the site for rag fusion? |
OK, I see the issue. https://templates.langchain.com/ instructions have this ...
Which creates a full app folder and The second issue is the wording of the instructions, because it has ... "If you want to add this to an existing project, you can just run: langchain app add rag-fusion And add the following code to your server.py file" Which reads like you only need to edit the file if editing an existing app. So my points would be:
|
Even after fixing the above the template still fails on langchain serve. https://templates.langchain.com/ is such a lovely idea, but none of the examples there actually work and the documentation is poor (ambiguous instructions, missing environment variables need to be set, eg PINECONE_API_KEY). I tried simpler templates, eg rag-chroma, still lots of dependency errors in a vanilla envrionment. Basically https://templates.langchain.com/ seems pretty much unusable. Has anybody else managed to get a template to work recently?
|
Checked other resources
Example Code
I get the error below. I tried 3 different templates, same error.
Error Message and Stack Trace (if applicable)
Description
I am trying to run any of the langchain templates on https://templates.langchain.com/
System Info
The text was updated successfully, but these errors were encountered: