by FengZhenfei
Ontology-Augmented Generation for AI agents.
# Add to your Claude Code skills
git clone https://github.com/FengZhenfei/carrelGuides for using ai agents skills like carrel.
Last scanned: 10/12/2026
{
"issues": [],
"status": "PASSED",
"scannedAt": "2026-10-12T11:41:20.608Z",
"npmAuditRan": true,
"pipAuditRan": true,
"promptInjectionRan": true
}See how carrel compares with popular alternatives.
carrel is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by FengZhenfei. Ontology-Augmented Generation for AI agents. It has 643 GitHub stars.
Yes. carrel passed SkillsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.
Clone the repository with "git clone https://github.com/FengZhenfei/carrel" and add it to your Claude Code skills directory (see the Installation section above).
carrel is primarily written in Python. It is open-source under FengZhenfei on GitHub, so you can review or fork the full source.
Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh carrel against similar tools.
No comments yet. Be the first to share your thoughts!
From $49 · 30 days · terms & refunds
⚠️ Third-Party Software Notice
This skill is third-party open-source software developed and hosted independently on GitHub. SkillsLLM lists this project for discovery and does not control or maintain the underlying repository.
Any security checks, ratings, or warnings displayed by SkillsLLM are automated and limited in scope. They do not constitute a security certification or guarantee that the software is safe, error-free, or free from malicious code, vulnerabilities, compromised dependencies, or prompt-injection risks.
Review the source code, permissions, dependencies, and configuration before installing or running any third-party skill. Use is at your own risk. To the maximum extent permitted by applicable law, SkillsLLM is not liable for losses arising from third-party software.
Automated security scan — not a certification.
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 · Evaluation · Design · Quick start · Agent integration · Documentation
0.3.1: Release notes and upgrade steps.
The 0.3.0 evaluation compared retrieval strategies on 176 documents and 99 questions. With the graph enabled, dual reranking increased image hit@5 from 4/8 to 7/8. With text reranking, enabling the graph increased complete source coverage for cross-document questions from 5/10 to 8/10.
The full pipeline achieved 88.46% hit@5 and 0.7327 MRR@12 on 78 ranking questions. See the evaluation report for model configurations, comparison results, and latency.
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.
Carrel provides general knowledge storage, retrieval, and evidence interfaces. Entities, relationships, and facts retain sources, time information, and conflicts so agents can check and use them alongside the original documents. The Agent Loop plugin is in development and not yet implemented. It is intended to use these interfaces to continuously learn an enterprise ontology, seek clarification from relevant people, and maintain correction rules.
Routine graph updates merge new and changed content incrementally. Configured time or change thresholds trigger full rebuilds, balancing update cost with overall consistency. Parsing, indexing, and graph construction are maintained separately: rebuilding a graph can reuse parsed content and chunks while preserving RAG indexes.
| 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 |
Example setup describes the author's installation on an NVIDIA DGX Spark and some lighter alternatives.
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.
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.
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 with its Max Input 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.
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.
| 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 |
| Retrieval evaluation (0.3.0) | Models, test conditions, graph and reranking comparisons, and latency |
| Operations and development | Console, CLI, scheduling, troubleshooting, and tests |
| Example setup | The author's installation on a DGX Spark, a Mac that syncs the documents, and lighter alternatives |
| Docker Compose | Infrastructure, model weights, and container settings |
| systemd | Linux services and timers |
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.
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.