Configuring a RAG Data Source
RAG (Retrieval-Augmented Generation) lets you feed your own documents into conversations. When RAG is enabled, Liteskill searches your document collections for relevant context and includes it with your messages to the LLM.
Prerequisites
- Liteskill running (see Initial Setup)
- An LLM provider configured with an embedding model
- Documents you want to make searchable
Create a Wiki Space
- Navigate to
Wikiin the sidebar (or go to/wiki). - Click “New Space”.
- Give it a name (e.g. “Engineering Docs”).
Add Documents
You can add nested documents in this page, called “children”.
External Connectors
For bulk document sync, configure an external data source:
- Navigate to
Sourcesand click “Add Source”. - Select a source type:
- Google Drive — Service account JSON + folder ID
- SharePoint — Tenant ID, site URL, client credentials
- Confluence — Base URL, username, API token, space key
- Jira — Base URL, username, API token, project key
- GitHub — Personal access token, repository
- GitLab — Personal access token, project path
- Fill in the credentials and click Save.
- Click “Sync” to pull documents from the source.
Using RAG in Conversations
Once your documents are embedded, RAG context is automatically injected into conversations:
- Start a new conversation.
- Ask a question related to your documents.
- Liteskill embeds your query, searches across your accessible collections, and includes the most relevant chunks as context for the LLM.
- RAG sources are displayed alongside the assistant’s response for transparency.
Wiki Integration
Wiki pages are automatically indexed for RAG. When you create or edit a wiki page, a background job updates the corresponding RAG document and re-embeds its chunks. See the Wiki documentation for details.