選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

citation_prompt.md 5.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. Based on the provided document or chat history, add citations to the input text using the format specified later.
  2. # Citation Requirements:
  3. ## Technical Rules:
  4. - Use format: [ID:i] or [ID:i] [ID:j] for multiple sources
  5. - Place citations at the end of sentences, before punctuation
  6. - Maximum 4 citations per sentence
  7. - DO NOT cite content not from <context></context>
  8. - DO NOT modify whitespace or original text
  9. - STRICTLY prohibit non-standard formatting (~~, etc.)
  10. ## What MUST Be Cited:
  11. 1. **Quantitative data**: Numbers, percentages, statistics, measurements
  12. 2. **Temporal claims**: Dates, timeframes, sequences of events
  13. 3. **Causal relationships**: Claims about cause and effect
  14. 4. **Comparative statements**: Rankings, comparisons, superlatives
  15. 5. **Technical definitions**: Specialized terms, concepts, methodologies
  16. 6. **Direct attributions**: What someone said, did, or believes
  17. 7. **Predictions/forecasts**: Future projections, trend analyses
  18. 8. **Controversial claims**: Disputed facts, minority opinions
  19. ## What Should NOT Be Cited:
  20. - Common knowledge (e.g., "The sun rises in the east")
  21. - Transitional phrases
  22. - General introductions
  23. - Your own analysis or synthesis (unless directly from source)
  24. # Comprehensive Examples:
  25. ## Example 1: Data and Statistics
  26. <context>
  27. ID: 45
  28. └── Content: The global smartphone market grew by 7.8% in Q3 2024, with Samsung holding 20.6% market share and Apple at 15.8%.
  29. ID: 46
  30. └── Content: 5G adoption reached 1.5 billion users worldwide by October 2024.
  31. </context>
  32. USER: How is the smartphone market performing?
  33. ASSISTANT:
  34. The smartphone industry is showing strong recovery. The global smartphone market grew by 7.8% in Q3 2024 [ID:45]. Samsung leads with 20.6% market share, followed by Apple at 15.8% [ID:45]. This growth is partly driven by 5G technology, which reached 1.5 billion users worldwide by October 2024 [ID:46].
  35. ## Example 2: Causal Relationships and Predictions
  36. <context>
  37. ID: 78
  38. └── Content: Rising interest rates have led to a 15% decline in housing starts. Economists predict this trend will continue through 2025.
  39. ID: 79
  40. └── Content: The Federal Reserve's aggressive monetary policy is the primary driver behind the real estate slowdown.
  41. </context>
  42. USER: What's happening in the real estate market?
  43. ASSISTANT:
  44. The real estate market is experiencing significant challenges. Rising interest rates have led to a 15% decline in housing starts [ID:78]. The Federal Reserve's aggressive monetary policy is the primary driver behind this real estate slowdown [ID:79]. Economists predict this trend will continue through 2025 [ID:78]. These factors suggest a prolonged period of market adjustment ahead.
  45. ## Example 3: Technical Concepts and Comparisons
  46. <context>
  47. ID: 101
  48. └── Content: Quantum computing uses quantum bits (qubits) that can exist in superposition, unlike classical bits which are either 0 or 1.
  49. ID: 102
  50. └── Content: Current quantum computers can solve certain problems 158 million times faster than classical supercomputers.
  51. </context>
  52. USER: Explain quantum computing advantages.
  53. ASSISTANT:
  54. Quantum computing represents a fundamental shift in computational capability. Unlike classical computers, quantum computing uses quantum bits (qubits) that can exist in superposition, rather than being limited to just 0 or 1 [ID:101]. This unique property enables extraordinary performance gains. Current quantum computers can solve certain problems 158 million times faster than classical supercomputers [ID:102]. This technology promises to revolutionize fields requiring complex calculations.
  55. ## Example 4: Mixed Citation Needs
  56. <context>
  57. ID: 201
  58. └── Content: CEO Jane Smith announced: "We're pivoting to AI-first strategy, expecting 40% revenue growth by 2026."
  59. ID: 202
  60. └── Content: Industry analysts remain skeptical, with Morgan Stanley rating the stock as "underperform."
  61. ID: 203
  62. └── Content: The company's AI division currently represents only 5% of total revenue.
  63. </context>
  64. USER: What's the company's new strategy?
  65. ASSISTANT:
  66. The company is undergoing a major strategic transformation. CEO Jane Smith announced: "We're pivoting to AI-first strategy, expecting 40% revenue growth by 2026" [ID:201]. However, this ambitious goal faces skepticism, as industry analysts remain doubtful, with Morgan Stanley rating the stock as "underperform" [ID:202]. The challenge is significant given that the company's AI division currently represents only 5% of total revenue [ID:203]. Success will depend on execution of this bold vision.
  67. ## Example 5: When NOT to Cite
  68. <context>
  69. ID: 301
  70. └── Content: Paris is the capital of France. The Eiffel Tower was completed in 1889.
  71. </context>
  72. USER: Tell me about Paris.
  73. ASSISTANT:
  74. Paris is the capital of France. It's known for its rich history, culture, and architecture. The Eiffel Tower was completed in 1889 [ID:301]. The city attracts millions of tourists annually. Paris remains one of the world's most visited destinations.
  75. (Note: Only the specific date needs citation, not common knowledge about Paris)
  76. --- Examples END ---
  77. REMEMBER:
  78. - Cite FACTS, not opinions or transitions
  79. - Each citation supports the ENTIRE sentence
  80. - When in doubt, ask: "Would a fact-checker need to verify this?"
  81. - Place citations at sentence end, before punctuation
  82. - Format likes this is FORBIDDEN: [ID:0, ID:5, ID:...]. It MUST be seperated like, [ID:0][ID:5]...