TrainMyAI uses AI to answer questions based on a defined set of information, rather than the Internet as a whole.

It implements an approach called retrieval augmented generation (RAG), which combines the conversational ability of large language models with a given set of references. This ensures that answers are grounded in trusted sources, avoiding the well-known problem of hallucination in many AI chatbots.

Training

TrainMyAI is “trained” by uploading your content as text, web pages, PDFs, Word files or via the API. It splits that content into paragraphs and allows you to tweak, remove and disable those paragraphs as you wish.

TrainMyAI then uses an AI model to calculate the “embedding” for each paragraph. An embedding is a long list of numbers representing the meaning of some text. TrainMyAI stores these embeddings in a database on your server.

Optimization (optional)

TrainMyAI can use AI to create additional paragraphs from your content, which are optimized for RAG (retrieval augmented generation). For example, it can extract focused question-answer pairs, putting each pair in a separate paragraph.

The embeddings for the optimized paragraphs are calculated and stored in the same way as for the original content. If the original content changes (e.g. due to a web page update), the optimized content is automatically rewritten.

Answering

When a user asks a question, TrainMyAI calculates the question's embedding, then searches the embeddings database for those which are mathematically similar. These matches identify the paragraphs of your (original and/or optimized) content which are most relevant for the question.

TrainMyAI then prompts the AI language model to answer the user's question based only on these paragraphs, displaying the response in real-time. It can also show the references to the user, together with links back to the source materials.

Review

TrainMyAI allows users to rate their conversations with a simple star system. All conversations and ratings are stored for review by site administrators, who can browse conversations by user or time.

TrainMyAI also provides statistics on which reference paragraphs are most frequently used. This helps point out popular conversation topics and high impact paragraphs which can be improved or expanded on.

There's more!

TrainMyAI includes tons of other features – support for several language models, fine-grained user management, multiple knowledge bases, web page monitoring, WhatsApp integration, customization of AI parameters and HTML pages, and an API for integration into external applications. And it does all this on your own server, allowing you to maintain full control.

To get started with TrainMyAI, request a free cloud demo or install it yourself.