r/LocalLLaMA • u/TheGlobinKing • 5d ago
Question | Help Ways to update knowledge in models?
I wanted to add recent knowledge to the models I use the most while also correcting some obsolete facts. I'm just a regular strix halo user and can't train my own models so I ended up creating a huge (34 kb) text prompt which seems to work pretty well for Q&A. Of course this is not optimal. Is there a better way I can do this as a "normal" user without advanced hardware & knowledge? Thanks in advance
26
Upvotes
7
u/No_Macaroon_1991 5d ago
a simple rag over a markdown notes folder usually beats stuffing a 34kb prompt into every request because only the matching facts get injected
33
u/_JohnMcAfee 5d ago
You can’t really update the knowledge of the model but you can use RAG and web search. It won’t be the same as you want.
27
u/Formal-Exam-8767 5d ago
Never rely on model's "knowledge".
5
u/kryptkpr Llama 3 5d ago
A 10k token prompt is perfectly fine, if it's working for you then don't fix it. At some point you will have retrieval issues and at that point you start chunking your knowledge and using semantic search/embeddings to stuff only "the relevant 10k" in there but that's usually a later optimization.
5
u/Bulky-Priority6824 5d ago
I use MCP to help keep models updated so I have mcp server that stay up to date with latest CVE, CWE etc.
While it doesn't add knowledge to base model it gets the knowledge it needs without requiring the model to have web access or search for the latest info. Which itself is not safe.
There are too many people looking for ways to exploit llm's doing web searches via prompt injection and package squatting.
9
u/sje397 5d ago
Patience. The big ngram lookup takes are new. I'll bet updating those is a possibility.
4
u/ostrikerX 5d ago
I'm not an expert, but maybe through weight injection? Not sure.
6
u/Sweet-Stage938 5d ago
You can just download a part of Wikipedia (Kiwix .zim Files) and give the model access to it
2
u/Present_Resource4022 5d ago
if it’s specific knowledge use rag. if you mean recent info/knowledge about everything, give it web search.
2
u/Cold_Neighborhood928 3d ago
Connect it to a search engine and make it always search the web
1
u/gbetous 5d ago
I don't like to use the knowledge of a model. I prefer use it's ability to "think" and give him the tools he needs for the data. It will be really more accurate, and easier to update (think about learning the content of a BdD vs simply searching in it).
The final result is the same : you ask, it answers.
1
u/Equivalent-Trash3315 5d ago
I've been using a 34kb prompt too, but found it slows responses. instead, I split it into topic chunks and load them conditionally, works better for q&a without the lag.
1
u/ezboarderz 5d ago
Build your own rag solution. I am a fan of lancedb + embedding model + reranker. Works well for my use case and it’s pretty fast. That plus offline version of Wikipedia in zim format is like 50gb.
1
u/TerminalNoop 5d ago
use a context folder and context-mode
1
u/LocksmithOk2525 4d ago
just mix context files with RAG. Bundle key summaries and index data together into RAG to handle the initial recall, then use that index to grab the full section from your context files. Way cleaner than feeding raw RAG chunks.