Proof of concept
Engineering Knowledge Copilot

Avion Assistant

Ask our documentation a question.
Get the answer, with its source one click away.

The problem

The answer is in there.
Somewhere.

10locations on the file shares, in folders only their owners know
6formats: PDF, Word, Excel, PowerPoint, notes and plain text
Scansmanuals that are photographs of paper, unreadable to search

Finding takes longer than knowing.

Today

How to use it, how it works, how we built it

1
Using it Ask in plain English, check every source in one click, choose who writes the answer, and tell us what is wrong. See it · Checking an answer · The interface
2
How it works From a file share to a cited answer: reading the documents, searching, ranking, answering, and what leaves the building. Architecture · Ingestion · Search · Ranking · Answering · Data
3
How we built it What we used, where the code lives, how we work on it, and how a report becomes a fix. What we used · The code · Working on it · Feedback
Using it · See it

One question.
One cited answer.

1
Ask in plain EnglishNo keywords, no folder to know.
2
Sources firstThe documents appear before the answer.
3
The answer writes itselfStreamed word by word, citing [1] [2].
4
About four secondsEvery claim one click from its page.
Avion Assistant · blurred
Using it · Checking an answer

Every answer can be checked

Avion Assistant · blurred
Sources firstFive cards before a single word of the answer.
Point to previewThe lines the answer used, your words marked.
Click to openThe original page beside the chat, passage highlighted.
Nothing hidden"Not indexed" lists every file left out, and why.
Using it · The interface

Built like the tools you already use

Start with a questionFour checked questions to try, or ask your own in plain English.
Read the answerSources above, citations in the text, rate it in one click.
Check itThe document opens beside the conversation, at the cited passage.
Choose who writesCloud for speed, our own hardware when nothing may leave, or search only.
See what is, and is not, indexedEvery document it can search, and every file left out with the reason.
Follow what changedRelease notes for every build, and the status of every reported question.
How it works · Architecture

One service, one index, a choice of models

Browser
SvelteKit page, served by the same service. No install.
FastAPI service · Python
Search
Hybrid search, rerank, verified answers first
Answer
Prompt with five passages, model fallback, streaming
Ledger
Every question, model call and rating (SQLite)
makes feedback measurable
Index
Qdrant, embedded. Every passage, each with a meaning vector and a keyword vector.
bge-small embeddingsMiniLM rerankerONNX, on CPU
Models
The first that answers writes the answer.
Hosted model AHosted model BLocal model · our hardwareSearch only
Ingestion
File-share copy · team notes · reference catalogues → read, OCR, clean, guard, split, embed → index. Offline, incremental.
How it works · Ingestion

Every file is read, cleaned and checked first

Collect
File-share copy, team notes, reference catalogues
Read
PDF, Word, Excel, PowerPoint; scans by OCR
Clean
Contents pages, embedded blobs, repeated headers out
Guard
Credentials removed, or the file held back
Split
By headings, about 1,800 characters each
Embed
Meaning: 384 numbers. Words: a keyword vector.
Index
Only changed files are read again
OCRscanned manuals made readable
Heldfiles with credentials held back, never indexed
TablesWord and Excel tables kept as rows, not flattened away
How it works · Ranking

Forty-five candidates, five that answer

Fusion order, top six documentsAfter the cross-encoderSent to the modelfusion rankscorewhy
1DOCXInterfacing manual#1
255XLSXServer configurationsfrom #2#23.663.66
3TXTTrainer system infoSIM-D#3
444PDFInterfacing manual, SIM-BSIM-Bfrom #4#43.783.78
5PDFWiring diagrams, SIM-BSIM-B#5
613DOCXSimulation Software Setupfrom #7#74.944.94
2MDDisplay ServerSIM-Cfrom #314.38other simulator
3MDDisplay Server, older copySIM-Cfrom #414.07other simulator
6MDBus interface notesSIM-Afrom #83.37other simulator
1TXTDisplay system infoSIM-Bverified
2TXTDisplay system info, hardwareSIM-Binventory
these five go to the model
1
Wide netBoth searches merged into 45 candidates. Near the top of either, a passage rises (rank fusion).
2
Careful readerA small model reads the question with each candidate and scores how well it answers (a cross-encoder).
3
House rules
  • Only the simulator the question names
  • That machine's own inventory first
  • Passages verified by hand on top
How it works · Answering

Streamed, and somebody always answers

What the browser receives
When a model is busy, the next one answers
0.0 squestionWhat maintenance does the motion system need…
3.4 ssources5 passages · Maintenance manual · Service manual · …
3.7 sdelta
4.4 sdoneHosted model B · 4.4 s · now cached
Hosted model Acloud · fastest
busy · 429
Hosted model Bcloud · its own quota
answered
Local modelour hardware · nothing leaves
Search onlythe passages, when no model is free
Sources on screen before the answer Every answer names the model that wrote it A repeated question: 50 ms, from the cache
How it works · Data

Documents stay in the building. Only a question and five passages may leave.

Stays in the building
DocumentsA copy; the originals are never touched.
Index and searchEmbeddings and reranking run on our CPUs.
LedgerQuestions, ratings, which model was called.
CredentialsRemoved before indexing, or the file held back.
Local modelOn our hardware, when nothing may leave.
Two audiencesEvery file tagged internal or operator-visible, ready for sign-in.
question +
5 passages
Hosted model The hosted model receives the question and the five passages it answers from. Nothing else. Choose the local model to send nothing.
How we built it · What we used

What we used, layer by layer

Interface
The page, the documents beside it, answers rendered safely
SvelteKitTypeScriptTailwind CSSpdf.jsmarked + DOMPurify
Service
One service: the API and the page on one port
Python 3.11FastAPIUvicornPydantic
Search
Meaning, exact words and the careful reader, on the CPU
Qdrant, embeddedfastembedONNX Runtimebge-smallBM25MiniLM
Answers
Hosted for speed, our own when nothing may leave
hosted modelsllama.cppa small local model
Documents
Every format read, scans included
pypdfpdfiumTesseract OCRpython-docxopenpyxlpython-pptxmammoth
Running and checks
Recorded, deployed in one command, checked on every release
SQLiteWindows service, WinSWPowerShellpytestgolden questions
How we built it · The code

Seven files explain the rest. Start there.

backend/app/routers/
query.pythe two answer endpoints
backend/app/services/
retrieval.pysearch, rerank, prompt, fallback
ingest.pyfiles to passages to index
llm_provider.pyone model call, streamed
providers.pywhich models exist
verified_sources.pyhand-checked answers
secrets_scan.pythe credentials gate
backend/tools/
check_golden.pythe seven questions
ingest.pybuilds the index
triage_feedback.pyreplays the reports
frontend/src/components/
AssistantChat.sveltethe page
SourceStrip.sveltecards and preview
DocumentPanel.sveltedocument beside the chat
frontend/src/lib/
assistant.tsthe API, streaming
markdown.tssafe answer rendering
repository
docs/DECISIONS.mdwhy it is built this way
CHANGELOG.mdwhat each build changed
deploy/windows/build, deploy, roll back
feedback/reports and their replays
Python 3.11 · FastAPI Qdrant, embedded fastembed · ONNX on CPU SQLite ledger SvelteKit · Tailwind Windows service · WinSW 6k lines Python · 5k lines UI Blue dot: start reading here.
How we built it · Working on it

Six commands from a clone to a deploy

avion-assistant
Commits say whyThe message explains the reason, not only the change.
New build, new versionWith release notes people can read. The deploy checks.
Measure before and afterEvaluation, golden questions and timings, not impressions.
Feedback is evidenceReplay it, find the cause, fix that.
How we built it · Feedback

A thumbs-down becomes a fix

A rating with a note is the most valuable thing in the system.

Every reported question is replayed against each new build. Its status is measured, never ticked by hand, and shown to everyone in the app.

Aska real question
Ratethumbs and a note
Ledgerkept with the answer
Replayagainst the new build
Fix and testthe cause, not the answer
Guarda golden question
Every buildreplays every report
What's next

Where we can take it together

Sign-in and permissionscompany sign-in, per-user access
A Qdrant servermore users, faster search
Quota-aware routingthe model with room answers
Drawings and imagesthe formats still waiting
Project agentsassistants that act, per project

Ask the documents.
Check every answer.

ozgurural.github.io

Built by Dr. Ozgur Ural at Avion. The screens are blurred because they show company documents.

Avion Assistant · blurred