PAI-Rec AI Assistant
PAI-Rec AI Assistant is built into the PAI-Rec console. Powered by large language models (LLMs), agents, and the PAI-Rec product knowledge base, it provides intelligent Q&A, engine configuration diagnostics, recommendation result diagnostics, and OpenAPI error diagnostics. Use natural language to get guidance on data preparation, algorithm customization, and engine configuration for your recommender system. You can also run diagnostics on a specific configuration or request in the console to identify issues and find remediation guidance.
Features
|
Feature |
Description |
|
Intelligent Q&A |
Answers natural language questions about product features, algorithm selection, recommendation pipeline configuration, and common issues. |
|
Engine configuration diagnostics |
Checks whether a specific version of an engine configuration meets structural, value, reference, and business rule requirements. |
|
Recommendation result diagnostics |
Analyzes how a specific recommendation request was processed by using the request log, API response, and experiment configuration. |
|
OpenAPI error diagnostics |
Analyzes why an OpenAPI call failed based on the API name, status code, error code, and request parameters. |
Entry points
Log in to the PAI-Rec console and go to the target instance.
Click the PAI-Rec AI Assistant icon in the right sidebar or the floating icon in the lower-right corner. The assistant panel opens.
Enter your question in the input box and send it. Alternatively, select a preset question in the panel, add business context, and send your question.

You can also start diagnostics from the AI Detection entry on the Engine Configuration or Recommendation Result Diagnostics page, or from the AI Diagnostics entry in an error dialog box. When you start diagnostics this way, the assistant automatically includes the context of the current operation.
Access to the target instance and related resources is required for engine configuration diagnostics and recommendation result diagnostics. Recommendation result diagnostics also require the target engine service to be deployed and accessible.
Intelligent Q&A
PAI-Rec AI Assistant supports natural language Q&A to help you understand product features, choose recommendation algorithms, configure recommendation pipelines, and find solutions to common issues. You can add business context and existing configurations, and continue asking follow-up questions in the same session.
Common scenarios and example questions
|
Scenario |
Example question |
|
Data preparation |
I want to build an e-commerce recommender system. Which fields are required in the user, item, and behavior tables? |
|
Real-time data ingestion |
How do I ingest real-time behavior data into FeatureStore for behavior sequence features and exposure filtering? |
|
Recall algorithms |
What is the difference between etrec and swing, and how do I choose between them? |
|
Feature configuration |
How do I configure user behavior sequence features in recommendation algorithm customization? |
|
Multi-objective ranking |
How does a TorchEasyRec multi-objective ranking model fuse CTR and CVR prediction scores by using RankScore? |
|
Filtering and reranking |
How do I configure exposure filtering? How do I configure category diversification and place cold-start items in specific positions? |
|
Experiment validation |
After I launch a new fusion formula, how do I evaluate its performance through an A/B test? |
|
Common errors |
When I deploy a recommendation solution to DataWorks, the system reports that workspace development permissions are missing. How do I resolve this? |
Usage
Open the PAI-Rec AI Assistant panel and enter a question or select a preset question.
Add information related to the question, such as the business type, data fields, model type, configuration snippet, or complete error message.
After you send the question, review the answer and continue asking follow-up questions as needed to get more specific explanations or configuration examples.
For example, first ask how multi-objective scores are fused. Then add that the business objective is the transaction amount and that the model contains CTR and CVR tasks. Continue asking about formula design and experiment evaluation.
Engine configuration diagnostics
Engine configuration diagnostics check whether a specific version of a configuration meets structural and rule requirements. The agent retrieves the engine configuration of the specified version through an API, confirms the configuration name, version, environment, and release status, and then runs JSON Schema validation and rule validation. It checks structural completeness, enumerated values, reference consistency, business rules, duplicate names, and other issues, and returns the validation results with specific errors and warnings.
Checks
|
Check |
Description |
|
Configuration structure |
Checks the JSON structure, required fields, and field types. |
|
Parameters and enumerations |
Checks the values of configurations such as recall types, model types, and filtering or reranking conditions. |
|
References |
Checks the recalls, filters, and ranking steps referenced by a scenario, and the associations between model and data source configurations. |
|
Configuration rules |
Checks duplicate names and related business rules, and reports the specific field locations and validation details. |
Usage
On the Engine Configuration page of the target instance, select the environment, configuration name, and version to check.
Start diagnostics from the AI Detection entry for that version.
Review the diagnostic target and validation results confirmed by the assistant, and adjust the configuration based on the issue locations and suggestions.
After you make changes, check the new configuration version again and verify the runtime results with actual requests.

You can also enter the following prompt in the assistant to start a check:
Check the specified version of the engine configuration rec_demo, including the references among the scenario, recall, filtering, ranking, and model configurations. Configuration version: <version>; Environment: <production or staging>.
The diagnostic target is the selected configuration version, which can be released or unreleased. If validation succeeds, the configuration meets the requirements listed above. Actual recommendation results and business performance still require confirmation through request debugging and experiment evaluation.
Recommendation result diagnostics
When the recommendation API returns an unexpected number or set of items, you can run diagnostics for a specific request. The agent first gets PAI-EAS service information through an API to identify the associated engine configuration name, environment, and instance. It then uses the request_id in the API response to query the processing logs of the request in modules such as recall, filtering, and ranking. It also gets the engine configuration released in the corresponding environment. If the response contains an experiment ID, the agent gets the corresponding experiment group and experiment configuration. It then identifies the cause by comparing three sources: the configuration after the experiment parameters are applied, the request logs, and the API response. You can continue asking for remediation steps.
Usage
On the Recommendation Result Diagnostics page of the target instance, select the associated PAI-Rec service, environment, and route.
Enter request data that meets the requirements of the route and click Diagnose to obtain the recommendation API response.
Start the analysis from the AI Detection entry and describe what you want the assistant to focus on, such as too few items returned or a missing item type.
Review the diagnostic results and continue asking how to check specific modules in the same session.

For example, explain that the request is expected to return 20 items but only 10 are returned, and ask the assistant to analyze the cause by using the API response and logs.
OpenAPI error diagnostics
If an OpenAPI call fails while you are using the PAI-Rec console, you can start an analysis from the AI Diagnostics entry in the error dialog box. The agent uses the API name, HTTP status code, error code, error description, and request parameters to select the appropriate diagnostic flow based on the error type. If necessary, it verifies the business validation rules or looks up solutions for the related error code. It then explains the cause of the failure and states the conditions that the call must meet or the next troubleshooting steps.
Usage
In the error dialog box, click AI Diagnostics to open the assistant and start the analysis.
Review the API call that failed, the meaning of the error, and the troubleshooting suggestions.
To get further analysis, add the operating environment, related resources, or the steps you performed before the error occurred, in the same session.

You can also provide the API name, RequestId, and complete error message directly in the assistant, and describe what you were doing. For example:
When I queried the recall service, I encountered InvalidService.NotFound. Please help me analyze the cause. API name: <API name>; RequestId: <request ID>; Environment: <production or staging>; Complete error message: <error details>.
Sessions and feedback
|
Operation |
Usage |
|
New session |
Click the new session icon at the top of the assistant panel to start a new session. |
|
Multi-turn follow-up |
Add information or continue asking questions in the current session to further analyze an existing answer. |
|
View session history |
Click the session history icon in the panel, select a session to view questions and answers, and continue asking questions in that session. |
|
Stop generating |
While an answer is being generated, click the stop button in the input bar to stop generating the current answer. |
|
View execution process |
During diagnostics, you can view the tool execution process to track progress. After the result is generated, you can view the final answer. |
|
Rate an answer |
Submit a rating through the feedback entry for the answer, and add details about the issue if necessary. |
Best practices
Provide specific information: For Q&A, describe the business objective, data structure, and existing solution. For configuration diagnostics, specify the configuration name, version, and environment. For error diagnostics, include the API name, RequestId, and complete error message.
Separate different issues: You can continue asking about the same issue in the current session. When you switch to another instance, configuration, or unrelated issue, start a new session and specify the new diagnostic target.
Protect sensitive information: Before you enter configurations and logs, remove AccessKey credentials, access tokens, passwords, and unrelated personal information.
Review before you apply: Answers and diagnostic suggestions generated by AI are for reference only. Verify them against your actual configuration and runtime status. Perform operations such as configuration changes, releases, and permission adjustments in the corresponding console. Evaluate the impact on your business first.