Chuyển đến nội dung
Skillpedia
Nghiên cứu20k · #10381

lumen-citations

Skill này làm gì

Skill này giải thích cách AI trích dẫn một đoạn văn bản trong Lumen, công cụ rà soát tài liệu pháp lý. Skill dành cho luật sư và đội pháp lý cần mọi nhận định được gắn với nguồn của nó.

Khi nào nên dùng

  • ✓Khi AI đưa ra một nhận định về hợp đồng hoặc tài liệu khác và phải trích dẫn nguồn.
  • ✓Khi một trích dẫn hiển thị là không tìm thấy trong một đợt rà soát Lumen.
  • ✓Khi bạn cần mỗi đoạn trích khớp từng chữ với tài liệu.

Liên kết skill

https://github.com/kortix-ai/suna/blob/dev/apps/white-label/lumen/agent-kit/skills/lumen-citations/SKILL.md

Sao 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

Hãy dùng skill này để giúp tôi: https://github.com/kortix-ai/suna/blob/dev/apps/white-label/lumen/agent-kit/skills/lumen-citations/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Trả lời câu hỏi của tôi về giới hạn trách nhiệm và trích dẫn chính xác điều khoản nó xuất phát từ đâu.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

AI tìm đoạn văn bằng tìm kiếm, đọc trong ngữ cảnh, sao chép chính xác các từ nó dựa vào, rồi chạy kiểm tra trích dẫn trước khi hoàn tất. Mọi sai lệch đều được sửa trướ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.

Citations

Lumen shows every citation to a lawyer next to the source passage, and checks it against the source before the lawyer sees it. A citation that fails the check is shown as "Citation not found". Get it right the first time.

The object

{ "doc_id": "<id from lumen docs>", "a": "p3.12", "quote": "verbatim text from that paragraph" }
  • a is the paragraph anchor: p<page>.<n>. Take it from lumen read or lumen search. Never compute it.
  • quote is copied character for character from ONE paragraph: at most 300 characters, no "..." inside, no paraphrase, case kept.
  • Quote the words that prove the claim, not the whole paragraph. 8 to 40 words is right.

Get anchors

lumen search --matter <matter_dir> --query "limitation of liability capped"   # hits: doc_id, a, snippet
lumen read --doc <doc_id> --anchor p3.12 --context 1                           # the paragraph and its neighbours
lumen read --doc <doc_id>                                                      # the whole document

Check before you finish

echo '{"citations": [{"doc_id": "...", "a": "p3.12", "quote": "..."}]}' | lumen cite check
Code Meaning Fix
not_found The quote is not in the document Copy the exact words from lumen read output
wrong_anchor The quote is in another paragraph (fixed_anchor) Use fixed_anchor
too_long Over 300 characters Quote fewer words
unknown_doc No such document Use a doc_id from lumen docs

lumen result write runs the same check on every citation in a result and refuses the file until each passes.

In chat answers

Write each citation as a Markdown link after the claim: [1](/cite?d=<doc_id>&a=p3.12&q=<url-encoded quote>). lumen cite check prints this link as link for every citation that passes: paste it, do not encode a quote by hand. A bare [1] with no link is not a citation, and Lumen marks the answer as unchecked. Number them in order. Lumen shows each link as a numbered chip that opens the quoted paragraph. Outside the links, name a document by its filename, never by its doc_id.

Examples

Good:

  • {"doc_id": "k17", "a": "p2.9", "quote": "Neither party's liability under or in connection with this Agreement"} - exact words, one paragraph.
  • {"doc_id": "k17", "a": "p1.4", "quote": "renews automatically for successive periods of one (1) year"}.
  • {"doc_id": "k22", "a": "p1.6", "quote": "the Customer is entitled to service credits"}.

Bad:

  • "quote": "liability is unlimited" - a paraphrase. The document says "shall be limited or capped in amount".
  • "quote": "shall not exceed ... twelve (12) months" - an ellipsis inside a quote.
  • "a": "3.12" - not an anchor. Anchors look like p3.12.
Câu hỏi thường gặp

Điều gì khiến trích dẫn thất bại?

Một đoạn trích không có trong tài liệu, hoặc nằm ở đoạn khác với neo của nó, sẽ không qua được kiểm tra.

Đoạn trích nên dài bao nhiêu?

Chỉ trích những từ chứng minh nhận định, thường khoảng 8 đến 40 từ và không bao giờ quá 300 ký tự.

AI có tự bịa số đoạn không?

Không. Skill yêu cầu lấy neo từ kết quả đọc hoặc tìm kiếm và không bao giờ tự tính.

Chi tiết

Mô tả gốc của tác giả

How Lumen cites a document - the citation object, how to get anchors, quote rules and `lumen cite check`. Load before writing any claim about a document.

repo: kortix-ai/suna

Độ phổ biến

Sao GitHub
20k
Vị trí xếp hạng
#10381
Giấy phép
—
Cập nhật
2/11/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự