Русская версия

← Angelina Zgadova · All work

Stend

An assistant for embedded electronics engineers

A desktop application for a hardware design office. Finding an answer about ESP32 takes an engineer half an hour: a thousand-page Technical Reference Manual plus digging through forums. A cloud model answers in seconds and invents register numbers while it does, and the office works under NDA, so nothing may leave the building. Stend answers from the documentation the team put into its own index, and it cites the document, the section and the page behind every claim. Checking takes ten seconds. The model, the index and the conversations all live on the engineer’s machine: the only address the application talks to is a local one.

Role: Entire product. Year: 2026. Stack: Python, SQLite, FTS5, Ollama, Qwen3, bge-m3, RAG, PyMuPDF, pyserial, Vosk, Windows OCR, scrypt.

An internal system with no public link.

Stend: An assistant for embedded electronics engineers

What’s inside

Answers cited down to the page

The model answers from retrieved passages instead of its own memory: retrieval-augmented generation. A sources panel sits beside the answer, each entry carrying the document type, the section and the page, and footnotes in the answer point to the right entry. The engineer verifies a claim against the original instead of taking it on trust.

Hybrid retrieval: exact match plus meaning

A question travels two routes at once. The SQLite FTS5 full-text index finds an error code, a register name or a part number letter for letter. Vector search over embeddings finds a problem described in the engineer’s own words. The results merge into one list, because «0xffffffff» and «the camera returns no frame» both have to work.

ESP-IDF versions are filtered inside retrieval

Every document in the index carries a framework version, and the engineer picks their own. In this domain an answer from the wrong version is worse than silence: the API was renamed, and advice from 4.4 will not even compile on 5.3. Passages from other versions never reach the model.

Ranking by source type

A datasheet and the official documentation outweigh a forum thread, and a solved case from the office’s own practice stands beside them. The type comes from the folder the file goes into, so any engineer can extend the index without writing a line of code.

Board logs, screenshots and speech as input

The application reads the COM port and pulls the log off a connected board itself. Text on a screenshot of the serial monitor or a datasheet page is recognised by Windows’ own OCR: a vision model would have cost a gigabyte and a half for the same result. A question can be dictated, and that recognition is local too.

The model is chosen by the hardware

The application detects the GPU and picks the larger pair of models from seven gigabytes of VRAM up, the middle pair on CPU only. Short exchanges like «hi» go to the smallest one, because waiting seconds for a single line makes no sense. The engineer configures nothing.

People and documents in separate databases

The corpus is rebuilt from scratch, and a shared file would eventually take every conversation with it. Passwords are not stored: each leaves behind a scrypt hash with its own salt, and the session key leaves only a fingerprint. The database file alone will not let anyone log in as someone else.

Moving it to a machine with no internet

The application weighs megabytes and the models weigh gigabytes. One command builds a kit onto a flash drive, another unpacks it on the far side without a single network request. Conversations stay behind: someone else’s chats and passwords have no business on a new machine.

Get in touch

Telegram: @iteachzg · zgadova123@gmail.com · GitHub