- cross-posted to:
- [email protected]
- cross-posted to:
- [email protected]
Hi, I’ve been playing with some AI models on my machine in GPT4ALL software and it have this thing called “LocalDocs”.
It looks like it is just a RAG for AI and simple structured text document is more that enough for casual usage. Document like this was more than enough for Llama 3.x to be aware of dates and current state:
{
"Today": "12-Dec-2024",
"Tomorrow": "13-Dec-2024",
"Deadline": "23-Dec-2024",
"Tasks Left": [
{"Task Name": "Get groceries"},
{"Task Name": "Buy presents"}
]
}
Can perchance have something like that or is it up to generator creator to setup RAG?
In my experience, text AIs tend to ignore or forget information very quickly. Before setting RAG up I was constantly correcting AI about everything, but after getting RAG, AI worked flawlessly.
Also, RAGs seems to not increase context size. It looks like AI just uses it during generation and then forgets, so context is increased only by AIs reply.
To sum up, I’ve found this thing very useful, it will be super helpful for all text generators, especially for generators like where AI must be aware of some persistent context like world rules, story characters, etc. Here’s couple of examples:
- https://perchance.org/ai-character-chat
- https://perchance.org/ai-story-generator
- https://perchance.org/ai-generated-hierarchical-world
But all generator authors and users will benefit from this.
Note: If decided to implement, please don’t make it as a file upload. This is how RAG is implemented in LM Studio and it is really annoying to delete previous document and upload new one. Live editor is significantly better.
Sounds like it’s basically reminding the AI of some data each time a prompt is sent to it. What I do is just put it in the prompt, and it seems to work fine.
Those generators you listed all do the same, reminding the AI of things it needs to know about, but are pretty complex and have a lot to send, most likely. You can make your own Text AI pretty easily, and send whatever you like with the prompt. Maybe try that.
I noticed from my tries that RAGs do not affect AI output as much. When I put text into prompt AI tends to quote from it or ignore what I said completely lol. RAGs are more like telling AI: “here’s a document/documents that you have to look through every time you generate output” and it just does it