Applied automation · RAG
AI Fabric Migration Assessment
A human-triggered assessment workflow for an Azure HDInsight to Microsoft Fabric migration, grounded in Microsoft documentation.
- 10workloads assessed
- 6rated High risk
- 6Slack escalations, one per High
- 2inventory files consolidated
01The problem
Assessing migration workloads is slow, repetitive work.
A migration to Microsoft Fabric starts with an inventory: a list of workloads to look at one by one, check against platform guidance and rate for risk. The question behind this build was how much of that can be automated while the workflow stays understandable and controlled.
The result is a human-triggered assessment platform for Azure HDInsight to Fabric. It grounds each judgement in Microsoft documentation and escalates the risky items.
02What I built
An assessment that automates the repetitive steps.
- 01Inventory inMulti-file inventory upload with schema validation.
- 02Standardised by n8nAn n8n ETL consolidates and standardises the files ahead of the FastAPI service.
- 03Grounded assessmentMicrosoft Learn-grounded RAG with FAISS retrieval and GPT-4.1 assesses each item.
- 04Risk guardrailA risk guardrail escalates high-risk items to Slack.
- 05ReportAn assessment dashboard and a consolidated CSV report.
03How it works
From inventory files to an escalated report.
- Inventory CSVs
- n8n ETL
- FastAPI
- RAG + FAISS + GPT-4.1Grounded in Microsoft Learn
- Guardrails
- Report · Slack escalation
04Decisions that mattered
What I chose, and why.
The reasoning behind the build, not just the parts list.
- 01AI reasoning, then deterministic safeguardsGPT-4.1 reasons over retrieved Microsoft Learn content. Its output is then checked: structured-output validation, a deterministic Fabric-area reliability safeguard and an enterprise risk guardrail. The model does not get the last word.
- 02Ground it in documentationMicrosoft Learn pages are ingested, cleaned and chunked, embedded with OpenAI text-embedding-3-small and indexed in FAISS, so assessments cite platform guidance, not model memory.
- 03n8n for orchestration, FastAPI as the boundaryn8n handles the ETL and workflow, and a FastAPI service with Pydantic validation exposes the assessment as a clear API. The input data was deliberately inconsistent, so standardisation happens before the API.
- 04Escalate by risk, not by defaultOnly High-risk items trigger a Slack escalation. In the final test, 6 High-risk workloads produced exactly 6 escalations.
- 05Keep a human in the loopThe workflow is human-triggered, and workloads are flagged for human review. In the final test all 10 were.
- 06Be honest about scopeThe knowledge base covers selected Fabric migration scenarios. The platform demonstrates the architecture and engineering pattern; it does not claim coverage of every source technology.
05Engineering evidence
The final assessment run.
Result
- Migration inventory files2
- Workloads assessed10
- High risk6
- Medium risk4
- Low risk0
- Flagged for human review10
- Automated Slack escalations6
06Why it matters
AI, APIs and orchestration around one real question.
The point is not automation for its own sake. It is where AI, APIs and workflow orchestration can remove repetitive steps while keeping the workflow understandable and controlled.
07Under the hood
Stack, lessons and limits.
Stack by layer
- Interface
- Streamlit assessment dashboard
- Data processing
- pandas
- Workflow and ETL
- n8n
- API
- FastAPI, Pydantic, Uvicorn
- RAG
- LangChain, OpenAI embeddings, FAISS
- Model
- GPT-4.1
- Knowledge
- Microsoft Learn, ingested with requests and BeautifulSoup
- Notifications
- Slack, with a Cloudflare Tunnel for development connectivity
What I learned
- Retrieval, an API layer and workflow automation work best around one concrete enterprise question.
- Keep AI judgement and deterministic control as separate steps, so each can be checked.
Honest limits
- The knowledge base is intentionally focused on selected Microsoft Fabric migration scenarios.
- It does not claim comprehensive migration coverage for every source technology.
Retrieval, an API layer and workflow automation, brought together around one enterprise question.