شعار Rag

Rag

المجتمع
Picrew
rag

Use when the user has already provided source material and needs a cited, evidence-constrained answer from that material. Not for external retrieval.

نظرة عامة

الناشرPicrew
المستودعOpenRAG-Skill
اسم المهارةrag
النجوم
33
التفريعات
1
الملفات المرفقة
29
الترخيصMIT
الروابط
  • تعليمات بصيغة Markdown

    ملف SKILL.md يُحمّله النموذج عند الحاجة، فلا يستهلك توكنات إلا عندما يَرِد طلب ذو صلة فعلًا.

  • تعمل مع أي نموذج لغوي كبير

    مهارات الذكاء الاصطناعي مكتوبة بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا تعمل مع GPT أو Claude أو Gemini أو Grok أو نموذج محلي.

  • الملفات المرفقة: 29

    نصوص برمجية وقوالب ومراجع يمكن للنموذج قراءتها أثناء عمله. الملفات للقراءة فقط ولا تُنفّذ أبدًا.

  • مفتوحة المصدر

    نشرها Picrew على GitHub. اطّلع على المصدر قبل تثبيتها.

التثبيت

ثبّت مهارة الذكاء الاصطناعي Rag في TypingMind لاستخدامها مع أي نموذج لغوي كبير، أو أضفها إلى وكيل ذكاء اصطناعي آخر يقرأ SKILL.md.

1

التثبيت في TypingMind

يُثبّت TypingMind المهارة مباشرةً من مجلدها على GitHub — فيقرأ SKILL.md، ويجمع ملفات الموارد في حزمة، ويحفظ النتيجة محليًا.

  1. افتح التطبيق وانتقل إلى الإضافات → المهارات.
  2. اختر «تثبيت من GitHub».
  3. الصق رابط مجلد المهارة الموضّح أدناه وأكّد التثبيت.
    https://github.com/Picrew/OpenRAG-Skill/tree/main
  4. فعّل المهارة في كل محادثة تريد إتاحتها فيها.
الإضافات → المهارات → إضافة مهارة → من رابط GitHub، ثم الصق رابط المجلد واضغط على «متابعة».
2

التثبيت في وكيل ذكاء اصطناعي آخر

يمكن لأي وكيل ذكاء اصطناعي يقرأ تنسيق Agent Skills استخدام هذه المهارة — انسخ المجلد إلى مجلد المهارات الخاص بذلك الوكيل.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Picrew/OpenRAG-Skill.git \
  .claude/skills/rag
أعد تشغيل Claude Code بعد النسخ ليتعرّف على المهارة الجديدة.

استخدمها في TypingMind

فعّل Rag في أي محادثة على TypingMind وسيتولى النموذج الباقي. تتضمن مطالبة النظام اسمها ووصفها، وبمجرد ورود طلب ذي صلة، يُحمّل النموذج التعليمات الكاملة تلقائيًا — فلا تحتاج إلى استدعائها يدويًا، ولا تستهلك أي توكنات حتى تُستخدم فعليًا.

يُحمّل النموذج Rag تلقائيًا بمجرد ورود طلب ذي صلة بها.

تعمل مع أي نموذج ذكاء اصطناعي

مهارات الذكاء الاصطناعي هي تعليمات بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا لا ترتبط Rag بالنموذج الذي كُتبت له. ثبّتها مرة واحدة في TypingMind واستخدمها مع GPT-5 أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو نموذج محلي تشغّله بنفسك — كل ذلك باستخدام مفاتيح API الخاصة بك.

  • تُحمَّل عند الحاجة فقط

    تتضمن مطالبة النظام الاسم والوصف فقط. وتُجلب التعليمات عند أول طلب ذي صلة، لذا لا تترتب أي تكلفة على المهارة غير المستخدمة.

  • بدّل النماذج أثناء المحادثة

    لأن المهارة تعليمات وليست شيفرة، فإن تغيير النموذج لا يعطّلها — فالنموذج التالي يقرأ ملف SKILL.md نفسه.

تعليمات المهارة

هذا هو محتوى SKILL.md الذي يُحمّله النموذج. اقرأه قبل التثبيت — فالمهارة عبارة عن تعليمات سيتبعها نموذجك.

OpenRAG-Skill

Skill invocation remains $rag.

Use this skill only when the relevant material is already in context:

  • The user pasted one or more documents into the chat.
  • The conversation already contains policies, manuals, contracts, specs, or FAQs.
  • The task requires a cited answer, extraction, comparison, or audit grounded only in that material.

Do not use this skill for:

  • Web search or external knowledge retrieval
  • Large corpora that are not already present in context
  • Embeddings, vector search, BM25, indexing, or reranking
  • Repository-wide code navigation as the primary task

Input Modes

Raw Context Mode

Use this when the user provides unstructured source material.

markdown
[CONTEXT]
Source A:
...

Source B:
...

[TASK]
What should be answered or extracted?

[OUTPUT_MODE]
answer | extract | compare | audit

First package the material into Evidence Units, then answer from those units.

Packaged Context Mode

Use this when the user already provides labeled evidence.

markdown
[E1] Source: ...
Section: ...
Content: ...

[E2] Source: ...
Section: ...
Content: ...

Skip packaging and move directly to localization, reconciliation, and answering.

Evidence Unit Format

An Evidence Unit is a citation container, not a retrieval chunk.

Required fields:

  • ID (E1, E2, ...)
  • Source
  • Section
  • Content
  • Optional Notes for date, scope, version, or jurisdiction

Core Protocol

Execute these stages in order.

Stage 1: Context Packaging

Purpose: turn raw material into stable, referenceable Evidence Units.

Rules:

  • Preserve source boundaries.
  • Preserve headings, numbering, and clause labels.
  • Split only on visible structure such as headings, bullets, numbered clauses, or paragraph breaks.
  • For long documents, package hierarchically: source -> section -> clause.

Deliverable:

  • Evidence Register: the numbered evidence list (E1, E2, E3, ...)

Stage 2: Query Decomposition and Coverage Planning

Purpose: define what must be proven before answering.

Rules:

  • State the core question.
  • Break it into atomic sub-questions.
  • Classify the task as fact, rule, comparison, extraction, or audit.
  • Mark which sub-questions are mandatory for a complete answer.

Deliverable:

  • Coverage Table: each sub-question mapped to the evidence needed to support it

Stage 3: Evidence Localization and Extraction

Purpose: identify the smallest sufficient evidence set.

Rules:

  • Prefer direct statements over inference.
  • Track unresolved sub-questions separately instead of guessing.
  • Preserve exact wording for policy, contract, and compliance tasks.
  • If support is indirect, treat it as lower-confidence support.

Deliverable:

  • Evidence Ledger: direct support, indirect support, and unresolved gaps for each sub-question

Stage 4: Cross-Check and Reconciliation

Purpose: prevent unsupported synthesis and hidden contradictions.

Rules:

  • Check whether evidence units agree, narrow, or conflict.
  • Track normative force for each controlling claim (SHALL, SHALL NOT, SHOULD, SHOULD NOT, MAY).
  • Prefer more specific evidence over summaries.
  • Prefer time-bounded or versioned evidence when recency is explicit in the source.
  • Never merge claims with different normative force as if they were equivalent.
  • Do not flatten unresolved conflicts into one rule.

Deliverable:

  • Conflict Ledger: scope, date, version, exception, and contradiction notes used in the final response

Final Sweep

Before drafting, run one explicit omission check:

  • Scan for exception terms such as except, unless, however, only if, and notwithstanding.
  • Scan for dates, effective times, and version labels.
  • Scan for scope boundaries such as role, region, product tier, or approval authority.
  • Scan for wording that is legally or operationally sensitive, especially modal force.

If the sweep finds a missing constraint, add it to the ledgers before answering.

Stage 5: Cited Answer Generation

Purpose: produce a stable, reviewable output.

Rules:

  • Every material claim must be citation-backed.
  • Unsupported claims must be omitted.
  • Missing support triggers a partial answer or a refusal.
  • Do not add outside knowledge unless the user explicitly asks for reasoning beyond the provided material.
  • If a detail is absent, say not specified in the provided evidence instead of inferring from terminology, category, or common practice.
  • Return the answer directly in the response; do not create helper files or external artifacts unless the user explicitly asks.

Deliverable:

  • A contract-formatted answer with aligned evidence IDs

Normative Force Lock

When the source uses modal or normative language:

  • Preserve SHALL, SHALL NOT, SHOULD, SHOULD NOT, and MAY exactly in meaning.
  • Do not rewrite SHOULD or MAY as if they were mandatory.
  • Do not rewrite SHALL NOT or SHOULD NOT as softer preference language.
  • If two sources discuss the same topic with different force, surface that as a difference or conflict.
  • In normative comparisons, name the force explicitly inside each differing requirement.

Internal Work Products Stay Internal

Evidence Register, Coverage Table, Evidence Ledger, and Conflict Ledger are internal work products by default.

Do not emit them as extra top-level sections unless the user explicitly asks to see the intermediate reasoning artifacts. Do not emit TODO lists, planning notes, or scratch reasoning.

Output Modes

OUTPUT_MODE changes the structure inside the Answer section.

answer

Use for direct conclusions.

  • Return the shortest sufficient conclusion set.
  • Keep each conclusion explicitly cited.

extract

Use for field extraction or direct pull-through.

  • Return field names, extracted values, and not found where evidence is missing.
  • Avoid narrative unless the task explicitly asks for it.

compare

Use for side-by-side source comparison.

  • Organize the Answer section as Shared Ground, Differences, Conflicts, then Bottom Line.
  • Put a point in Shared Ground only when both scope and normative force match across the cited evidence.
  • If one source says SHALL and another says SHOULD or MAY, that belongs in Differences, not Shared Ground.
  • If force differs and the overlap is only topical, prefer Shared Ground = None. instead of a vague common denominator.
  • Never use words like require, must, or prohibit in Shared Ground unless all cited evidence support the same mandatory force.
  • In normative text, each bullet in Differences should name the force explicitly, such as Passwords [SHALL]: ....
  • Bottom Line may restate only already-cited differences; do not introduce new rankings, causes, or unstated rationale.
  • Keep scope attached to the source that owns it.

audit

Use for policy, controls, and compliance-style reviews.

  • Organize the Answer section as Requirements, Exceptions, Gaps, then Risks when relevant.
  • Do not omit scattered constraints that narrow the main rule.

Response Contract

Use these top-level sections in this exact order:

  1. Answer
  2. Evidence Map
  3. Conflicts or Gaps
  4. Need More Material (only when partial or refused)

Rules:

  • Use no extra top-level sections before Answer.
  • Every non-trivial claim in Answer must end with one or more evidence IDs such as [E3] or [E2][E5].
  • Evidence Map must map each major conclusion to the exact evidence IDs that support it.
  • If a claim cannot be supported, it must not appear in Answer.
  • Do not emit Need More Material when the answer is complete.
  • Never emit placeholder text such as None. inside Need More Material.
  • Keep the wording stable and easy to score.

Refusal Contract

If the provided material does not support the core question:

  • Set Answer to INSUFFICIENT_EVIDENCE.
  • State exactly what is missing.
  • List the additional material needed.
  • Do not provide a speculative fallback.

Conflict Contract

When evidence conflicts:

  • Cite the conflicting evidence IDs directly.
  • Explain whether the conflict is caused by scope, date, version, or an irreconcilable contradiction.
  • Use conditional conclusions instead of a flattened summary.

Preferred patterns:

  • If E2 governs, then ...
  • If E5 is the current version, then ...
  • The sources conflict and do not support a single unconditional conclusion.

Operating Defaults

  • Optimize for long-form documents first.
  • Prefer complete traceability over broad coverage.
  • Use exact wording when a small wording change would alter the meaning.
  • If only part of a multi-part request is supported, answer only that supported part and mark the rest as a gap.

References

Use these bundled references as needed:

  • references/protocol.md for the detailed operating procedure
  • references/templates.md for copy-paste templates
  • references/failure-modes.md for failure handling
  • references/methodology.md for positioning and limits

See the examples/ and evals/ folders for worked examples and test cases.

الملفات المرفقة

يقرأ النموذج هذه الملفات عند الحاجة أثناء تحميل المهارة. وهي متاحة للقراءة ولا تُنفّذ أبدًا.

الأسئلة الشائعة

ماذا تفعل مهارة الذكاء الاصطناعي Rag؟

Use when the user has already provided source material and needs a cited, evidence-constrained answer from that material. Not for external retrieval.

لماذا تستخدم Rag على TypingMind؟

لأنك تثبّتها مرة واحدة وتستخدمها مع أي نموذج. مهارة Rag عبارة عن نص Markdown وليست شيفرة خاصة بمزود بعينه، لذا تعمل المهارة نفسها مع GPT-5 أو Claude أو Gemini أو Grok أو نموذج محلي، ويمكنك تبديل النموذج أثناء المحادثة دون تعطّل المهارة. يعمل TypingMind بمفاتيح API الخاصة بك، فتدفع للمزودين مباشرةً بدلًا من اشتراك لكل مقعد، وتبقى مهاراتك ومحادثاتك في مساحة التخزين الخاصة بك.

كيف أثبّت Rag في TypingMind؟

افتح الإضافات → المهارات → التثبيت من GitHub في TypingMind والصق https://github.com/Picrew/OpenRAG-Skill/tree/main. يقرأ TypingMind ملف SKILL.md الخاص بها، ويجمع ملفاتها ويثبّتها كمهارة يمكنك تفعيلها لكل محادثة على حدة.

ما نماذج الذكاء الاصطناعي التي يمكنها استخدام Rag؟

أي نموذج تربطه في TypingMind. مهارات الذكاء الاصطناعي عبارة عن تعليمات Markdown وليست شيفرة خاصة بمزود بعينه، لذا يمكن لكل من GPT وClaude وGemini وGrok والنماذج المحلية تحميل هذه المهارة عندما يتوافق الطلب معها.

كم نموذج ذكاء اصطناعي يمكنني استخدامه مع Rag؟

أي عدد تريده. ما دام النموذج يدعم المهارات، يمكنك استخدام Rag معه، سواء كان GPT أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو غيرها، وكل ذلك على TypingMind باستخدام مفاتيح API الخاصة بك.

هل مهارة الذكاء الاصطناعي Rag مجانية؟

نعم. نشرها Picrew على GitHub بموجب ترخيص MIT. لا تدفع إلا لمزود الذكاء الاصطناعي الخاص بك مقابل التوكنات التي تستخدمها.

ما هي مهارات الذكاء الاصطناعي؟

مهارة الذكاء الاصطناعي حزمة تعليمات قابلة لإعادة الاستخدام تعلّم نموذج الذكاء الاصطناعي كيفية تنفيذ مهمة محددة. وتتبع تنسيق Agent Skills المفتوح: ملف SKILL.md يتضمن اسمًا ووصفًا، إلى جانب أي نصوص برمجية أو قوالب أو ملفات مرجعية قد يحتاج إليها النموذج. لا يقرأ النموذج التعليمات إلا عندما يتوافق طلبك مع المهارة، لذا لا تترتب على المهارة المثبتة أي تكلفة حتى تُستخدم.

كيف تختلف مهارات الذكاء الاصطناعي عن الإضافات أو موصلات MCP؟

تمنح الإضافة أو موصل MCP النموذج أدوات جديدة يمكنه استدعاؤها، وهي شيفرة تُنفَّذ في مكان ما وتُرجع نتيجة. أما مهارة الذكاء الاصطناعي فتزوّد النموذج بالمعرفة ومنهجية العمل: كيفية التعامل مع مهمة، والخطوات التي ينبغي اتباعها، وما ينبغي أن تكون عليه المخرجات الجيدة. المهارات عبارة عن نصوص Markdown، لذا لا تحتاج إلى خادم أو مفتاح API أو بيئة تشغيل، وتعمل مع أي نموذج.

عرض الكل

أنشئ مساحة عملك للذكاء الاصطناعي الآن

اشترك في نشرتنا البريدية لتصلك أخبار الميزات الجديدة والهدايا القادمة 👇