Tracing LLM calls with LangSmith
Before you begin
- Sign up for a personal or service account for LangSmith.
- Generate the personal or service key.
To configure the LangSmith API Key for BMC HelixGPT
- Log in to BMC Helix Innovation Studio.
- Open HelixGPT Manager.
- On the Records tab, select GlobalSetting, and click Edit data.
- Select the LangSmithAPIKey record, and click Edit.
- Specify the LangSmith API that you generated in the Value field, and click Save.
To enable call tracing for a skill in BMC HelixGPT
- Log in to BMC Helix Innovation Studio.
- Open HelixGPT Manager.
- On the Records tab, select Skill, and click Edit data.
- In the data editor, select the skill for which you want to trace calls, and click Edit.
- Specify the following attributes in the Configuration field:
- traceOn: Set to true to enable call tracing.
langSmithProjectName: Specify the name project name.
The following code is an example of the attributes configured for LangSmith:{
"traceOn": true,
"langSmithProjectName": "DemoDebug"
}
- Click Save.
Results
Data for each LangSmith project is visible on the LangSmith page. You can view the input query, the output sent by BMC HelixGPT, and any errors that occurred during the responses. You can analyze the errors and take appropriate actions to resolve them. The following image shows a sample of the LangSmith page:
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*