Getting aws bedrock model error error using the vector store tool to retrieve metadata

how can I include metadata from the knowledge base vector store as RAG for my model - I switched from Question Answer Agent to the more generic tools agent because I read in a post that you need to use the VectorStore tool to include metadata, and looking at the json input I can see it is indeed getting the retrieved metadata, but now I get an error from my sonnet ai model node once that data is passed to it as an input. The error is: “The format of the value at messages.2.content.0.toolResult.content.0.json is invalid. Provide a json object for the field and try again.”

I have a postgres vector store node that is return documents “As Tool for AI Agent” and I have “include Metadata” on.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.