autorag-setup
Skill này làm gì
Skill này cài công cụ dòng lệnh AutoRAG, thiết lập mô hình tìm kiếm và thư mục, rồi sửa các chỉ mục cũ hoặc kiểm tra thất bại. Skill dành cho người muốn có một thủ thư AutoRAG riêng cho tài liệu cục bộ.
Khi nào nên dùng
- ✓Khi AutoRAG hoặc công cụ dòng lệnh của nó chưa được cài đặt.
- ✓Khi thiết lập AutoRAG hoặc các kiểm tra sức khỏe thất bại và cần sửa.
- ✓Khi bạn muốn thêm thư mục mới hoặc nguồn dữ liệu mới vào AutoRAG.
Liên kết skill
https://github.com/Marker-Inc-Korea/AutoRAG/blob/main/skills/autorag-setup/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Cài AutoRAG và trỏ nó vào thư mục Documents của tôi để tôi có thể tìm trong các tệp PDF.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent kiểm tra thiết lập hiện tại của bạn mà không hiển thị giá trị bí mật, cài công cụ nếu cần, rồi chạy thiết lập, lập chỉ mục và kiểm tra sức khỏe. Agent chỉ lưu tên của thông tin xác thực.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
AutoRAG setup
Use this skill when AutoRAG is unconfigured, the autorag CLI is missing, model
resolution fails, indexes are missing or stale, or the user wants to change the
document collection or datasources.
For model-free external-agent search, use autorag-lite-setup to configure
and register autorag-mcp; do not configure a search model or install a search
skill for Lite. This skill's model setup and CLI search apply to the full
librarian, not the Lite MCP server.
Safety
- Inspect only non-secret provider/model metadata and credential availability.
- Never print, copy, migrate, compare, or persist credential values. Store only
environment-variable names such as
apiKeyEnv. - Do not scan the whole filesystem or home directory without explicit approval.
- Setup, indexing, and refresh never move, rename, edit, or delete source documents. The librarian itself may organize files when the user asks it to.
- Do not index system trees, app bundles, caches, credential stores,
node_modules,.git,dist,build,target,.cache,.autorag, or.jikji.
Install the CLI if needed
The CLI is @autorag/librarian (autorag). Runtime is Node.js ≥ 24 or Bun.
command -v autorag >/dev/null || bun install -g @autorag/librarian
autorag --help
If Bun is unavailable, npm install -g @autorag/librarian is acceptable.
Inspect existing configuration
Check --config, AUTORAG_CONFIG, $AUTORAG_HOME/config.json, or
~/.autorag/config.json. Relevant fields are:
searchPaths,workspacePath, andmemoryPathmodel.provider,model.id,model.api,model.baseUrl,model.apiKeyEnvbm25,minSync, andjikjilimits(retrieval, baseline-prefetch, and model-facing candidate caps)datasourcesandui
Preserve explicit user choices and a working config unless the user asks to replace them or health checks fail.
Configure one search model
AutoRAG is the specialized librarian agent. One configured model plans the search, calls retrieval and filesystem tools, reads sources, judges evidence, and curates the answer in one loop. There are no orchestrator/explorer roles.
Prefer a model with reliable tool calling and structured output, enough context for source excerpts, high output TPS, and low first-token latency. Use a larger reasoning model only when difficult synthesis or domain judgment matters more than latency.
Start from a provider/model the current runtime can actually call. A Pi-usable ChatGPT, Claude, Gemini, or other authenticated subscription is valid; an installed CLI or subscription that Pi cannot invoke is not. For custom OpenAI-compatible endpoints, record the real wire API, base URL, and credential environment-variable name.
Allowed api values:
openai-completionsopenai-responsesanthropic-messagesopenai-codex-responsesazure-openai-responses
If no callable setup can be established, ask the user for the provider, model id, API protocol, base URL when custom, and credential environment-variable name. Do not invent provider identities or model ids.
Propose and approve document roots
Explicit user paths win. Otherwise inspect only these likely document-dense candidates for existence and approximate supported-file counts, then ask for approval before indexing:
| OS | Recommended | Optional |
|---|---|---|
| macOS | ~/Documents, ~/Downloads, ~/Desktop |
~/Notes, ~/Obsidian, user-named project docs |
| Linux | XDG Documents/Downloads/Desktop or their ~/ defaults |
~/Notes, ~/Sync, Nextcloud/Syncthing roots |
| Windows | Documents, Downloads, Desktop shell folders | OneDrive document roots, user-named project docs |
Supported parsed formats are md, markdown, txt, text, pdf, docx,
pptx, xlsx, xlsm, xlsb, xls, ods, csv, tsv, hwp, hwpx, and eml. OCR for jpg, jpeg, png, bmp,
and tiff is optional (parserOptions.ocr.enabled). Do not present legacy
.doc as a supported parsed format.
Keep the first-run set small, usually one to three roots. Present a concrete
proposal and require yes, a narrowed keep-list, a custom list, or skip
before running refresh.
Initialize
autorag init \
--search-paths "/path/to/documents,/path/to/notes" \
--workspace "/path/to/workspace" \
--model-provider PROVIDER \
--model-id MODEL
Model resolution runs through the pi runtime. A configured provider/id is
resolved against the pi runtime catalog — the
Câu hỏi thường gặp
Thiết lập có di chuyển hay xóa tài liệu của tôi không?
Không. Thiết lập và lập chỉ mục chỉ đọc tài liệu, không bao giờ di chuyển, đổi tên, chỉnh sửa hay xóa chúng.
Khóa API của tôi có được lưu trong cấu hình không?
Không. Chỉ lưu tên của các biến môi trường chứa khóa đó.
Nó có quét toàn bộ máy tính của tôi không?
Không. Nó không quét toàn bộ hệ thống tệp hay thư mục home nếu bạn chưa chấp thuận.
Chi tiết
Mô tả gốc của tác giả
Install and configure AutoRAG, register its Lite MCP server for external agents, or repair its single search model, approved roots, indexes, datasources, and health checks without exposing credentials. Use when AutoRAG or MCP is missing, init/refresh/health fails, indexes are stale, or the user wants to add folders or datasources.
repo: Marker-Inc-Korea/AutoRAG
Độ phổ biến
- Sao GitHub
- 5.3k
- Vị trí xếp hạng
- #15015
- Giấy phép
- Apache-2.0
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
organize
5.3kGiúp agent của bạn sắp xếp, di chuyển, đổi tên hoặc chuyển đổi tệp và thư mục trên máy tính một cách an toàn, kèm kế hoạch và danh sách mọi thay đổi.
autorag-doctor
5.3kGiúp agent của bạn tìm và sửa lỗi trong thiết lập AutoRAG bị hỏng, để mỗi nguồn được kết nối đều được lập chỉ mục và trả về kết quả tìm kiếm.
autorag-lite-setup
5.3kGiúp agent của bạn cài đặt và kết nối AutoRAG Lite, công cụ tìm kiếm tài liệu không cần mô hình tìm kiếm, rồi kiểm tra xem nó có hoạt động không.
autorag
5.3kCho phép agent của bạn tìm kiếm, tóm tắt và so sánh câu trả lời từ thư viện AutoRAG đã cấu hình gồm các tệp PDF, ghi chú và nguồn dữ liệu cục bộ.
Skill tương tự
discrawl
394kCho phép agent của bạn tìm kiếm và tóm tắt kho lưu trữ tin nhắn Discord trên máy, kiểm tra độ mới của dữ liệu và đọc tin nhắn trực tiếp.
clickhouse-io
280kGiúp agent của bạn tối ưu truy vấn và schema trong ClickHouse theo thực hành tốt nhất cho phân tích dữ liệu hiệu năng cao khi truy vấn chậm.
scientific-db-pubmed-database
280kGiúp agent của bạn tìm bài báo khoa học trong lĩnh vực y sinh. Hữu ích cho nghiên cứu cần thông tin y khoa cụ thể.