Skip to content

Comments

Phase 14: Chunking & RAG Queries#23

Merged
nickmarden merged 8 commits intomainfrom
phase14
Dec 12, 2025
Merged

Phase 14: Chunking & RAG Queries#23
nickmarden merged 8 commits intomainfrom
phase14

Conversation

@nickmarden
Copy link
Contributor

No description provided.

@nickmarden nickmarden requested a review from Copilot December 11, 2025 23:28
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request implements Phase 14 of the project: Chunking & RAG (Retrieval-Augmented Generation) Queries. It introduces a complete RAG pipeline with citation support, allowing the system to generate AI-powered answers by retrieving relevant content chunks from the knowledge base and citing sources inline.

Key changes:

  • Implemented AI Answer service with RAG pipeline and inline citation support
  • Added AnswerSource model to persist citations on FAQ answers
  • Created SearchSetting model for configurable RAG parameters with per-space overrides
  • Enhanced Q&A Wizard with prompt templates, similar questions feature, and source attribution

Reviewed changes

Copilot reviewed 57 out of 57 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
app/services/search/ai_answer_service.rb New service implementing RAG pipeline with vector/keyword search and citation extraction
app/services/qa_wizard_prompt_service.rb New service for building Q&A Wizard prompts with variable interpolation
app/models/search_setting.rb New model for storing global search/RAG settings as key-value pairs
app/models/answer_source.rb New model for persisting citation sources on answers
app/controllers/spaces/qa_wizard_controller.rb Enhanced with RAG integration, similar questions feature, and source parsing
app/controllers/search_controller.rb Added ai_answer endpoint for generating AI-powered answers
app/helpers/markdown_helper.rb Added preprocess_lists for fixing LLM-generated markdown formatting
app/helpers/citation_helper.rb New helper for converting inline citations to clickable links
app/views/search/index.html.erb Added AI Answer panel with expandable content
app/views/spaces/qa_wizard/*.html.erb Enhanced with sources display, similar questions, and improved interactivity
db/migrate/* Added search_settings, answer_sources tables and new space columns
spec/* Comprehensive test coverage for all new services and features

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@nickmarden nickmarden merged commit ec0a5f1 into main Dec 12, 2025
5 checks passed
@nickmarden nickmarden deleted the phase14 branch December 12, 2025 13:59
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