Waterflai
  • Welcome to Waterflai
  • Getting Started
    • Concepts
    • Quickstart
  • Providers
    • Providers Overview
    • Providers setup
    • AI models
    • Choose the right models
  • Knowledge
    • Knowledge Overview
    • Knowledge connectors
    • Knowledge collections
  • Studio
    • Studio Overview
    • Studio Builders
      • Light Builder
      • Dream Builder
      • Workflow Builder
      • Flow components (nodes)
        • Input Node
        • Output Node
        • LLM model Node
        • Multimodal LLM Node
        • Dall-E 2 (image generation) Node
        • Dall-E 3 (image generation) Node
        • Sora video generation Node
        • Text-to-Speech (TTS) Node
        • Speech-to-Text (STT) Node
        • OCR Node
        • Agent Node
        • Reranker Node
        • Knowledge retrieval Node
        • Vector store insert Node
        • Vector store record delete Node
        • Gitbook loader
        • Notion Database Node
        • Figma Node
        • Webpage scraper Node
        • Sitemap Scraper Node
        • API Request Node
        • Document metadata extraction Node
        • Document metadata update Node
        • Character splitter Node
        • HTML splitter Node
        • Markdown Splitter
        • Calculator tool Node
        • Text as tool Node
        • Knowledge retrieval tool Node
        • Conditional Node
        • Iteration loop Node
      • Testing and Debugging
    • Publishing
    • Integration with API
    • Embedding in website
  • Analytics
    • Analytics Overview
    • Dashboards
    • Logs
  • Administration
    • Organization users
    • Workspace
    • Security and permissions
  • Troubleshooting
    • Support
Powered by GitBook
On this page
  • Live Chat Testing
  • Execution Detail Panel
  • Configuration Popover
  • Common Debugging Scenarios
  • Best Practices for Testing and Debugging
  1. Studio
  2. Studio Builders

Testing and Debugging

PreviousIteration loop NodeNextPublishing

Last updated 4 months ago

Effective testing and debugging are crucial for developing robust flows and workflows in Waterflai. This guide will walk you through the tools and techniques available for ensuring your AI applications perform as expected.

Live Chat Testing

The Mini Chat feature in the Dream Builder Editor allows you to test your flow in real-time.

Using Mini Chat

  1. Opening Chat: Click the "Chat" button in the top right corner of the Dream Builder.

  2. Interacting with Your Flow: Type messages into the chat interface to test your flow's responses.

  3. Viewing Outputs: Observe how your flow processes inputs and generates outputs.

Tips for Effective Testing

  • Test with a variety of inputs, including edge cases.

  • Use the chat history to track conversation flow.

  • Pay attention to how your flow handles unexpected inputs.

Execution Detail Panel

The Execution Detail Panel provides in-depth information about how data flows through your nodes during testing.

Accessing the Execution Detail Panel

  • Click on the check/cross icon, on top-right of a node in your flow after running a test to view its execution details.

Understanding Execution Details

  • Input Data: See what data was passed into the node.

  • Output Data: View the results produced by the node.

  • Execution Time: Check how long each node took to process.

  • Errors: Identify any errors that occurred during execution.

Using Execution Details for Debugging

  • Trace the flow of data through your nodes to identify where issues might be occurring.

  • Compare expected vs. actual outputs at each step.

  • Look for bottlenecks in processing time.

Configuration Popover

The Configuration Popover allows you to adjust node settings on the fly for testing different scenarios.

Accessing the Configuration Popover

  • Click on a node in your flow to open its Configuration Popover.

Testing Different Configurations

  • Modify node parameters and immediately test the changes in Mini Chat.

  • Experiment with different model settings, prompts, or knowledge bases.

  • Use variable references to test how data flows between nodes.

Common Debugging Scenarios

1. Unexpected Outputs

  • Check the prompts and instructions in your LLM Model and Agent nodes.

  • Verify that the correct knowledge bases are being accessed in Knowledge Retrieval nodes.

  • Ensure that data is being correctly passed between nodes using variable references.

2. Error Messages

  • Review the Execution Detail Panel for the node where the error occurred.

  • Check node configurations for missing required fields or incorrect data types.

  • Verify API keys and permissions for external services.

3. Performance Issues

  • Look for nodes with long execution times in the Execution Detail Panel.

  • Consider optimizing large text inputs using Splitter nodes.

  • Review your use of API calls and consider caching strategies where appropriate.

4. Inconsistent Behavior

  • Test your flow multiple times with the same input to check for consistency.

  • Review any random elements in your flow (e.g., temperature settings in LLM nodes).

  • Check for race conditions in parallel executions.

Best Practices for Testing and Debugging

  1. Incremental Testing: Test each node or small group of nodes before adding complexity.

  2. Use Descriptive Node Labels: Clear labels make it easier to understand the flow during debugging.

  3. Comment Your Flow: Add comments to complex sections to aid in troubleshooting.

  4. Version Control: Save versions of your flow as you make significant changes.

By leveraging these testing and debugging tools and techniques, you can ensure that your Waterflai flows are robust, efficient, and produce the expected results. Remember that testing is an iterative process, and regular debugging will help you refine and improve your AI applications over time.

Chat interface for flows (Dream Builder)
Access to Execution Detail Panel