A. Master Table of Prompt Decorators
This table serves as a quick reference guide, providing essential information for each decorator, including its code, a brief description in both Persian and English, an example of its use, its scope, and its parameters. This directly addresses the user's request for a "جدول راهنمای سریع" (quick guide table) and is crucial for the practical application of the decorator system.
| Decorator Code | توضیح خلاصه به فارسی (Short Persian Description) | Short English Description | مثال (Example of Use) | Scope | Parameters (with types and brief explanation) |
|---|---|---|---|---|---|
+++Reasoning |
شروع پاسخ با توضیح دقیق استدلال و منطق پشت آن. | Begin response with detailed reasoning and logic. | Explain general relativity. +++Reasoning |
Message | None |
+++StepByStep |
ساختاردهی پاسخ به صورت دنبالهای از مراحل منطقی و شمارهگذاری شده. | Structure response as a sequence of labeled steps. | How to tie a shoelace? +++StepByStep |
Message | style=[Numeric|Arrow|Custom] (Optional: specifies labeling style, Default: Arrow-like) |
+++Socratic |
درگیر شدن در رویکرد سقراطی با طرح سوالات شفافکننده قبل از ارائه پاسخ مستقیم. | Engage in a Socratic approach by posing clarifying questions before answering. | What is justice? +++Socratic |
Message | None |
+++Debate |
تحلیل دیدگاههای متعدد قبل از رسیدن به نتیجهگیری. | Analyze multiple viewpoints before reaching a conclusion. | Is remote work beneficial? +++Debate |
Message | None |
+++Critique |
ارائه نقد سازنده با ارزیابی نقاط قوت و ضعف قبل از پیشنهاد بهبود. | Provide constructive criticism: strengths, weaknesses, improvements. | Critique this essay on climate change. +++Critique |
Message | None |
+++Refine(iterations=N) |
انجام چندین مرحله پالایش پاسخ برای بهبود وضوح، دقت یا اثربخشی. | Iteratively refine the response N times for clarity, accuracy, or effectiveness. | Draft a marketing email. +++Refine(iterations=3) |
Message | iterations=N (Required: integer specifying number of refinements) |
+++CiteSources |
پشتیبانی تمامی ادعاها با منابع معتبر و ارائه فهرست کامل منابع. | Support all claims with credible references and provide full citations. | What are the causes of inflation? +++CiteSources |
Message | None (implies complex internal process potentially requiring RAG capabilities) |
+++FactCheck |
بررسی صحت واقعی ادعاهای کلیدی قبل از نهایی کردن پاسخ؛ عدم قطعیتها باید مشخص شوند. | Verify factual accuracy of key claims; mark uncertainties if inconclusive. | Tell me about the history of the internet. +++FactCheck |
Message | None (implies complex internal process potentially requiring RAG capabilities) |
+++OutputFormat(format=FORMAT) |
پایبندی دقیق پاسخ به فرمت خروجی مشخص شده. | Strictly adhere to the specified output format. | List users: John, Jane. +++OutputFormat(format=json) |
Message | format=[json|markdown|yaml|xml|text|...] (Required: specifies output structure) |
+++Tone(style=STYLE) |
تطابق لحن پاسخ با سبک مشخص شده. | Match response tone to the specified style. | Explain black holes. +++Tone(style=enthusiastic_and_simple) |
Message | style=STYLE_DESCRIPTION (Required: e.g., formal, casual, humorous, technical, empathetic, or a comma-separated list of keywords describing the desired style) |
+++ChatScope |
اعمال دکوریتورهای مشخص شده بعدی در سطح مکالمه (چت). | Apply subsequent decorators at the chat (conversation) level. | +++ChatScope +++Tone(style=formal) (All future messages in this chat will be formal) |
Message | None |
+++MessageScope |
توقف رفتار دکوریتورهای سطح چت و اعمال دکوریتورها فقط به پیام خاص. | Stop chat-scope behavior; decorators apply only to the current message. | +++MessageScope Explain this slang term. +++Tone(style=casual) (Only this message is casual, chat returns to previous scope) |
Message | None |
+++Clear |
پاک کردن تمام دکوریتورهای فعال سطح چت یا دکوریتورهای مشخص شده. | Clear all active chat-scoped decorators, or specified ones. | +++Clear OR +++Clear(+++Tone) |
Message | decorators_to_clear (Optional: comma-separated list of decorator names to clear, e.g., +++Tone, +++Persona) |
+++ActiveDecs |
بازگرداندن لیستی از تمام دکوریتورهای فعال در سطح چت. | Return a list of all currently active chat-scoped decorators. | +++ActiveDecs |
Message | None |
+++AvailableDecs |
بازگرداندن جدولی از تمام دکوریتورهای موجود با نام، توضیحات و وضعیت فعلی آنها. | Return a table of all available decorators: name, description, status (Active/Inactive). | +++AvailableDecs |
Message | None |
+++Persona(...) |
اتخاذ یک شخصیت مشخص (مانند متخصص، منتقد) برای تولید خروجی متناسب با آن نقش. | Adopts a specified persona to tailor the output accordingly. | Write a product review. +++Persona(role=TechReviewer, background=10yrs_experience, style_emphasis=critical) |
Message | role=ROLE_NAME (Required: string), background=TEXT (Optional: string), style_emphasis=KEYWORDS (Optional: comma-separated string) |
+++Brainstorm(...) |
کمک به تولید ایده با استفاده از تکنیکهای مختلف طوفان فکری. | Assists in idea generation using various brainstorming techniques. | +++Brainstorm(mode=MindMap, topic=SustainableEnergy, quantity=5) |
Message | mode=[MindMap|List|WhatIf] (Required: choice), topic=TEXT (Required: string), quantity=N (Optional integer for List mode) |
+++CreativeWrite(...) |
راهنمایی مدل زبان بزرگ در وظایف خاص نویسندگی خلاق. | Guides the LLM in specific creative writing tasks. | +++CreativeWrite(type=Poem, theme=Autumn, constraints=RhymingCouplets, length=Short) |
Message | type=GENRE (Required: choice), theme=TEXT (Required: string), length=SIZE (Optional: choice or integer), constraints=TEXT (Optional: string) |
+++Summarize(...) |
ارائه کنترل دقیق بر خلاصهسازی متن، متناسب با نیازهای مختلف. | Provides nuanced control over text summarization for diverse needs. | Summarize this news article. +++Summarize(style=KeyPoints, length=Short, audience=GeneralPublic) |
Message | style=TYPE (Default: Abstractive), length=SIZE (Default: Medium), audience=TEXT (Optional: string), focus=TEXT (Optional string, for QueryBased style) |
+++Translate(...) |
ارائه کنترل دقیق برای وظایف ترجمه، با توجه به زمینه و واژگان تخصصی. | Offers fine-grained control for translation tasks, including context and domain. | Translate to German: Hello World. +++Translate(target_lang=de, source_lang=en, formality=Informal, domain=General) |
Message | target_lang=ISO_CODE (Required: string), source_lang=ISO_CODE (Optional: string, LLM may infer), formality=[Formal|Informal|Neutral] (Optional: choice), domain=TEXT (Optional: string), preserve_terms=TERMS (Optional: comma-separated string) |
+++ExtractData(...) |
استخراج ساختاریافته داده از متن بر اساس یک شمای تعریف شده. | Structures data extraction from text based on a defined schema. | Extract info from: Name: Ali, ID:123. +++ExtractData(schema={'name':'string','id':'string'}) +++OutputFormat(format=json) |
Message | schema=JSON_SCHEMA_DESCRIPTION (Required: string describing desired JSON structure), context_fields=FIELDS (Optional: comma-separated string), extraction_details=TEXT (Optional: string) |
+++ChainOfThought(...) |
فعالسازی صریح نمایش استدلال گام به گام قبل از پاسخ نهایی. | Explicitly activates step-by-step reasoning display before the final answer. | Solve this math problem. +++ChainOfThought(active=true, detail_level=High) |
Message | active=Boolean (Default: true), detail_level=[Low|Medium|High] (Optional: choice, Default: Medium) |
+++GenerateKnowledge(...) |
واداشتن مدل به تولید و بیان دانش پیشزمینهای در مورد یک موضوع قبل از پرداختن به پرسش اصلی. | Prompts LLM to first generate background knowledge on a topic before the main query. | Explain quantum computing. +++GenerateKnowledge(topic=QuantumPhysics, depth_level=Detailed) |
Message | topic=TEXT (Required: string), depth_level=LEVEL (Optional: choice, Default: Detailed), aspects=ASPECT_LIST (Optional: comma-separated string) |
+++TargetAudience(...) |
دستور به مدل برای تطبیق خروجی خود (محتوا، پیچیدگی، زبان) برای یک پروفایل مخاطب مشخص. | Instructs LLM to adapt its output for a specified audience profile. | Explain photosynthesis. +++TargetAudience(description=FifthGraders, complexity_level=GradeLevel_5, language_style=SimpleAnalogies) |
Message | description=TEXT (Required: string), complexity_level=LEVEL (Optional: choice or string), language_style=TEXT (Optional: string), prior_knowledge_assumption=[Low|Medium|High] (Optional: choice) |
This quick reference table is essential for the day-to-day usability of the decorator system. It allows users to quickly find the syntax, parameters, and basic usage instructions for any decorator without needing to read through extensive explanations each time. The inclusion of Persian descriptions directly addresses the primary language context of the user query, while English descriptions ensure broader applicability and understanding. The examples provide concrete illustrations, making the function of each decorator easier to grasp. Specifying the scope (Message or Chat) and detailing the parameters are crucial for ensuring correct and effective usage. In essence, this table acts as the core "user manual" for the decorator system, enhancing its practicality and accessibility, thereby making the decorators "کاربردی تر بشه و بهینه تر" (more practical and optimized) as per the user's request.