carrel
Ontology-Augmented Generation for AI agents.
Install / Use
npx skills add FengZhenfei/carrelInstalls into whichever agent you are using.
SKILL.md
Installable skill definition
Quality Score
Category
Content & MediaSupported Platforms
Tags
Our assessment of carrel
carrel scores 77/100 on our quality scale, 1047th of 1,176 Content & Media skills we index.
Its SKILL.md is 6.9 KB long, well organised into 12 sections with 3 code examples: a thorough specification that gives an agent plenty to work with.
It has 42 GitHub stars, so there is little community track record yet; judge it on its content.
Maintenance, license and trust
- The repository was last updated 2 days ago, so carrel is actively maintained.
- It is released under the MIT license, a permissive license that allows use, modification and commercial use with attribution.
- Its trust signals score 92/100, with 1 caution from licensing, adoption, age or documentation. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.
Safety scan
No issues foundOur scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands.
Automated pattern scan on 2026-10-10. It catches known dangerous patterns, not every risk — read a skill before letting an agent act on it.
carrel compared with similar skills
All 4 of these similar skills score higher than carrel; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| carrel (this skill)by FengZhenfei | 77 | 42 | 2d ago | SKILL.md |
| siyuanby siyuan-note | 100 | 46.7k | today | MCP Server |
| algorithmic-artby anthropics | 100 | 177.9k | 17d ago | SKILL.md |
| pptxby anthropics | 100 | 177.9k | 17d ago | SKILL.md |
| designby nextlevelbuilder | 100 | 133.6k | 7d ago | SKILL.md |
Frequently asked questions
- How do I install carrel?
- Run
npx skills add FengZhenfei/carrel. The install tabs above show the steps for each supported agent. - Which AI agents does carrel work with?
- It is written for Claude Code and OpenAI Codex, as a SKILL.md file. Other agents that read the same format can often use it too.
- Is carrel safe to use?
- Our scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. It is MIT-licensed and scores 92/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is carrel still maintained?
- The repository was last updated 2 days ago, so carrel is actively maintained.
Skill content
View source on GitHubCarrel
English | 中文
Ontology-Augmented Generation for AI agents.
Carrel is a self-hosted knowledge base for AI agents. It automates document parsing, indexing, and retrieval, with optional knowledge graphs. Agents use its API to retrieve source passages, images, and related facts, then generate their own answers.
Use it to give an agent access to a collection of product documents, research, contracts, meeting notes, or other files that change over time. A web console manages knowledge bases, models, and processing tasks. A bundled search skill connects agents such as Claude Code and Codex to the retrieval service.
Features · Quick start · Agent integration · Documentation
Features
- Document parsing: PDF, Word, PowerPoint, spreadsheets, images, HTML, Markdown, and source code, with processing suited to each format.
- Automatic updates: scan for file changes, update indexes, and maintain enabled knowledge graphs through scheduled tasks.
- Hybrid retrieval: combine vector, keyword, graph, and visual search, with automatic knowledge-base selection and optional reranking.
- Knowledge graphs: extract entity types, relationships, and facts from your documents; retain sources, time information, and conflict indicators.
- Agent access: search through an API, fetch surrounding text or original images, and follow graph relationships when more evidence is needed.
- Web console: configure processing, inspect chunks and graphs, track tasks, and manage services. Available in English and Chinese.
How it works
flowchart LR
D[Document folders] --> P[Parse and chunk]
P --> I[Vector and keyword indexes]
P --> G[Optional knowledge graphs]
I --> R[Retrieval API]
G --> R
R --> A[AI agent]
A -->|Follow-up queries| R
Carrel uses MinerU and native parsers for ingestion, Qdrant for vectors, OpenSearch for keywords, and Neo4j for graph queries. SQLite tracks files and tasks. Model services can run locally or through compatible hosted endpoints. See Architecture for the pipeline and retrieval design.
Requirements
- Python 3.12+ and Docker 25+ with Compose v2.
- A text embedding endpoint; a vision-language endpoint for image descriptions; and a chat model for knowledge graph construction, if enabled.
- An NVIDIA GPU and NVIDIA Container Toolkit to run the optional local model stack. CPU parsing is also supported. Resource needs depend on the models and collection size.
| Platform | Deployment | |---|---| | Linux with NVIDIA GPU | GPU parsing and optional local model services; systemd scheduling | | Linux without GPU | CPU parsing; connect to model services on another host or a provider | | macOS with Docker Desktop | CPU containers and native Python services; arrange scheduling separately | | Windows | Use WSL2; native Windows deployment is not supported |
Quick start
1. Deploy the services
git clone https://github.com/FengZhenfei/carrel.git
cd carrel
./deploy.sh
The script detects the host, starts the infrastructure, installs the Python app, and creates configuration files. On Linux with user systemd available, it also enables services and scheduled tasks. Other hosts receive manual startup commands. First startup downloads the parser models.
2. Configure model endpoints
Edit config/knowledge-base.env to set the embedding and vision model URLs,
model names, and API keys. The initial URLs point to local model servers;
starting those servers requires the optional local model setup below.
To use the bundled local models, prepare their weights and deploy with
./deploy.sh --with-local-models. See Model configuration
and the local model setup.
Restart running application services after changing their environment settings.
3. Add documents
Open the console at http://127.0.0.1:9800. Put documents in
runtime/mirror/<folder>/, then enable that folder in the console. Each
enabled folder becomes a knowledge base; scheduled tasks process its files.
For a knowledge graph, register a chat model in the console, select it in the knowledge-base settings, and enable graph building. Check service health and task progress in the console before making your first query.
Agent integration
Install the bundled carrel-search skill in your agent, or call the API directly:
curl -sS http://127.0.0.1:9810/search \
-H 'Content-Type: application/json' \
-d '{"question": "What are the delivery and acceptance requirements?", "top_k": 8}'
If you set KB_SEARCH_TOKEN, add an Authorization: Bearer … header.
For a remote agent,
configure CARREL_SEARCH_BASE_URL and CARREL_SEARCH_TOKEN in its environment.
Responses include source passages and, when available, graph evidence and image information. Agents can request more context, inspect images, and follow relationships before answering. See Retrieval and API for authentication, response status, and citations.
Documentation
| Guide | Contents | |---|---| | Configuration | Model endpoints, folders, per-base settings, and access control | | Architecture | Parsing, graph construction, retrieval, and code layout | | Retrieval and API | Agent setup, endpoints, evidence status, and evaluation | | Operations and development | Console, CLI, scheduling, troubleshooting, and tests | | Docker Compose | Infrastructure, model weights, and container settings | | systemd | Linux services and timers |
Data and access
The console binds to localhost by default. For LAN access, set both
KB_WEB_HOST and KB_WEB_TOKEN. Configure KB_SEARCH_TOKEN before using
protected search endpoints remotely. The stores and model servers listen on
loopback only, which keeps other machines out but not web pages opened in a
browser on the same host, so avoid browsing the web there.
Documents and images are sent to the model endpoints you configure. Local endpoints keep model processing within your own infrastructure. See Access and data handling.
License
Carrel is licensed under MIT. Dependencies and model weights have
their own licenses; see Third-party notices. Original-resolution
PDF image retrieval uses an optional dependency installed with
./deploy.sh --with-pdf-images; without it, retrieval uses cached images.
Related Skills
siyuan
46.7kAn open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
algorithmic-art
177.9kCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems.
pptx
177.9kUse this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or presentations; reading, parsing, or extracting text from any .pptx or .potx file (even if the extracted content will be used elsewhere, like in an em…
design
133.6kComprehensive design skill: brand identity, design tokens, UI styling, logo generation (55 styles, Gemini, Atlas Cloud, or MuAPI AI), corporate identity program (50 deliverables, CIP mockups), HTML presentations (Chart.js), banner design (22 styles, social/ads/web/print), icon design (15 styles, SVG…
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.
