Ask HN: How do I train a custom LLM/ChatGPT on my own documents in Dec 2023?
21–30 of 247 posts
Re: Ask HN: How do I train a custom LLM/ChatGPT on my own documents in Dec 2023?
#22AWS 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…
Is there a limit? Could I create a knowledge base with 10,000 documents? 100k? 1M?
Re: Ask HN: How do I train a custom LLM/ChatGPT on my own documents in Dec 2023?
#23Earlier quoted context omitted.
Is there a limit? Could I create a knowledge base with 10,000 documents? 100k? 1M?
https://docs.aws.amazon.com/bedrock/latest/userguide/quotas....
Re: Ask HN: How do I train a custom LLM/ChatGPT on my own documents in Dec 2023?
#24AWS 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…
Is there a limit? Could I create a knowledge base with 10,000 documents? 100k? 1M?
AWS OpenSearch has fairly good integration so you could look up costs for that. It’s not the cheapest AWS service to run and not exactly serverless as you pay by the hour.
Re: Ask HN: How do I train a custom LLM/ChatGPT on my own documents in Dec 2023?
#25Re: Ask HN: How do I train a custom LLM/ChatGPT on my own documents in Dec 2023?
#26Slightly off topic but is there recommended advice on how to tune / train not for document retrieval but for consistent JSON output with specific enums? i.e given a text, always return back a certain set of fields. For some keys here is the possible set of enums etc. One shot prompting does work but curious how others approach this if you have training data on hand.
Re: Ask HN: How do I train a custom LLM/ChatGPT on my own documents in Dec 2023?
#27You 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?
Re: Ask HN: How do I train a custom LLM/ChatGPT on my own documents in Dec 2023?
#28Re: Ask HN: How do I train a custom LLM/ChatGPT on my own documents in Dec 2023?
#29You 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.
LlamaIndex is pretty good.
Re: Ask HN: How do I train a custom LLM/ChatGPT on my own documents in Dec 2023?
#30Slightly off topic but is there recommended advice on how to tune / train not for document retrieval but for consistent JSON output with specific enums? i.e given a text, always return back a certain set of fields. For some keys here is the possible set of enums etc. One shot prompting does work but curious how others approach this if you have training data on hand.
[0]: https://github.com/outlines-dev/outlines [1]: https://github.com/1rgs/jsonformer