Lurker News
There is a 5 month old thread [1] on this, but it might be already outdated.

What is the best approach for feeding custom set of documents to LLM and get non-halucinating and decent result in Dec 2023?
UPD: The question is generally about how to "teach" LLM answer questions using your set of documents (not necessarily train your own, so approaches like RAG counts)
[1] https://news.ycombinator.com/item?id=36832572

Comments (237) 63 threads

Earlier comments
quickthrower21 reply#
Easiest is OpenAI assistants api. Use the playground and it’s a no code experience.
altdataseller1 reply#
How do you upload the documents? Via the API or do you have to upload them beforehand through the UI?
footlose_3815#
You upload in the GUI. It's available on free accounts as well, as long as you use GPT 3.5. There's a dropdown. It's super-convenient.

I uploaded an AWS study guide, and I'm asking for example questions for my testing. As far as I can see, I can tell no way to determine if it's pulling from the guide, or if it's from GPT's data.

rplp#
My approach was not to train the model on the documents, as others mentioned.

I built a vector database from the documents, and I query the questions against it, which is very fast. This is the RAG (retrival augmented generation) step others mentioned.
The results, which are literal extracts from the documents, but short ones, are given to the model, which produces an answer. This is the slow part.
I used many of Langchain's tools to manage the whole process.
You can try it on Supawiki, with one of the featured wikis. Then, if you are ok with a solution that hosts your documents for you, you can upload them and use our solution.

joeyrobert#
Gpt4all is a local desktop app with a Python API that can be trained on your documents: https://gpt4all.io/

Load more comments