Skip to content

RP-20: Generate AI-powered root cause analysis summaries#16

Merged
b17saurabh merged 2 commits into
mainfrom
RP-20/ai-investigation-pipeline
Jun 14, 2026
Merged

RP-20: Generate AI-powered root cause analysis summaries#16
b17saurabh merged 2 commits into
mainfrom
RP-20/ai-investigation-pipeline

Conversation

@b17saurabh

Copy link
Copy Markdown
Contributor

feat(ai-investigation): implement AI investigation pipeline with OpenAI provider

  • Add InvestigationPipeline for deterministic RCA orchestration
  • Add OpenAILLMProvider adapter with generate/generate_structured/embed
  • Add RCA prompt templates in modular RCAPrompts class
  • Add investigation domain models (RCASummary, RootCause, etc.)
  • Fix Pylance warnings: use .get() for SettingsConfigDict, cast AsyncMock, use Any for kwargs

…AI provider

- Add InvestigationPipeline for deterministic RCA orchestration
- Add OpenAILLMProvider adapter with generate/generate_structured/embed
- Add RCA prompt templates in modular RCAPrompts class
- Add investigation domain models (RCASummary, RootCause, etc.)
- Fix Pylance warnings: use .get() for SettingsConfigDict, cast AsyncMock, use Any for kwargs
…tion

ModuleNotFoundError occurred in CI because app/pipeline.py used
absolute import 'from prompts.rca import RCAPrompts' which relied
on sys.path containing the service root. Moved prompts/ into app/
so imports always resolve via 'from app.prompts.rca import RCAPrompts'
within the app package, regardless of how the test image is built.
@b17saurabh b17saurabh merged commit c536f63 into main Jun 14, 2026
8 checks passed
@b17saurabh b17saurabh deleted the RP-20/ai-investigation-pipeline branch June 14, 2026 15:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant