feat/ai #1

Merged
rov merged 4 commits from feat/ai into main 2026-06-08 20:16:24 -03:00
Owner
No description provided.
rov added 4 commits 2026-06-08 20:14:55 -03:00
Core AI module with chat sessions, message history, pgvector embeddings,
semantic search via RAG, and Ollama integration for chat/embedding models.

Includes:
- Spring AI Ollama dependency (BOM 1.0.1)
- Entity model: ChatSession, ChatMessage, EmbeddingChunk
- Custom PostgreSQLVectorJdbcType for pgvector mapping
- Services: ChatService, EmbeddingService, ChatContextBuilder
- ChatController with SSE streaming endpoint
- Flyway migration V008 (pgvector extension + tables)
- AI configuration in application.yml
Triggers automatic embedding generation after static analysis completes
by publishing a StaticAnalysisCompletedEvent consumed by the job pipeline.

- StaticAnalysisHandler publishes event on analysis completion
- EmbeddingEventSubscriber creates GENERATE_EMBEDDINGS job from event
- EmbeddingGenerationHandler indexes binary via EmbeddingService
- JobType enum gains GENERATE_EMBEDDINGS variant
- New repository queries to support AI context builder lookups
Comprehensive documentation for the AI module covering architecture,
API design, data model, RAG pipeline, configuration, integration points,
and frontend integration guide. Includes IDA5 extraction points reference
and AGENTS.md with project conventions and coding standards.
Tests use H2 with explicit schema.sql instead of Flyway, and AI module
is disabled via app.ai.enabled=false and OllamaAutoConfiguration exclusion.
rov merged commit e164180870 into main 2026-06-08 20:16:24 -03:00
rov deleted branch feat/ai 2026-06-08 20:16:25 -03:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Decompile.AI/backend#1
No description provided.