AI Assistant

An AI Assistant is a conversational component that can understand and respond to natural language. It can be used to automate tasks, answer questions, and provide information. LinGoose offers an AI Assistant that is built on top of the Thread, LLM and RAG components. It uses the RAG model to retrieve relevant documents and then uses a language model to generate responses based on the retrieved documents.

Using AI Assistant

LinGoose assistant can optionally be configured with a RAG model and a language model.

myAssistant := assistant.New(
            thread.NewTextContent("what is the purpose of NATO?"),

err = myAssistant.Run(context.Background())
if err != nil {


We can define the LinGoose Assistant as a Thread runner with an optional RAG component that will help to produce the response.