Wiki source code of LLM Flavor

Last modified by superadmin on 2026/11/23 22:53

Show last authors
1 The LLM Flavor is the [[flavor>>doc:documentation.xs.user.flavors.WebHome]] of the [[LLM Application>>doc:extensions:Extension.LLM.WebHome]]. It sets up the main wiki with the applications of the XWiki Standard Flavor plus every extension of the LLM Application, and its offline package lets the [[Distribution Wizard>>doc:documentation.xs.admin.distribution-wizard.WebHome]] install it without downloading anything.
2
3 {{plantuml}}
4 @startuml
5
6 skinparam componentStyle rectangle
7
8 component "**LLM Flavor**" as FL
9 component "Applications of the\nXWiki Standard Flavor" as STD
10 component "Index for the\nLLM Application" as IDX
11 component "LLM Application\nmodels, chat and prompts" as APP
12 component "Token-based authentication\nfor the LLM Application" as AUTH
13 component "MCP Server" as MCP
14
15 FL --> STD
16 FL --> IDX
17 IDX --> APP
18 FL --> AUTH
19 FL --> MCP
20 @enduml
21 {{/plantuml}}
22
23 A wiki set up with another flavor has none of these extensions. Each one can then be installed on its own from the "Extensions" administration, as [[Install the MCP Server>>doc:documentation.extensions.admin.llm.mcp-server.install.WebHome]] does for the MCP Server.
24
25 == Offline package ==
26
27 The offline package is a XIP file: an extension repository holding the flavor and every extension it depends on, except those already in the XWiki WAR. Unpacked into the ##extension/repository## folder of the permanent directory, it lets the Distribution Wizard install the flavor from that local copy, the same way the [[XIP Package Installation>>doc:documentation.xs.admin.installation.install-offline.xip-package.WebHome]] works for the Standard Flavor. Each release publishes it in the XWiki Maven repository.
28
29 {{code language="none"}}
30 https://maven.xwiki.org/releases/org/xwiki/contrib/llm/application-ai-llm-xip/<version>/application-ai-llm-xip-<version>.xip
31 {{/code}}
32
33 The flavor is not published on the Extensions wiki, so the Distribution Wizard lists it only where the distribution registers it as a known flavor. The Docker images of the LLM Application unpack the offline package and register the flavor this way; see the {{scm user="xwiki-contrib" project="ai-llm" branch="main" path="docker/README.md"}}Docker setup{{/scm}}.

Get Connected