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
bug: When running by example getting error: TypeError: 'dict' object is not callable #13867
Comments
🤖 Hello @lolevsky, I hope you're doing well! I'm Dosu, an AI bot here to assist you with your issue and answer any questions you might have. While we wait for a human maintainer, feel free to ask me anything about LangChain. I'm here to make your experience smoother! Based on the traceback you provided, it seems like the error is originating from the In your case, it appears that the As for the solution, it seems that there was a similar issue encountered by another user in the LangChain repository. The issue titled Retrieval Question/Answering Example not working in 0.0.200 suggests that the However, it's also worth noting that the Here's an example of how you can do this: from langchain.llms import OpenLLM
llm = OpenLLM(
model_name='flan-t5',
model_id='google/flan-t5-large',
)
response = llm._call("What is the difference between a duck and a goose?")
print(response) In this example, the Please try this solution and let me know if it resolves your issue. If not, please provide more details about your implementation of the Sources |
I am getting the same issue. It seems the documentation is not updated as something has changed due to which, the OpenLLM constructor returns a dictionary. |
I am also getting this issue. |
System Info
Environment variable
System information
bentoml
: 1.1.10python
: 3.11.5platform
: Linux-6.2.0-37-generic-x86_64-with-glibc2.35uid_gid
: 1000:1000conda
: 23.7.4in_conda_env
: Trueconda_packages
pip_packages
Who can help?
No response
Information
Related Components
Reproduction
I am following the example and wrote the code:
Seems like First request is hitting the server
Till now its look promising, but then I am getting error
TypeError: 'dict' object is not callable
.As attached in the trace:
To reproduce
This is how I had setup the envirment:
Expected behavior
Should not get errors, should hit the server for prompting
The text was updated successfully, but these errors were encountered: