r/LocalAIStack • • 2d ago

3 months in building local ai

Post image

Apologies in advance, as many of you seem very advanced, but I wanted to share a project I am working on. For some background, I’m not a developer by any means. I am a data architect by trade who knows some Python and SQL.

What has always appealed to me is taking 20 years of personal and work data—emails, photos, texts, and RSS feeds—and building a database that integrates with a local AI model. It might sound like an unusual goal, but I want a local model that can reflect my approach and perspective based on my own history. For example, if I ask it to design a data model, it can draw from models I’ve built in the past. If I hit a tricky query, it can reference previous SQL problems I have solved. It also doubles as a personal memory bank, letting me quickly look up past flights, hotels, or favorite restaurants in a given city.

Thats’s the core of the project: a private AI that knows my life because it can search my records, not because it was trained on them. Everything runs locally at home on my mini PC and NAS nothing touches the cloud”and I access it from my iPhone, iPad, and laptop over Tailscale. I would appreciate any thoughts or ideas. For the most part, this is up and running and working for me. I still have a lot more to go . But the database side of it is done and I’ve embedded everything.

45 Upvotes

16 comments sorted by

2

u/AlthistNewUse 1d ago

This is pretty cool, but the models you're using are outdated. I suggest you use specialized models under an orchestration framework to get better outputs; the output tends to be much better on machines that can manage it (maybe DeepCoder for coding specialist, Gemma 4 E4B for multimodal specialist, etc.).

Like seriously. The performance of such a model is pretty good, and if you're only activating 2-3 specialists, it's pretty fast.

1

u/Lopsided-Pop3833 1d ago edited 1d ago

Taking your advice .  My local system already runs as a chain of specialists (embedding, reranker, query rewriting, answering), and nearly every question is the same retrieval task, so a router would add latency without much gain. I'll add a coding specialist for Python/SQL and a vision model for photos when I get to those.  A previous person already recommended a new reranker and taking that advice.

1

u/Reasonable_Bus2234 1d ago

Qwen3-coder for code? Isnt that outdated and outperformed by qwen 3.5/3.6 moe and 3.8 dense?

2

u/Lopsided-Pop3833 1d ago

That’s a good point I could upgrade, but my coding requirements are extremely limited. As I said I’m not developer in anyway so Python and SQL is as much as as I need.

1

u/m31317015 1d ago

The thing is, with a strix halo box I don't think much can be done other than you're stuck with MoE models or low tps for dense models. I know it's still usable, but last year for the same price I got a 5090. I know there's extra spending on CPU MB and RAM, I got in before the RAMageddon, but I got 8x64 DDR4, even with 8x16 DDR4 it's not that much, and in return you get blazingly fast pp and tg with a 27B dense model which you can get more ctx by stuffing a slower card like 3090, or now you don't even need to and can do ninfer with 256K ctx just with a single 5090. Or back then you could've got two R9700, still very compelling compared to Strix Halo's <300GB/s bandwidth.

The structure is fine, you know your thing about data storage, it's totally cool, one recommendation is that if you still have another PC, avoid using the Strix Halo as a desktop, get it on Linux and put it as an inference server.

1

u/Lopsided-Pop3833 1d ago

Hey, I very much appreciate it.  This was a lot of money for me, and I spent a lot of time looking for the biggest bang for my buck.  Obviously, ram prices and GPU prices colored that decision.  I also didn’t know how far I might go with this project, as this isn’t my area of expertise at all.  What I don’t mind is a lot of my requests for AI is looking at large amounts of data and doing some summarization, according to a set of rules that I establish in a prompt, or through a Python script.  To me, even if it chugs along for 16 hours, that’s something I wouldn’t be able to afford through a consumer level AI product like Claude or ChatGPT.  If I can even get to the answer at all.  My day-to-day request, getting response back in 15 to 20 seconds, doesn’t bother me at all. I, I’m fine with that, and I can live with that. Of course, I’d love to have better hardware, and I very much considered somewhere approach to yours. I just could not fathom the prices based off of what’s going on right now.  Now that I realize how much I’m enjoying this, I will certainly consider upgrade once, hopefully, prices returned to normal

1

u/m31317015 1d ago edited 1d ago

I think the reasonable choice is to sell that box and get dual R9700, with CPU offloading basically you can do the same tasks about 1.5-2x as fast, considering the amount of data you'll be chugging based off of my own experience with sqlite + sqlite-vec projects, the data science scene is new to me and I'm still exploring but it's fun to have data to be fiddled with, like who doesn't love cool stats from historical data?

Of course do it at a later time, the price is still ridiculous. My recommendation is to get DDR5 64GB if affordable, or DDR4 128GB w/ older threadripper / epyc CPUs. You may also eye on the prices of A100 32GBs, or 3090 in general. They need some tinkering but generally they're about the golden standards for cost performance balance. AMD side it would be the R9700, or V620 / MI60. Feeling adventurous you may also look into MI210, I'm considering to swap when the price is good on ebay.

2

u/Lopsided-Pop3833 1d ago

Appreciate the detailed breakdown, and they are definitely better options for raw speed. Dedicated cards would be faster, especially on long prompts. But for my personal AI project it doesn't line up with what I need right now. I’m getting a lot of responses that I need to go faster. I don’t need faster models. I need accurate models. I’m going for a high levels of accuracy of my data and if that takes longer to get, then I have very little concern.

It's one user, mostly retrieval over my own records, and the heavy jobs (embedding, document review, summaries) run overnight, so speed isn't really my bottleneck. What's improved it most lately has been cleaning up the data, not compute. I also went to the mini PC on purpose. I parted out my desktop because it was bulky, and dual R9700s means a full tower, a big PSU and cooling again. Two of them would actually give me less GPU memory (64 GB vs 96 GB), and I'm staying on Windows, which rules out most of the used datacenter cards that really want Linux and server airflow. I may go that route one day if I wanna grow this project. But I get excellent responses. My response time for any particular query is about 10 seconds on a loaded model If I ask it to think it might take up to 20-30 seconds for deep learning.

On the database side, I'd push back on SQLite. For this, Postgres with pgvector is the better solution. I've got around 650K embedded chunks sitting next to my mail, messages, documents and data models in a proper relational schema. One SQL query does vector search, full-text search, and filters by source, person and date with real joins. It handles an overnight embedding job, the chat front end and tools like NocoDB and Metabase hitting it at the same time, and with an Oracle background it's home turf for me. SQLite + sqlite-vec is great for a single-file project, but at this size and with that many things connected, Postgres is the right tool. I have many other data sets. I’m planning on integrating and I familiar and a tool the ground up to handle not just for the vectors, but for the relational model itself.

1

u/juturna101 1d ago

What is your „personal ai“ app and how does it work?

2

u/AuditMind 1d ago

Basically, you give a local LLM a vast amount of personal data and hope it retrieves the right information at the right time.

As a data architect, OP probably knows that storing and indexing information is the easier part. Knowing when and why to retrieve it is where things get interesting.

1

u/Lopsided-Pop3833 1d ago

I completely agree. The fun part was the database, a model in the database and working through the vectors and the vector index. Most of my struggles come trying to control when the AI should not think and only use my data and create situations where I want the AI to think based on my data alone, further when do I let the models fully reason a new solution using my prior work, but determining its own path forward controlling each of those outcomes difficult. I’ve done this by creating test cases and running them through and checking the validity of the outcomes. I also validate some of the results that are not personal against Claude for a confirmation that my python and my models are producing the results I expect.

1

u/AuditMind 1d ago

Have you tried keeping the model and data identical but changing the framing of the prompt? I'd be curious how much of the validated outcome survives.

1

u/Lopsided-Pop3833 1d ago edited 1d ago

Yes, that’s what I’ve been doing. One of the reasons I know some people mentioned I’m using outdated models. The models I am using I trust enough. So then I run on different prompts with different using python scripts.. I adjust my Python scripts depending on the responses I get. Tuning it to return the results I’m looking for again. This is only for my meaning the AI should search my data not use its own reasoning outside and not think.. basically I use 25 prompts. From what do I think of my friend Blaine? To based on the data all I produced for such such a company in 2015 can you compare that to a data model? I built in 2025 for a different company. And so forth. Since I obviously know the data and I have the model produce sources I can validate how accurate the are. Every time I embedded a new data source, I re- redo test with additional questions for the new data set and confirm that the model can integrate the new data in with the previous embedding. I guess to me letting the model reason is the easy part. Forcing it to consider only my this has been the difficult part. Further getting the model to reason only based on my information when I do think also difficult

1

u/AlthistNewUse 1d ago

1

u/RemindMeBot 1d ago

I will be messaging you in 1 day on 2026-11-30 10:58:16 UTC to remind you of this link

CLICK THIS LINK to send a PM to also be reminded and to reduce spam.

Parent commenter can delete this message to hide from others.


InfoCustomYour RemindersFeedback

1

u/aciokkan 3h ago

Oh, wow. You're actually running one of those mini PCs with llpddr 128gb and max395+ ai? There's few variants out there.

How much can you do on it? I take it you have made your own local setup, reranker and the usage of any of those models is ad-hoc as needed or do you swap manually?

Any performance feedback, you can / want to share? How many tok/s?

I want to build one but unsure if I want to repurpose one of my servers with ddr4 and chuck a GPU inside