GPT4Business
Admin DashboardCertified Program Registration
English
English
  • Getting Started
    • 👋Welcome
      • The Company
      • Why Is This Fantastic for Your Business?
    • ✨Quickstart
    • 👨‍🏫Glossary
    • 🚧Prompting
      • Useful prompts
    • FUNCTIONS
    • 👨‍💻How AI Agents Work
      • How to Build an AI Agent
    • 🎨AI Agent Dashboard
    • 📝Knowledge Base
    • 🧮AI Agent Settings
    • 🪟AI Chat Widget
    • 🎭Conversations
    • 👑MasterChat
    • 💉Integrations
      • Embed Chatbot on a Website
      • Facebook Messenger
      • WhatsApp
      • Instagram
      • Human Handoff for Integrations
      • Squarespace
      • Shopify
      • WIX
      • Wordpress
      • GHL
      • More Questions About Embedding Agents
      • Zapier App
    • 📒Leads
      • Overview of Lead Generation
      • Sending Lead Data to Zapier
      • Sending Lead Data to GHL
      • Sending Lead Data to Zoho CRM
    • 🔌APIs
      • Getting starter
      • Message AI Agent
      • Message AI Agent Q/A
      • User / Me
    • SUPPORT
    • ⛑️Troubleshooting
      • Debug mode
      • Multilingual Responses
      • Responses are too long
      • Clickable link in responses
    • 👔Office hours
    • 🔍FAQ
      • General
      • Localization
      • Data/Security
      • Technical Questions
      • Other
    • 🔐Security & Compliace
      • Data Privacy & Security Overview
      • GDPR Privacy Overview
      • Privacy Policy
      • Terms & Conditions
      • Data Processing Agreement
      • AI Model Data Usage
    • 🆘Need help?
    • 💲Pricing
      • Basic plan
      • Professional Plan
      • Master Plan
      • Consulting Services
      • Enterprise Solutions
    • NEWS
      • January 2025
        • The Dawn of a New Era: Stargate AI and the Golden Age of Innovation
        • The Future of Software: Agents and the Decline of SaaS
  • 💰Certified Partner program
    • Game Changer Program
    • How much I can make?
    • Application process
    • Q/A about the Program
Powered by GitBook

© 2025 YoloAI Technologies Inc.

On this page

Was this helpful?

  1. Getting Started
  2. Troubleshooting

Debug mode

PreviousTroubleshootingNextMultilingual Responses

Last updated 4 months ago

Was this helpful?

Enable this feature to learn more about what information is being pulled from the knowledge base and what information is being sent to OpenAI.

Objective: This guide explains how to use the Debug Mode feature in GPT4Business to troubleshoot chatbot responses when they don’t behave as expected. Debug Mode helps identify how the chatbot is using knowledge base information and where issues might arise.

Enabling Debug Mode

  1. Access Advanced Settings:

    • Navigate to the update area in your GPT-4 Business settings.

    • Scroll down and click on Advanced Settings.

    • At the bottom of the page, enable Debug Mode.

  2. Ask a Test Question from the AI Agent:

    • After enabling debug mode, ask the chatbot a relevant question (e.g., “Where is the headquarter?”).

    • Observe the response and analyze whether it aligns with your expectations.

Using Debug Mode to Analyze Responses

  1. Inspect Data Sent to ChatGPT:

    • Debug Mode provides a detailed log of what the chatbot sends to ChatGPT during a query.

    • This log includes:

      • The exact query used for semantic search.

      • The knowledge base results retrieved and sent to ChatGPT.

  2. Review Knowledge Base Search Results:

    • Scroll to the Knowledge-Based Search Results section in Debug Mode.

    • Here you’ll find:

      • The query used for semantic search.

      • A list of retrieved results, usually limited to three.

      • Details about each result, such as its type (e.g., question and answer pairs) and content.

  3. Example Debugging Scenario:

    • Suppose the chatbot’s response is incorrect or incomplete.

    • In Debug Mode, you might discover:

      • Relevant information is missing from the retrieved knowledge base results.

      • Conflicting data is present (e.g., outdated or incorrect entries).

      • The semantic search query isn’t targeting the correct data.

  4. Resolving Issues:

    • If the retrieved results are insufficient or irrelevant:

      • Update your knowledge base to ensure accurate and comprehensive information.

      • Remove outdated or conflicting entries.

    • Adjust the formatting of knowledge base entries if needed to improve semantic search effectiveness.


How Knowledge Base Data is Used

  1. Semantic Search Query:

    • The chatbot uses the user’s query to perform a semantic search in the knowledge base.

    • The search retrieves the most relevant entries based on the query.

  2. Result Format:

    • Results are typically structured as question-and-answer pairs.

    • Debug Mode allows you to see how these pairs are formatted and whether they’re effectively processed by ChatGPT.

  3. Troubleshooting Formatting Issues:

    • If a response is not as expected, check whether the format aligns with the chatbot’s expected input.

    • Adjust formatting (e.g., using clear labels like "Question = Answer") to ensure better understanding by the model.


Common Issues Identified in Debug Mode

  1. Missing Information:

    • Relevant data isn’t included in the retrieved results.

    • Solution: Add missing entries to the knowledge base.

  2. Conflicting Data:

    • The chatbot pulls conflicting information (e.g., outdated hours of operation).

    • Solution: Remove or update incorrect entries.

  3. Hidden Data in Website Scrapes:

    • Scraped data from websites may include hidden or irrelevant fields.

    • Example: Debug Mode revealed that a hidden JavaScript field caused incorrect office hours to appear.

    • Solution: Adjust the scraping process to exclude unnecessary or misleading data.


Best Practices for Debugging

  1. Regularly Update the Knowledge Base:

    • Ensure all entries are accurate and relevant.

    • Periodically review and remove outdated or conflicting information.

  2. Use Debug Mode to Verify Changes:

    • After making updates, test the chatbot’s responses with Debug Mode enabled to confirm improvements.

  3. Iterate and Refine:

    • If responses are still unsatisfactory, use Debug Mode to identify gaps or inconsistencies.

    • Modify queries and knowledge base entries accordingly.

⛑️
Debug mode
Debug mode in action