-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Input to PromptTemplate is missing variables - while trying out examples #939
Comments
Hey there, @raiden076! 👋 I'm here to assist with any bugs, questions, or contributions. If you need help, feel free to ask! I found a similar open issue regarding the "Input to PromptTemplate is missing variables" error. The suggested solution is to ensure that all required input keys are present in the state dictionary before executing the node. Specifically, make sure that the variable names in your prompt dictionary match exactly with what the Here's a checklist to help troubleshoot the issue:
If the issue persists, double-check the configuration and the way the To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other |
seems scrapegraphai==1.40.1 |
Nope, once indicate a schema the error will be throwed by langchain |
scrapegraphai will add this into template, seems leading to langchain looking for input_variables of |
Does it work now? |
but i am on the latest version, 1.40.1. and yes, i just checked again, the issue is still here @VinciGit00 |
any update here? @VinciGit00 👀 |
I could reproduce this issue with today's release: v1.42.1. |
Issue exists in 1.43.0 as well when providing a schema the error is thrown.
|
version==1.40.1
Describe the bug
i am trying to execute the SmartScraperGraph with schema defined and recieving these errors
Error during chain execution: 'Input to PromptTemplate is missing variables {'"properties"', '"foo"', '"$defs"'}. Expected: ['"$defs"', '"foo"', '"properties"', 'question'] Received: ['question']\nNote: if you intended {"properties"} to be part of the string and not a variable, please escape it with double curly braces like: '{{"properties"}}'.\nFor troubleshooting, visit: https://python.langchain.com/docs/troubleshooting/errors/INVALID_PROMPT_INPUT '
Traceback (most recent call last):
To Reproduce
Steps to reproduce the behavior:
follow this example https://docs-oss.scrapegraphai.com/docs/Examples/Groq/smart_scraper_schema_groq
Expected behavior
expected to recieve data as given pydantic model
detailed error
code i am using
The text was updated successfully, but these errors were encountered: