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
tesdinger2 replies#
You can not get a non-hallucinating AI in 2023.
epolanski#
Could you expand on the reasons and possibly relevant papers?
ParetoOptimal#
It seems like there's not much point to LLM+RAG over a good local search engine.

At least, that's what I've rapidly been concluding.
I'm still holding out a bit of hope for there being more though.

yu3zhou42 replies#
And what’s the correct answer in December 2023 if one wants to narrow down only to tools and services provided on Azure?
yu3zhou41 reply#
Is Llamaindex + hosted model on Azure OpenAI Services still the best option?
isoprophlex1 reply#
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.
yu3zhou44 replies#
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

Continue this thread — 4 replies

SgtBastard1 reply#
https://github.com/microsoft/semantic-kernel

Semantic Kernel is MS's response to LangChain and LlamaIndex - available for .NET, python and Java.
Using their Memory support (using Azure Cognitive Search), it gives a powerful RAG quickstart, which you can combined with Azure Document Intelligence to chunk your source documentation into memories that your foundational models can later use.
(Disclaimer: Its only very recently gone 1.0 and is still likely to undergo API change as the LLM domain itself is still rapidly evolving - I've substantially forked the project for my own needs, but I hope that as it stabilises, I can contribute PRs for some of my more advanced use cases).

yu3zhou4#
Thanks for the link and good luck with your contributions to this project
noiv2 replies#
How you do RAG with embeddings NOT in English? I mean there are a few thousand more languages.
dbish1 reply#
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 preprocessing you need to do like word or sentence breaking for languages with compound words (German), agglutination (Turkish), etc.
noiv1 reply#
Well, thanks, how do they deal with technical terms never seen during training?
dbish#
Unknown words can’t really be handled other than mapping to a placeholder “unknown” vector in most cases. This can be dealt with in a variety of ways, text preprocessing being one of them
htrp#
Embeddings are not just english based ....

Load more comments