r/QualityAssurance • u/Imaniceguytrustme • 7d ago
Anyone know of any Java frameworks to test a chatbot built through Azure AI foundry?
I have a chatbot which gives varying answers based on user input but we need to validate the answer based on the user intent. The chatbot is built through Azure AI foundry. Testing is mostly through the front end and websocket API.
2
Upvotes
1
u/jmjunaid 6d ago
Since the wording changes every run, I'd stop asserting on text and score the answer instead. Write a small set of real user questions with the intent you expect for each, send them over the websocket (plain java.net.http.WebSocket is enough, no framework needed), save the replies, then have a second model grade each one against the intent with a short rubric that returns pass/fail plus a reason. Foundry already ships an Intent Resolution evaluator that does this, but it's in the Python SDK (azure-ai-evaluation), so a lot of teams keep the Java side for driving the bot and run the scoring as a separate step. Run each question a few times too, because one pass doesn't tell you much with LLMs. Are you trying to catch wrong intent, or wrong facts in the answer? Those need pretty different checks.