/rag-service:zeabur-rag-editfrom rag-service
Edits existing RAG knowledge base chunks: fixes typos, outdated info, tags, status, or rewrites title/question/answer. Requires admin scope.
Ships in rag-service. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Update the content of an existing chunk in place. Embedding is recomputed automatically when the searchable text changes, and the BM25 cache is cleared so the change is live on the next query.
Base URL: $ZEABUR_RAG_URL
Auth: Authorization: Bearer $RAG_API_KEY — admin scope required
| Situation | Use this skill |
|---|---|
| Fixing a typo or stale fact in an existing chunk | ✅ |
Adjusting tags, source URL, or lifecycle status | ✅ |
| Rewriting the answer because the procedure changed | ✅ |
| You don't have admin scope | ❌ Use zeabur-rag-report instead |
| The knowledge doesn't exist yet | ❌ Use zeabur-rag-learn instead |
PATCH /api/admin/chunks/:id — pass any subset of editable fields.
curl -s -X PATCH "$ZEABUR_RAG_URL/api/admin/chunks/<chunk_id>" \
-H "Authorization: Bearer $RAG_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"title": "Updated title",
"answer": "Corrected content",
"text_content": "Updated title\nCorrected content"
}'
| Field | Type | Notes |
|---|---|---|
title | string | Display title |
question | string | Optional question form |
answer | string | Main body |
tags | string[] | Replaces the existing tag array |
url | string | Source URL |
text_content | string | The text that gets embedded and BM25-indexed |
status | "unverified" | "verified" | "rejected" | Lifecycle state |
If you update any of title / question / answer, you MUST also pass a new text_content. The server enforces this and returns 400 otherwise. The reason: embedding and BM25 index are built from text_content, not from the display fields — letting them drift apart silently corrupts search quality.
Construct text_content using the same format as the adapter that produced the
chunk. When in doubt, read the existing text_content first, then rewrite
it in the same shape.
text_contentPure metadata changes — tags, url, status — don't touch the embedding, so text_content is not required:
curl -s -X PATCH "$ZEABUR_RAG_URL/api/admin/chunks/DOC-example" \
-H "Authorization: Bearer $RAG_API_KEY" \
-H "Content-Type: application/json" \
-d '{"tags": ["deployment"], "status": "verified"}'
zeabur-rag-search or GET /api/admin/chunks?search=... to get its ID and current contents.GET /api/admin/chunks/:id returns the full record including text_content. Confirm you're editing what you think you're editing.text_content if any of title/question/answer are in the patch.{
"success": true,
"id": "DOC-example",
"updated_fields": ["title", "answer", "text_content"],
"embedding_updated": true
}
embedding_updated: true means the chunk was re-embedded. Every edit is logged to rag_audit_log with action edit and a diff of old vs new values, and the BM25 cache is cleared so the next query sees the change.
| Status | Cause |
|---|---|
400 | Updated title/question/answer without providing text_content, or invalid status/tags |
401 / 403 | Missing/invalid key, or key lacks admin scope |
404 | Chunk ID does not exist |
500 | DB or embedding service error — safe to retry |
zeabur-rag-report instead of patching.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
9 skills in this plugin
/zeabur-rag-curateInteractive knowledge base curation loop — reviews pending items (reports, unverified chunks, failed queries, negative feedback) and walks through fixes one by one. Use when asked to "maintain the knowledge base", "review pending items", "run a curation round", "process reports", "clean up the KB", or any request to improve KB quality. This is the main entry point for the expand → organize → reflect cycle, and requires admin scope./zeabur-rag-feedbackSend feedback on RAG search results — thumbs-up (+1) or thumbs-down (-1) to indicate whether the answer was helpful. Use after calling zeabur-rag-search when you can evaluate the quality of the results. Positive feedback reinforces good results; negative feedback flags poor matches for review. Requires write:feedback scope./zeabur-rag-Other plugins' skills for the same job
npx claudepluginhub zeabur/rag-service --plugin rag-service