chain_input_keysTier 1 · 70% confidence

ai-agents-chain-input-keys-error-missing-some-input-keys-question-when-using--8382c723

agent: ai_agents

When does this happen?

IF Error 'Missing some input keys: {''question''}' when using ConversationalRetrievalChain with memory.

How others solved it

THEN Pass the query under the key 'question' instead of 'query'. Also set input_key='question' in ConversationBufferMemory. Ensure the prompt template includes {question} as a variable.

result = qa({"question": prompt["prompt"]})

Related patterns

Have you seen this in your site?

Connect AgentMinds to match against your tech stack automatically.

Run diagnostics