Repository navigation
Integrate themis_help_lora adapter with HELP() function - #370
Merged
Merged
Conversation
Co-authored-by: makr-code <[email protected]>
Co-authored-by: makr-code <[email protected]>
Co-authored-by: makr-code <[email protected]>
…kward compatibility Co-authored-by: makr-code <[email protected]>
Co-authored-by: makr-code <[email protected]>
Copilot
AI
changed the title
[WIP] Integrate LoRA adapter support into HELP() function
Integrate themis_help_lora adapter with HELP() function
Jan 11, 2026
Owner
|
@copilot review |
Contributor
Author
Review complete ✅ Code Quality: All changes follow ThemisDB coding standards with proper RAII, exception handling, and namespace usage. Key Implementation Highlights:
Files Changed: 7 files
No Issues Found:
Ready to merge - All review feedback from previous review has been addressed (commits b72bc57 and earlier). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Integrates the
themis_help_loraLoRA adapter into theHELP()AQL function to provide fine-tuned documentation assistance with automatic fallback to base LLM.Type of Change
Related Issues
Closes #319
Changes Made
Core Integration
include/llm/applications/themis_help_lora.huser_idparameter, corrected return types)FeedbackItem,PerformanceMetrics,FeedbackStats, helper functiongenerateModelRequestId()using llm::FeedbackType;for proper namespace resolutionbase_model_idand dependencies (db,blob_manager)src/llm/applications/themis_help_lora.cpplora::andapplications::)lora::LoRAAuditEventTypeinclude/aql/docs_assistant_functions.h&src/aql/docs_assistant_functions.cppThemisHelpLoRAmember to implementation classhelp()to attempt LoRA first, fall back to base on any errorisLoRAActive(),getPerformanceMetrics()Usage Example
Implementation Pattern
Testing
Test Environment
Test Results
New Test Coverage:
Test Commands
Checklist
Code Quality
Documentation
Documentation Added:
docs/en/features/LORA_HELP_INTEGRATION.md- Complete integration guide (408 lines)LORA_HELP_INTEGRATION_SUMMARY.md- Implementation summary (318 lines)Branch Strategy Compliance
developfor features,mainfor releases/hotfixes)feature/,bugfix/,hotfix/,release/)mainordevelopPerformance Impact
Performance Notes:
Expected improvements with LoRA adapter loaded:
Latency overhead negligible due to adapter caching. Fallback path has identical performance to current implementation.
Breaking Changes
user_idparameter added with default value"anonymous"- maintains full backward compatibility.Security Considerations
Security measures:
Additional Notes
Architecture: Three-tier intent detection (Native NLP → LLM → Regex) remains unchanged. LoRA integration added as transparent layer before base DocsAssistant invocation.
Deployment: LoRA adapter is optional. System degrades gracefully when unavailable (logs warning, uses base LLM). No configuration changes required for existing deployments.
Future Work: Feedback collection UI, automated training pipeline, A/B testing framework, metrics dashboard.
Screenshots/Logs
Example log output showing fallback behavior:
For Maintainers:
Review Checklist
Merge Strategy
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.