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…
LlamaIndex can't do chunk-level metadata, only document-level metadata, so you can't put precise references to where materials the LLM synthesized answers from originated, e.g. HTML anchors. Just write your own RAG with Pinecone and OpenAI APIs directly.
Ask HN: How do I train a custom LLM/ChatGPT on my own documents in Dec 2023?
201–210 of 247 posts
Re: Ask HN: How do I train a custom LLM/ChatGPT on my own documents in Dec 2023?
#202You 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…
Re: Ask HN: How do I train a custom LLM/ChatGPT on my own documents in Dec 2023?
#203AWS Bedrock is fairly easy. You can do it in 5 or 6 clicks. You have to upload your documents to S3, create a “Knowledge Base” then sync your documents into a vector database like OpenSearch or PineCone. You are then good to go via their playground or the AWS API. I made a video here describing the process, check around 14 minutes in: https://ensembleanalytics.io/blog/introducing-bedrock-knowle... Bedrock is a decent…
Bedrock is cool, but I found it prohibitively expensive for hobbyists and small companies. On a first glance, it would cost me something like $ 5,000 per month for a simple trained model.
Re: Ask HN: How do I train a custom LLM/ChatGPT on my own documents in Dec 2023?
#204Re: Ask HN: How do I train a custom LLM/ChatGPT on my own documents in Dec 2023?
#205We have to add LLMs and MMMs (multi modal models) into all standard Linux distributions. A service will index all local files creating embedding connectors, this will be used to augment user prompts, and voila we can search for anything with natural language.
Why? This seems like a quick road to remote-execution-vuln-as-system-service.
> and voila we can search for anything with natural language.
What if your model keeps misunderstanding you?
Re: Ask HN: How do I train a custom LLM/ChatGPT on my own documents in Dec 2023?
#206I have a question for which I haven't found a definitive answer yet: is how can one effectively manage typos and Out-of-Vocabulary (OOV) words in RAG systems? For instance, if I search for a specific product name but accidentally mistype it, the resulting encoded vector might not be similar to the vector for the correctly spelled product name ?
In your example sum of embeddings for non-typo and typo version should have close cosine distance if it trained correctly.
Re: Ask HN: How do I train a custom LLM/ChatGPT on my own documents in Dec 2023?
#207Earlier quoted context omitted.
LlamaIndex can't do chunk-level metadata, only document-level metadata, so you can't put precise references to where materials the LLM synthesized answers from originated, e.g. HTML anchors. Just write your own RAG with Pinecone and OpenAI APIs directly.
LlamaIndex lets you attach metadata to Nodes which are basically chunks, although that fact is poorly documented! Will fix.
Re: Ask HN: How do I train a custom LLM/ChatGPT on my own documents in Dec 2023?
#208How you do RAG with embeddings NOT in English? I mean there are a few thousand more languages.
Just use your embeddings model of choice that works with your language, I believe Ada from openai is multilingual but I don’t know what languages it works well on, there are many embedding models out there, huggingface is your friend in this search. The output is just a vector and the rest of the system can basically stay the same. The only other thing that may need to change depending on language is any text preproc…
Re: Ask HN: How do I train a custom LLM/ChatGPT on my own documents in Dec 2023?
#209Earlier quoted context omitted.
Echoing others’ sentiments, I was frustrated with the bloat and obscurity of existing tools. This led me to start building Langroid with an agent-oriented paradigm 8 months ago https://github.com/langroid/langroid We have companies using it in production for various use-cases. They especially like our RAG and multi-agent orchestration. See my other comment for details.
what's the "groid"? isn't that a slur?
Re: Ask HN: How do I train a custom LLM/ChatGPT on my own documents in Dec 2023?
#210Earlier quoted context omitted.
"Toy" is the wrong word to describe it but it seems like another order of magnitude or two increase in context size will solve all their problems. On the other hand I've got a terabyte of text extracted from LibGen - let's say I can ignore the half that is fiction and I can dedupe the rest further by 80% - that's still 100gb. On top of that I've got 300gb of text extracted from court documents and that's just from Ca…
What are you trying to achieve with that dataset from LibGen? I kinda expect that GPT4 was trained on the data that is available on LibGen