r/LocalLLM • • 15d ago

Question Building a Local LLM Troubleshooting Assistant for Field Service Techs.... Advice?

I operate a commercial refrigeration and food service equipment repair company and want to build a local AI assistant to help techs troubleshoot in the field.

The idea is to use RAG with manufactures service manuals, wiring diagrams, troubleshooting guides, and past service service records to create a AI that can walk techs through diagnostics, reference previous repairs, and provide recommendations.

I would like to develope this on my RTX 5080 system, prove it works and migrate to a more robost system.

Looking for advise on:

  1. Models?
  2. Stack?
  3. Hardware?
  4. Budget $ 4K to 7K ????

Final system will need to be able to support up to 5 users remotely.

4 Upvotes

14 comments sorted by

2

u/SkiBikeDad 15d ago

I have a workflow for semi-structured PDFs. Even frontier models struggle with raw PDFs so your document extraction is going to matter A LOT here. You need:

PDF -> high quality extractor -> structured json + markdown versions + file index

I haven't started working with embeddings and rerank yet; my document store is small enough to brute-force it. Depending how much hardware your techs work with you might not need it.

Here's what I'm doing for PDF -> structured json + markdown:

Docling profile (after LOTS of trial and error - my usecase is county meeting minutes and decision records with lots of tables, scans, plats, finances, stakeholders, etc):

- pdf_backend=pypdfium2, native PDF text kept with OCR applied to image regions only (no forced OCR), output md + json

- OCR: RapidOCR v6 on ONNX Runtime, explicitly pinned to CPU (use_cuda/use_dml=false for Engine + Det/Cls/Rec) so it can't fight llama.cpp for VRAM; the auto preset name is hard-bound to RapidOCR/ONNX

- Layout: Heron on CUDA (layout presets showed no measurable benefit, so none are exposed)

- Tables: TableFormer v1 accurate on CUDA (only preset allowed)

And I have some fallbacks in place incase my default isn't great:

- Faint/low-ink pages: full-page-ocr profile (pypdfium2 + force_ocr) is the validated recovery pass — use selectively with span-compare, not document-wide, and never force_ocr alone

- The qwen VLM is a page-level rescue for dense/table pages (with token filtering)

- VLM fallback: qwen_transcribe — Qwen2.5-VL-3B-Instruct (pinned revision), transformers engine, BF16, CUDA, temp 0.0, 4096 max tokens, fidelity-transcription prompt ("do not summarize, correct, infer, invent or duplicate"), scale 2.0, batch 1

Hope that helps. Hopefully I'm running cutting edge local PDF extraction, if folks think otherwise I'd love to hear it!

2

u/PakMul48 15d ago

Thanks for the detailed breakdown. That's good info. espcecially since im just getting started with local llm.

One concern I have is how well this approach handles wiring diagrams, electrical schematics, and troubleshooting flowcharts. Accurately identifiying component releationships and electrical connections is critical.

Have you had any experience extracting this type of technical diagram, or would you recommend keeping those pages as images and using a vision model to interpret them?

Im also currious whether you preserve the original PDF page references so the LLM can direct users back to the source documentation.

2

u/SkiBikeDad 15d ago edited 15d ago

Yes, the structured json points back and i lt embeds images so you have two means of referencing diagrams.

What I found is that technical diagrams in PDFs are sometimes images, and sometimes a combination of images and highly structured markup overlayed on top, and sometimes purely highly structured markup.

That's not in my local use case. But I've been using frontier models for exactly this use case for DIY HVAC and solar projects. What I'll say is that some PDFs are going to work just fine as source material even in a capable local LLM and others are still beyond the reach of even frontier LLMs. You have to understand how to call BS and attack the problem from a different angle in those cases.

When you add manuals, work through some hard situations slowing your crew down in the field, see if the LLM and doc extraction works well for that manual/equipment. If so add it to your support dataset. If not keep iterating on it.

Edit to add: local LLM is plenty capable of helping your crew apply a flowchart as long as your doc extraction didn't screw it up; that usecase should work great.

Edit 2 to add: look out for LLMs inventing things not supported by technical documentation. They'll do that a lot, and it's usually helpful, but sometimes it overstates a conclusion wasting time or potentially suggesting an action that could blow a circuitboard.

2

u/old_leech 15d ago

I can discuss a similar "project". I'm being generous with that word as I'm in proof of concept mode (with active users daily driving/testing).

I'm pointed to MCP servers (both locally hosted), 1 for network activity, another for asset inventory. The third step is an API call.

Inference is "local" (I'm "loaning" my personal inference server). That server is powered by 2xr9700s, a Ryzen 5900x, 128 GB DDR4 on a Asrock x570D4U server motherboard. I bought the r9700s before their latest jump and already had the other pieces in place as a proxmox node. Far from frontier level, not bad for a modest hobby kit. Priced out now would land about $5-6k, I guess. I wouldn't recommend my build as a specific target.

It's currently served up by llama-server, if it scales out beyond 3 users, I'd switch to vLLM (and plan to anyway for next phase of testing). Access is via ssh to my workstation to an unprivileged account w/ Pi configured for use. I've got mitmproxy running between agent harness and inference server (carried via wireguard pointed to my homelab) so I can observe transactions in a lazy attempt to refine the skills.

I'm leveraging pi as a harness. Skills are clearly defined and instruct on tool calling. The output for the agent is also clearly defined (schema of data dumped for the end user is predictable and constant). This is managed by skill instructing codemode to run scripts that direct the lookups.

The goal is essentially a "find lost device" workflow. 3 unrelated (backend) systems have information that tell a story when put together: inventory MCP states device serial, username of assignee, device MAC address and location device should be used at. Network MCP looks up MAC and identifies where device actually last connected on prem and the external API call connects to Google and asks for last sync, IP and user logins.

What would be a ~5 minute lookup to gather all of this from 3 different systems takes about 20 seconds.

I've settled on Qwen 3.8 27B at Q4 w/ thinking disabled. Higher quants and thinking led to the model getting creative (anecdotal speculation on my part) with the mundane workflow. Gemma 4 (regardless of size and quant) just gets distracted. Nothing scientific here, just some pedestrian observations with a week or so of testing. I'll likely get more rigorous for the next round.

If I were in your shoes, I'd build with a harness (or in your case maybe openwebui or similar to start building out your RAG concept) and point it to an endpoint for compute (openrouter, a GCP project w/ billing, whatever...) just to test feasibility before spending a real dime on hardware. Get an idea of what the cost to run would be on a buy-per-token basis, scale for time and then compare that to hardware. (the same recommendation I'm going to make once I'm satisfied with proof of concept for what I'm doing).

I see some other responses digging in to details on the pipeline, those would be better considered than what I'm offering for specifics on pdf ingestion and RAG creation. We're on the same train, but aiming for different stops.

2

u/PakMul48 15d ago

Your project is actually pretty close to what I'm envisioning in terms of the workflow, even though our applications are different.

One thing that caught my attention was your use of a harness and defined skills to control the agent's behavior.

For my application, I'd want the AI to identify the equipment, retrieve the appropriate service documentation, and then guide the technician through troubleshooting one step at a time, requesting measurements and adjusting its recommendations based on the results.

How much of your workflow is controlled by predefined skills/scripts versus allowing the LLM to determine the next action?

I'm particularly interested in preventing the model from skipping steps, inventing specifications, or making unsupported diagnostic recommendations.

Also, have you found that using a harness significantly improves consistency compared to a standard RAG chatbot?

Appreciate the advice about proving the concept before investing in hardware. That's definitely the direction I'm leaning.

1

u/old_leech 15d ago

After setting up the MCP servers, my initial test was on based around my Claude team seat... with more the idea you're describing, an intelligent and (domain) knowledgeable agent.

It worked well (but was overly verbose) and I really wanted to build something local.

Pivoting to a local model, things went off the rails with either the agent trying to reinvent the wheel (exploring every aspect of what was exposed by the MCP servers, inventing elaborate workflows, second guessing itself) -- or, in the case of Gemma, outright hallucinating things and getting completely sidetracked.

I found both charming in their own way, but the goal is to create a helper agent to handle deterministic data -- and not take 20 minutes to provide results. So, yeah... the leash is pretty tight. The agent is smart enough to understand (often poorly formed) input from the user, recognize key data, intuit the need and then follow its skill, call its assigned tools and then hand the output back to the user in, basically, a scripted transaction. And it's allowed me to minimize both the model and token size (cutting costs wherever possible).

I have ideas more in mind with what you're shooting for and I feel like a combination of RAG (for the transient data) and fine tuning (for the institutional philosophies) is the way to go. But, small steps with successful results make that easier (for me) to visualize.

As for the harness part, that's me imposing my will to an extent. I'm not a fan of separating technical folks from technical tools and I believe that introducing new technologies should be broader than a new browser tab -- but I do see scaling what I'm doing with this to integrate in other systems (a Teams bot, for example).

I'm interested to see where you're going with your idea and what your next steps are. Post updates as you progress.

Also, for what its worth -- the forums over at level1techs is a good resource outside of reddit. I lurk and learn as much there as I do here.

2

u/Trick-Violinist-9340 15d ago

I work on generators. Had qwen3.8 177b model running via strata on a 5070ti 7800x3d and 128gb of ram Linux kf course download all the manuals engine genset end and provider ones index all the trouble shooting sections by machine kw into one quick serachae corpus. Then obsidian vault the same thing with wiring schematics screen shots where relevant so I can just say look up this error or whatever the machine is doing and have all the factory diagnostic steps handy. It works well. I might revamp how I do it.

1

u/PakMul48 15d ago

Did you just upload the raw manufacturer PDFs into your system, or did you do any preprocessing to make them more usable by the LLM? I'm particularly curious whether you had to extract and organize the troubleshooting sections, wiring diagrams, and tables separately, or if the system was able to handle the manuals as-is.

1

u/Trick-Violinist-9340 15d ago

I had it download about 850 PDFs and then read and extract all the information for me it took a while for him work his way through now raw PDFs are only read for things not currently in the markdown files

4

u/AndrewRoseIT 15d ago

I build software for contractor type workflows and the biggest thing is the techs actually trusting it, so I'd have it always show which manual page or repair record the answer came from so they can check it quick before acting on it.

For 5 users on one box, if the model ends up partly offloaded to CPU look at GGML_OP_OFFLOAD_MIN_BATCH in llama.cpp. Setting it to 128 took us from about 57 to 135 tok/s at 32 concurrent users on a 14B with some layers on CPU, single user didn't change. At 5 users the gain will be smaller, haven't measured that part.

3

u/Emotional_Flow_1184 15d ago

Your 5080 should be fine for getting started, and running it locally for 5 users is doable.

Run Ollama with a mid-size model like Qwen3 14B, and put Open WebUI on top. That gives your techs a chat page with user logins and built-in RAG. Upload your manuals, diagrams, guides and service records, then build and test it in a lab first.

Tip: set it up so each answer shows which manual or record it came from. That way techs can open the source for more detail and know it’s not guessing.

Once it’s working, move it to a bigger box. Something with an RTX 5090 runs about $4–5.5K, which fits your budget and handles 5 remote users easily.

If you don’t mind using the cloud, there’s an even easier way. You can set up a Claude or ChatGPT Project in a couple of minutes: upload your manuals and service records, and your techs can start asking questions. It costs way less than building a server, you just pay a monthly subscription per user.

2

u/AppearanceBest4180 15d ago

used llama-cpp-python with a 7b quantized model on a rtx 4070, ran fine with rag, but indexing speed was slow. try splitting docs into smaller chunks and using a faster embedding model like nomic-embed-text.

1

u/Viktor_Sosnov_94 14d ago

I’m working on Ompera. If your 5080 machine runs Linux, you could set up an invite-only pool for your techs. You can run a model from the Ompera Desktop catalog or connect an OpenAI-compatible model server running on the same PC. Each tech can use their own API key to access the shared model.

One option worth trying on your current hardware is Qwen3.8-Flash-Next with Strata. It can keep some of the model weights in system RAM and read the rest from SSD as needed. Someone in the Strata community ran it on a 5080 with 64 GB of RAM and an NVMe drive. I’d see how it feels with two techs using it at once before buying a bigger box.

Ompera handles access to the model. You’d still need an app that searches the manuals and cites the source pages. What OS are you running on the 5080 box, and how much RAM does it have?

1

u/SlightlyOverbuilt_ 14d ago

If you already have a 5080, you can use:

Yorath OS. The correct model for your hardware will download automatically.

Next, upload your instructions for technicians directly in the interface. Yorath includes built-in RAG and agent-harness capabilities.

You can connect your technicians to the system via Telegram or a web UI.

Crucially, you should then measure whether this setup actually solves your problem—and whether it has made things better for your technicians.

If you haven’t purchased a 5080 yet, I recommend the same approach, but suggest renting a GPU by the hour initially to determine how much VRAM your specific task requires. Than decide 5080 vs 5090 or other types.