Skip to main content

AI in an Agent

In the AI tab of an agent, you define which knowledge the AI Agent uses to answer questions. You can:

  • Connect Sources: websites, PDFs, Word and PowerPoint documents. See Sources.
  • Select Catalogs: curated article collections with maintained Q&A content. See Catalogs & Articles.
  • Connect Azure AI Search / SharePoint: if your knowledge already lives in a RAG index outside LoyJoy. See the Azure AI Search guide.
  • Connect MCP servers: up to three external knowledge sources via the Model Context Protocol.

The default implementation uses Retrieval Augmented Generation (RAG): for each user question, LoyJoy semantically searches for relevant chunks and passes them to the LLM as context.

How to enable AI in an agent

  1. Open the agent and switch to the AI tab.
  2. Activate AI if not yet enabled: LoyJoy automatically inserts an AI Agent module into the process.
  3. Select sources or catalogs, optionally add a folder filter.
  4. Configure the AI Agent module (number of chunks, reranking, question splitter): see AI Agent module.