feat: transform RAG bot into data model harmonizer for ACORD mapping#10
Open
Copilot wants to merge 5 commits into
Open
feat: transform RAG bot into data model harmonizer for ACORD mapping#10Copilot wants to merge 5 commits into
Copilot wants to merge 5 commits into
Conversation
Co-authored-by: inbravo <5253764+inbravo@users.noreply.github.com>
Co-authored-by: inbravo <5253764+inbravo@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Transform RAG bot into data model harmonizer for insurance data mapping
feat: transform RAG bot into data model harmonizer for ACORD mapping
Jan 22, 2026
Owner
|
good |
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.
Extends the RAG chatbot with a 6-phase semantic data mapping pipeline (Extract → Index → Generate → Review → CodeGen → Run) for harmonizing MSSQL schemas to ACORD standards using LLM-based reasoning.
New Modules
Mapping & Search
mapping/MappingEngine.py- Orchestrates mapping lifecycle with confidence scoring, approval workflow, and audit trailretrieval/MetadataLoader.py- Converts SQL schemas, ACORD definitions, and business dictionaries into RAG-indexable documentsretrieval/AcordSearcher.py- Cross-metadata semantic search with rankingData Extraction & Code Generation
source_inspectors/MSSQLScanner.py- SQLAlchemy-based schema extraction with extended propertiesoutput_gen/SparkCodeGen.py- Generates PySpark ETL with data quality checks from approved mappingsmapping_prompts/HarmonizationPrompts.py- Domain-specific prompts for chain-of-thought mapping decisionsAPI Extensions
Added 14 REST endpoints to
FlaskApp.py:Enhanced Modules
DocUploader.py- Added metadata indexing functions:Dependencies & Compatibility
sqlalchemyfor schema inspection,pyodbcfor MSSQL connectivitylangchain.schema→langchain_core.documents,langchain.prompts→langchain_core.prompts/,/admin,/query) preserved - fully backward compatibleDocumentation
HARMONIZER_ARCHITECTURE.md- Complete system designQUICKSTART.md- Setup and workflow guideMODULES_REFERENCE.md- API referenceexamples_integration_workflow.py- End-to-end demoData Model
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
us.i.posthog.com/usr/bin/python3 python3 -c from source_inspectors.MSSQLScanner import MSSQLScanner from mapping.MappingEngine import MappingEngine from retrieval.MetadataLoader import MetadataLoader from retrieval.AcordSearcher import AcordSearcher from output_gen.SparkCodeGen import SparkCodeGen(dns block)/usr/bin/python3 python3 -c import sys sys.path.insert(0, '.') print('Starting Flask app import test...') try: from FlaskApp import app print('��� Flask app imported successfully') print('Available routes:') for rule in app.url_map.iter_rules(): print(f' {r(dns block)/usr/bin/python3 python3(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
Created from VS Code via the GitHub Pull Request extension.
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.