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

Error: One input key expected got ['query', 'context', 'handle_keys'] #11

Open
toughlucksmith opened this issue Dec 18, 2023 · 1 comment

Comments

@toughlucksmith
Copy link

I am getting this message from the chat window.

Screenshot from 2023-12-18 09-41-27

I tried specifying the values in chat_inputs string but this seems to have made no difference.

chat_inputs='{"query":"","context":"","handle_keys":""}'

This only happened after I added ConversationWindowBuffer to the flow. The "context" is coming from a text file loader and I believe that is also where the "handle_keys" is coming from.

This flow works fine in LangFlow so clearly I am doing something wrong with the UI config.

Screenshot from 2023-12-18 09-38-50

@toughlucksmith
Copy link
Author

I should probably also include a clip from my Prompt Template. You can see here I am putting the context variable into the template. context should be loaded from the TextLoader.

Context: {context} Chat History: {chat_history} Human: {query} AI:

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