Skip to content

ℹ️ How to report inaccurate responses #95

Description

@floralan

If you come across any inaccurate or low-quality responses from AgentForce for Developers, we encourage you to report them to help us improve. Your feedback is invaluable in enhancing both our LLM and the overall system. To effectively debug the issue, it's essential that you include the final prompt.

Below are instructions for two ways to retrieve the final prompt. You can use either method:

  1. Retrieve the final prompt by enabling trace
  2. Retrieve the final prompt with the debug log

Trace

1. Turn on request tracing:

1). Open the.vscode/settings.json file.
2). Add:

    "salesforce.einsteinForDevelopers.advanced": {
        "trace": {
            "request": true,
            "response": true
        }
    }
  1. Submit a generation request.
  2. The prompt is written to a file called trace.md in the workspace root.

Debug Log

1. Turn on debug logging for Einstein for Developers. 1. Click the Einstein icon at the bottom right corner, then select `Edit Einstein for Developers Settings`. 2. Toggle on `Einstein for Developers: Enable Debug Logging` as shown in the screenshot below:

Toggle-debug-logging

  1. Reload the window by using the command: Developer: Reload Window.
    1. Press Command/Ctrl + Shift + P to open the command palette
    2. Select the command Developer: Reload Window.
Image

  1. Open the developer console by using the command: Developer: Toggle Developer Tools .
    1. Press Command/Ctrl + Shift + P to open the command palette
    2. Select the command Developer: Toggle Developer Tools.
Image

  1. In the filter input box, search for ChatService: engineered prompt: to view the final prompt.
Image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions