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…
What is RAG? That's hard to search for
Ask HN: How do I train a custom LLM/ChatGPT on my own documents in Dec 2023?
51–60 of 247 posts
Re: Ask HN: How do I train a custom LLM/ChatGPT on my own documents in Dec 2023?
#52Re: Ask HN: How do I train a custom LLM/ChatGPT on my own documents in Dec 2023?
#53Earlier quoted context omitted.
Is Llamaindex + hosted model on Azure OpenAI Services still the best option?
There's Azure AI studio which is kinda like AWS bedrock. It's not bad, but for max control and versatility i'd start out rolling my own w/ for example llamaindex+azure-branded openai like you say.
Likely I misunderstood about how RAG works with Azure AI Studio, so sorry in advance
Re: Ask HN: How do I train a custom LLM/ChatGPT on my own documents in Dec 2023?
#54Earlier quoted context omitted.
Another question, which one is preferred, LlamaIndex or Langchain, for RAG? Thanks in advance for your insights.
You basically don't use langchain for anything besides 30 minute demos that you copied from someone else's github. It has a completely spaghettified API, is not performant, and forces you into excessive mental contortions to reason about otherwise simple tasks. LlamaIndex is pretty good.
Re: Ask HN: How do I train a custom LLM/ChatGPT on my own documents in Dec 2023?
#55Did this in the summer via RAG. One thing we realised is that pure vector embeddings retrieval doesn't work so well for docs with acronyms (which let's face it all businesses have). Created a hybrid solution using embeddings and BM25 which is traditional ranking tool. This hybrid gave best results.
Re: Ask HN: How do I train a custom LLM/ChatGPT on my own documents in Dec 2023?
#56Re: Ask HN: How do I train a custom LLM/ChatGPT on my own documents in Dec 2023?
#57Earlier quoted context omitted.
There's Azure AI studio which is kinda like AWS bedrock. It's not bad, but for max control and versatility i'd start out rolling my own w/ for example llamaindex+azure-branded openai like you say.
Thanks. Is it possible to have persistent RAG in Azure AI Studio though? I found only a preview version of uploading files that are available to model, but when using this model through API, this uploaded data is not available to the model Likely I misunderstood about how RAG works with Azure AI Studio, so sorry in advance
Check it out, specifically steps 3 and 4. As with almost every Microsoft CLI tool and SDK, it's clunky... and you can tell everyone is rushing this AI shit out as fast as they can to stay in the game. But what you want should be doable.
Re: Ask HN: How do I train a custom LLM/ChatGPT on my own documents in Dec 2023?
#58I've tried out working with custom documents in two different ways for different types of data:
* Once using LlamaIndex + Chroma[0] to transcribe and then conversationally query video contents (using GPT 3.5 or 4 as the backing LLM).
* Once using GPT Plus, uploading long-form PDFs of my own fiction books to the GPT's knowledge base. I use this to help me remember character names and timelines (not always accurate, so results need to be treated with caution) and help brainstorm story or tech ideas for my world.
Both work for what I'm using them for. I feel like option one is more customizable and easier to tweak for the types of results I would want, if I have concrete requirements about what kind of output I'm looking for. Option two has a lower barrier to entry and is just a little lower effort (no need to run your own app).
For the next iteration, I'd like to try out AWS Bedrock and compare the workflow and results.
[0] https://www.daily.co/blog/search-your-video-content-library-...
Re: Ask HN: How do I train a custom LLM/ChatGPT on my own documents in Dec 2023?
#59Early next year I’m preparing something similar for my team, so I’ll surely look into the useful links/recommendations posted by fellow HNers :-)
Re: Ask HN: How do I train a custom LLM/ChatGPT on my own documents in Dec 2023?
#60You 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…
Another question, which one is preferred, LlamaIndex or Langchain, for RAG? Thanks in advance for your insights.
Disclaimer: I work at deepset