You don't train on documents. There are many startups claiming that but they are deliberately using a misleading term because they know that's what people are searching for. You still do RAG. Llamaindex is still the best option that I know of. Most of the startups that have working products are likely using llamaindex. All of the ones that say they are training on documents are actually using RAG. Test it out. If it…
Are there public examples of working products using RAG, compared with fine-tuning or training from scratch?
Ask HN: How do I train a custom LLM/ChatGPT on my own documents in Dec 2023?
111–120 of 247 posts
Re: Ask HN: How do I train a custom LLM/ChatGPT on my own documents in Dec 2023?
#112Re: Ask HN: How do I train a custom LLM/ChatGPT on my own documents in Dec 2023?
#113Earlier quoted context omitted.
What is RAG? That's hard to search for
Retrieval Augmented Generation - in brief, using some kind of search to find relevant documents to the user’s question (often vector DB search, which can search by “meaning”, by also other forms of more traditional search), then injecting those into the prompt to the LLM alongside the question, so it hopefully has facts to refer to (and its “generation” can be “augmented” by documents you’ve “retrieved”, I guess!)
Then you start making more specific queries? How old is he, how tall is he, etc.
And the game is you run a “questionnaire AI” that can look at a blob of text, and you ask it “what kind of questions might this paragraph answer”, and then turn around and feed those questions and text back into the system.
Is that a 30,000 foot view really of how this works?
Re: Ask HN: How do I train a custom LLM/ChatGPT on my own documents in Dec 2023?
#114Re: Ask HN: How do I train a custom LLM/ChatGPT on my own documents in Dec 2023?
#115I think the answer depends on how many documents you have. To think in terms of tokens (assuming 750-1000 tokens is a page), if you have a good estimate of number of pages you want to query on, you can decide on the approach. Three popular approaches: 1. RAG: Most popular and works really well on smaller datasets. It is limited by number of vectors/embeddings. A typical embedding could be of 1000 tokens in size. Llam…
> I talked to a firm with 70GB worth of data. No way a RAG pipeline would give them results. They are struggling to get LLMs to work for them. Wow so RAG is basically a toy for demos and low effort MVPs. 70GB is tiny, it’d barely qualify as “big data” 20 years ago. Is anyone trying more advanced stuff like knowledge graph augmented generation to try to expand on that?
Re: Ask HN: How do I train a custom LLM/ChatGPT on my own documents in Dec 2023?
#116Earlier quoted context omitted.
That’s probably unrealistic at this time
It's doable with Amazon Q, but it's in Preview phase now. https://aws.amazon.com/q/
Re: Ask HN: How do I train a custom LLM/ChatGPT on my own documents in Dec 2023?
#117Run https://github.com/imartinez/privateGPT Then make ingest /path/to/folder/with/files Then chat to the LLM. Done. Docs: https://docs.privategpt.dev/overview/welcome/quickstart
Re: Ask HN: How do I train a custom LLM/ChatGPT on my own documents in Dec 2023?
#118Re: Ask HN: How do I train a custom LLM/ChatGPT on my own documents in Dec 2023?
#119You don't train on documents. There are many startups claiming that but they are deliberately using a misleading term because they know that's what people are searching for. You still do RAG. Llamaindex is still the best option that I know of. Most of the startups that have working products are likely using llamaindex. All of the ones that say they are training on documents are actually using RAG. Test it out. If it…
What is RAG? That's hard to search for
Re: Ask HN: How do I train a custom LLM/ChatGPT on my own documents in Dec 2023?
#120GPT-4 Turbo has a 128K (~300 pages) context window, which probably handles a lot of use cases which might have previously needed extra training/refinement.
The chatgtp app says it has a context window of 4096 tokens (gpt 4). How do I get access to turbo?
ChatGPT-4 is powered by GPT-4 Turbo at this point, so it has a context window that is much larger than 4096 tokens, whether it knows it or not. The ChatGPT application may limit the context size from reaching the full 128k to keep costs down, and it will be using some of the context window for its own purposes, but it's certainly able to maintain context across more than 4096 tokens of conversation.