What is Retrieval Augmented Generation (RAG)?
Large Language Models (LLMs) are trained on enormous amounts of text data. Based on this data, the LLM will identify patterns and try to replicate them during its own text generation. When producing an output, LLMs start from a user-written prompt, then algorithmically assigns probabilities to “tokens” or words that most likely succeed (follow after) the prompt based on patterns observed within its original training data. This is why OpenAI named a number of its API endpoints “Chat Completions” - the model tries to “complete” the user’s input query.To better understand what “tokens” are in the context of LLMs, please refer to
the following article from OpenAI’s own documentation:
https://help.openai.com/en/articles/4936856-what-are-tokens-and-how-to-count-them
The following types of queries may not work as well:
If your use case demands it, our multi-Agent architecture and function-calling support may help address some of these complexities,
but they require advanced configuration on your part. Please refer to our other related articles for best practices when deploying
multi-agent chatbots with function-calling capabilities.
There may be alternative ways for you to optimize your chatbot’s performance by improving the quality of your training data.
To learn how, please check out Best practices for preparing training data.
