# AI-Based Report Definition Performance Analyzer using GenAI Connect

**URL:** <https://forums.pega.com/t/ai-based-report-definition-performance-analyzer-using-genai-connect/11757>\
**Category:** AI\
**Tags:** pega-academy, pega-platform, senior-system-architect\
**Created:** [April 25, 2026, 4:53am UTC](https://forums.pega.com/t/ai-based-report-definition-performance-analyzer-using-genai-connect/11757 "2026-04-25T04:53:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![PoojaPalla](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/poojapalla/32/12434_2.png) [@PoojaPalla](https://forums.pega.com/u/PoojaPalla)\
**Post date:** [April 25, 2026, 4:53am UTC](https://forums.pega.com/t/ai-based-report-definition-performance-analyzer-using-genai-connect/11757/1 "2026-04-25T04:53:57Z")

</div>

Hi everyone,

I wanted to share an approach I recently implemented to proactively identify performance risks in Report Definitions using GenAI in Pega.

In most projects, Report Definitions are created primarily to meet functional needs, but performance considerations such as join complexity, filter usage, and data access patterns are often not evaluated during development. These issues usually surface later during testing or production.

To address this, I built a small utility-driven solution that analyzes Report Definitions and provides an LSA-style performance assessment.

**Implementation Overview:**

1. **Fetching Report Definitions**

2. **Metadata Extraction**  
For each Report Definition, extracted key attributes such as:

3. **Dynamic Input Construction**

4. **GenAI Integration**

5. **Evaluation Logic (via AI prompt)**  
The analysis is based on common performance heuristics:

6. **Result Persistence**

**Sample Output:**

Risk Assessment: HIGH RISK | Reason: No filters and high joins causing full table scan | Fix: Add indexed filters and reduce joins

**Key Learnings:**

- Many RD performance issues are design-related rather than infrastructure-related

- Simple heuristics (joins + filters) can identify a majority of risks

- GenAI works best when:

- This approach helps bridge the gap between development and LSA-level performance thinking

**Next Steps / Enhancements:**

- Introduce risk scoring (0–10 scale)

- Build a dashboard for high-risk RDs

- Integrate with PDC for runtime validation

- Extend analysis to Data Pages and data access patterns

[RD Risk Intelligence AI.docx](https://forums.pega.com/uploads/short-url/hrbTENIQwF6SFsmjs2UGWTuwWZZ.docx) (17.8 KB)

[Techinical Doc- RD Risk Intelligence AI.docx](https://forums.pega.com/uploads/short-url/ubh8jBHVbwI6TqnVzt2e5H4R5r3.docx) (541.9 KB)

---

<div class="post-metadata">

**Author:** ![Murali.Krishnan.D](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/murali.krishnan.d/32/23460_2.png) [@Murali.Krishnan.D](https://forums.pega.com/u/Murali.Krishnan.D)\
**Post date:** [April 26, 2026, 10:14am UTC](https://forums.pega.com/t/ai-based-report-definition-performance-analyzer-using-genai-connect/11757/2 "2026-04-26T10:14:55Z")

</div>

Hello Pooja,

Nice approach to use gen ai for rule analysis based on the design time aspects. This clearly proves Pega gaurdrails engine has huge potential in analysing and suggesting improvements and enforce governance on regular basis across ruletypes. But for this particular scenario I feel, Pega alert analysis using genai might be even more fruitful and realistic. For eg., some of the RDs without filters may perform better than some RDs with one filter which is on a bigger table. So inclining more towards the Pega alerts would be more accurate. You mentioned PDC in next steps which makes perfect sense. Nevertheless love the creativity here on using genai for rule analysis. Thanks for sharing.

---

<div class="post-metadata">

**Author:** ![laucf](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/laucf/32/23613_2.png) [@laucf](https://forums.pega.com/u/laucf)\
**Post date:** [April 27, 2026, 7:56am UTC](https://forums.pega.com/t/ai-based-report-definition-performance-analyzer-using-genai-connect/11757/3 "2026-04-27T07:56:07Z")

</div>

Thanks for sharing this — it’s a strong example of **design‑time AI applied responsibly**.

What works particularly well here is that:

- The **input is structured**

- The **output is constrained**

- The **AI is advising** , not enforcing

You are also right to call out that **heuristics alone are not enough** , and your note about **integrating with PDC and alerts is important**. Runtime evidence should always complement design‑time analysis.

This pattern aligns well with how Pega positions GenAI: **augment expert judgment** , not replace it. I’d be interested to hear how others balance design‑time heuristics with runtime telemetry when using GenAI for quality or performance analysis.
