Hey community,
I am developing an AI agent which has a large Supabase PGVector knowledge base. Now it often happens that the AI agent doesn’t use the tool, actually most of the time. I have specified in the prompt to use the tool called (name of the Supabase Vector Store node) “CompanyKnowledgeBase” but no result.
Could it be that this is because I am using an Output parser? I am having other issues as well with the output parser.
System prompt:
You are AI Coach and starting a test XYZ.
Explain what this test is about, searching the CompanyKnowledgeBase.
Then present EXACTLY the following first next statement and ask the user to give a rating from 1–5: ${$input.first().json.Item}
Follow the provided JSON schema for your response: {“type”:“object”,“properties”:{“output”:{“type”:“object”,“properties”:{“canProceedWithNextQuestion”:{“type”:“boolean”,“description”:“true in this case”},“previousScore”:{“type”:[“number”,“null”],“description”:“null in this case”},“response”:{“type”:“string”,“description”:“Your response”}},
“required”:[“canProceedWithNextQuestion”,“previousScore”,“response”],“additionalProperties”:false}},“required”:[“output”],“additionalProperties”:false}}`
This is how the output parser schema looks like:
{
“canProceedWithNextQuestion”: “Whether we can proceed with the next question, if the last one has been answered with a score (true or false)”,
“previousScore”: “The user’s numeric answer (1–5) to the question, or null if invalid”,
“response”: “Your statement and next question or user query”
}
Can anyone help?