diff --git a/test/uat/products.test.js b/test/uat/products.test.js index 4cac1f3..efd37ad 100644 --- a/test/uat/products.test.js +++ b/test/uat/products.test.js @@ -4,19 +4,22 @@ import { ProductsAssistant } from "../fixtures.js"; test("a comprehensive opensearch assistant for product apparel catalog", async () => { const assistant = await ProductsAssistant.create(); const threadID = await helperThreadID(); + // Can it query the OpenSearch DB for a simple aggregate count. const totalAnswer = await assistant.ask( "What is the total amount of products available?", threadID ); expect(totalAnswer).toMatch(/(5,000|5000)/); + // Can it use code interperter to genereate a bar chart image along with the answer? // FIXME: // const totalChartAnswer = await assistant.ask( // "Show me a bar chart image with totals of all top level categories.", // threadID // ); - expect(totalChartAnswer).toMatch(/i\.postimg\.cc/); + // expect(totalChartAnswer).toMatch(/i\.postimg\.cc/); + // Ensure each has own tread using metadata links. const asstThread = await helperThread(threadID); expect(asstThread.metadata.assistant).toMatch(/ProductsAssistant/);