global test window

Updated at:

This topic describes how to use the global test window to simulate conversations with your chatbot and validate its Q&A effectiveness. The test window's debugging features let you inspect the engine and knowledge used to answer a query, helping you optimize the chatbot's performance.

Access

After you enter a chatbot space, test your chatbot in the embedded window on the chatbot homepage. You can also open the test window from any other page by clicking the floating Test button on the right.

  • Test on the chatbot homepage

    image

  • Test from other pages

    image

Features

Simulate conversation

  1. Enter a question in the question input box.

  2. Review the chatbot's response to determine if its Q&A effectiveness meets your expectations.

    Note

    If the Q&A effectiveness does not meet your expectations, enable the debugging feature in the test window. Use the debugging information to identify the issue and optimize Q&A performance.

Conversation debug information

  1. Enable debugging to display information about the engine and knowledge used for each Q&A session.image

  2. Test settings:

    • Test scope:

      • Select chatbot: The system automatically selects the chatbot in the current chatbot space.

      • Select perspective: Choose the perspective for knowledge-based Q&A. For more information, see Perspective Management.

      • Select environment: Choose whether to use the test environment or the production environment to test the Q&A effectiveness.

    • Data simulation

      • Service simulation: If enabled, global services and API plug-ins return mock values directly.

      • Accompanying parameters: Simulate external parameters passed through the VendorParam parameter of the streaming session API.

        Note

        Accompanying parameters are user-defined parameters passed to various dialogue engines.

        • Role in the data-based Q&A engine: Used for table selection or as filtering conditions for Q&A. For more information, see the environment parameters section in Data-based Q&A Intervention.

        • Role in the Dialog Factory engine: Used to reference values. For usage details, see Expression Configuration.

image

  1. Enable deep retrieval

  • When deep retrieval is enabled, the chatbot performs multi-turn retrieval to find relevant knowledge, which results in more comprehensive responses.

image

  1. View the chatbot's answer information.

  • chatId: The ID of the current Q&A session between the user and the chatbot.

  • duration: The time it takes for the chatbot to return an answer.

    Note

    This example shows a user query answered by the knowledge Q&A engine, which displays the specific data source and source paragraph information. The information displayed differs if the chatbot uses multi-turn Q&A or data-based Q&A.

  1. More operations

  • Details: Click the Details button to view the response time, token count, and the specific knowledge the engine used to generate the answer.image

  • JSON: Click the JSON button to view conversation details, such as the debugInfo field.image

  • Save to golden test set: You can save the current user query to a golden test set for future validation of Q&A effectiveness. To do this, click Save to Golden Test Set and select the desired test set.image

FAQ

Why do images fail to load in the test window?image

  1. First, enable debugging. Open the JSON tab of the test window debugger. Find the URL in the MessageBody.DirectMessageBody.SentenceList's Content field.image

  2. Open the URL in a web browser to verify that the image exists. If it does not, check your knowledge configuration.

  3. If an image exists but cannot be accessed from the management console, this might be because the image server does not allow cross-domain access. In this case, you can configure the Access-Control-Allow-Origin "*" or Access-Control-Allow-Origin "https://chatbot.console.aliyun.com" header on the image server or a proxy server.