ASTERIZER commited on
Commit
17a6b92
·
verified ·
1 Parent(s): 1111c5e

Upload Base/Datasets/rag_mcp_sft/sample_preview.json with huggingface_hub

Browse files
Base/Datasets/rag_mcp_sft/sample_preview.json ADDED
@@ -0,0 +1,264 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "instruction": "Explain 'Chunking strategy' in practical terms.",
4
+ "input": "Audience: a junior ML engineer\nFocus: definition and purpose\nStyle rule: Use plain English with no jargon overload.\nLength target: 220-320 words",
5
+ "output": "The concept 'Chunking strategy' can be understood like this: Chunking balances retrieval precision against context completeness by dividing documents into useful units. Large chunks preserve context but can dilute retrieval precision. Small chunks improve focus but may lose context. Overlap can preserve continuity across boundaries. Good practice is to align chunking with document structure when possible.",
6
+ "meta": {
7
+ "kind": "qna",
8
+ "topic": "RAG",
9
+ "sources": [
10
+ "rag_chunking"
11
+ ],
12
+ "token_count": 131
13
+ }
14
+ },
15
+ {
16
+ "instruction": "Compare 'Why MCP matters' and 'Ingestion stage'.",
17
+ "input": "Audience: a solutions engineer\nFocus: system design choices\nStyle rule: Focus on operational tradeoffs, not marketing language.\nLength target: 220-320 words",
18
+ "output": "'Why MCP matters' and 'Ingestion stage' solve different problems, even when they appear in the same AI stack. For 'Why MCP matters': MCP reduces integration cost by giving clients and servers a shared protocol for context exchange and actions. Developers can build once and integrate across multiple hosts. For 'Ingestion stage': The ingestion stage prepares authoritative documents so retrieval can find them efficiently later. Fresh content should trigger incremental updates rather than full rebuilds when possible. Use them together only when the product needs both grounded knowledge and structured external capabilities. A sensible rule is to publish precise capability schemas and to keep a documented ingestion contract.",
19
+ "meta": {
20
+ "kind": "comparison",
21
+ "topic": "MCP+RAG",
22
+ "sources": [
23
+ "mcp_value",
24
+ "rag_ingestion"
25
+ ],
26
+ "token_count": 193
27
+ }
28
+ },
29
+ {
30
+ "instruction": "Describe 'Tool execution' in practical terms.",
31
+ "input": "Audience: an enterprise architect\nFocus: definition and purpose\nStyle rule: Keep the answer practical and free of hype.",
32
+ "output": "The concept 'Tool execution' can be understood like this: After discovery, a client can call a tool with structured arguments and receive structured content back. Responses can contain structured content, not just plain text. Arguments should conform to the tool's JSON schema. Good practice is to return actionable, well-typed results.",
33
+ "meta": {
34
+ "kind": "qna",
35
+ "topic": "MCP",
36
+ "sources": [
37
+ "mcp_tool_execution"
38
+ ],
39
+ "token_count": 117
40
+ }
41
+ },
42
+ {
43
+ "instruction": "Explain 'Lifecycle and initialization' in practical terms.",
44
+ "input": "Audience: a product manager\nFocus: system design choices\nStyle rule: Explain the idea cleanly without drifting into unrelated topics.\nLength target: 120-180 words",
45
+ "output": "The concept 'Lifecycle and initialization' can be understood like this: MCP is stateful and begins with an initialization exchange that negotiates protocol version and capabilities. Initialization establishes compatibility between client and server. Capability negotiation tells each side which primitives are supported. Identity fields help with debugging and version tracking. Good practice is to emit readiness only after initialization succeeds, then persist negotiated capabilities in connection state.",
46
+ "meta": {
47
+ "kind": "qna",
48
+ "topic": "MCP",
49
+ "sources": [
50
+ "mcp_lifecycle"
51
+ ],
52
+ "token_count": 145
53
+ }
54
+ },
55
+ {
56
+ "instruction": "When should a team choose 'Tool discovery' and 'Security and governance'.",
57
+ "input": "Audience: a solutions engineer\nFocus: system design choices\nStyle rule: Use plain English with no jargon overload.\nLength target: 120-180 words",
58
+ "output": "'Tool discovery' and 'Security and governance' solve different problems, even when they appear in the same AI stack. For 'Tool discovery': Clients discover tools through list operations before attempting execution. Hosts can build a unified tool registry from multiple servers. For 'Security and governance': MCP integrations still need authentication, authorization, scope control, and careful data handling. Servers should expose only the minimum necessary capabilities. Use them together only when the product needs both grounded knowledge and structured external capabilities. A sensible rule is to use descriptive tool names and to separate local trusted tools from remote untrusted surfaces.",
59
+ "meta": {
60
+ "kind": "comparison",
61
+ "topic": "MCP+MCP",
62
+ "sources": [
63
+ "mcp_tool_discovery",
64
+ "mcp_security"
65
+ ],
66
+ "token_count": 188
67
+ }
68
+ },
69
+ {
70
+ "instruction": "Create a clean explainer for 'Retrieval as an MCP server' for an engineering handbook.",
71
+ "input": "Audience: a solutions engineer\nFocus: definition and purpose\nStyle rule: Focus on operational tradeoffs, not marketing language.\nLength target: 120-180 words",
72
+ "output": "The topic 'Retrieval as an MCP server' matters because a retrieval engine can be packaged as an MCP server so hosts can discover search tools and evidence resources dynamically.\nKey points:\n- This keeps retrieval integration reusable across hosts.\n- Retrieved passages can be returned as typed content with metadata.\n- An MCP server can expose search tools with structured query schemas.\nWhy teams care:\n- It supports retrieval-backed agent tools.\n- It supports multi-host retrieval reuse.\n- It supports shared search backends.\nWhat to avoid:\n- Large unranked result sets inflate token cost.",
73
+ "meta": {
74
+ "kind": "description",
75
+ "topic": "Bridge",
76
+ "sources": [
77
+ "bridge_retrieval_server"
78
+ ],
79
+ "token_count": 201
80
+ }
81
+ },
82
+ {
83
+ "instruction": "How would you apply 'MCP plus RAG' for a real product team?",
84
+ "input": "Audience: a junior ML engineer\nFocus: deployment tradeoffs\nStyle rule: Explain the idea cleanly without drifting into unrelated topics.\nLength target: 220-320 words",
85
+ "output": "For a team building around retrieval-backed IDE helpers, start by treating 'MCP plus RAG' as an engineering system rather than a vague AI feature.\nMCP and RAG solve different layers of the stack: RAG grounds answers with retrieved evidence, while MCP standardizes how tools and context services are connected. MCP is an interoperability protocol. RAG is a retrieval-and-generation pattern.\nA practical rollout would:\n- Keep retrieval quality metrics separate from protocol compatibility metrics.\n- Expose retrieval services through clear MCP schemas when integrating agents.",
86
+ "meta": {
87
+ "kind": "scenario",
88
+ "topic": "Bridge",
89
+ "sources": [
90
+ "bridge_mcp_rag"
91
+ ],
92
+ "token_count": 189
93
+ }
94
+ },
95
+ {
96
+ "instruction": "Create an implementation checklist for 'Why MCP matters'.",
97
+ "input": "Audience: a product manager\nFocus: system design choices\nStyle rule: Make the answer useful for implementation planning.\nLength target: 4-6 bullet points",
98
+ "output": "Use this checklist when working with 'Why MCP matters':\n- Design for portability across hosts.\n- Publish precise capability schemas.\n- Treat auth and permissions as first-class concerns.\nWatch-outs:\n- Overexposing server capabilities can increase risk.\n- Lack of schema clarity makes tool use unreliable.",
99
+ "meta": {
100
+ "kind": "checklist",
101
+ "topic": "MCP",
102
+ "sources": [
103
+ "mcp_value"
104
+ ],
105
+ "token_count": 127
106
+ }
107
+ },
108
+ {
109
+ "instruction": "Help me understand 'Embeddings and vector search' in practical terms.",
110
+ "input": "Audience: a product manager\nFocus: how to explain it to a team\nStyle rule: Focus on operational tradeoffs, not marketing language.",
111
+ "output": "The concept 'Embeddings and vector search' can be understood like this: Embeddings turn text into vectors so semantically related passages can be retrieved even when wording differs. Vector search is often paired with metadata filtering. The embedding model should match the language and domain of the corpus. Good practice is to version embedding models and indexes together.",
112
+ "meta": {
113
+ "kind": "qna",
114
+ "topic": "RAG",
115
+ "sources": [
116
+ "rag_embeddings"
117
+ ],
118
+ "token_count": 128
119
+ }
120
+ },
121
+ {
122
+ "instruction": "Design a practical approach for 'RAG evaluation' for a real product team?",
123
+ "input": "Audience: a solutions engineer\nFocus: deployment tradeoffs\nStyle rule: Focus on operational tradeoffs, not marketing language.",
124
+ "output": "For a team building around release validation, start by treating 'RAG evaluation' as an engineering system rather than a vague AI feature.\nRAG quality should be measured with representative queries, known-good answers, and retrieval diagnostics. A fixed validation set helps track regressions over time. Ground truth is essential for knowing whether improvements are real. Evaluation should cover both retrieval quality and answer quality.\nA practical rollout would:\n- Track citation accuracy and insufficiency handling.\n- Review failures by retrieval stage and answer stage.",
125
+ "meta": {
126
+ "kind": "scenario",
127
+ "topic": "RAG",
128
+ "sources": [
129
+ "rag_evaluation"
130
+ ],
131
+ "token_count": 164
132
+ }
133
+ },
134
+ {
135
+ "instruction": "Teach me 'Definition of MCP' in practical terms.",
136
+ "input": "Audience: an enterprise architect\nFocus: deployment tradeoffs\nStyle rule: Focus on operational tradeoffs, not marketing language.",
137
+ "output": "The concept 'Definition of MCP' can be understood like this: The Model Context Protocol is an open standard that lets AI applications connect to external tools, resources, and workflows. MCP standardizes integration between AI applications and external systems. The design goal is interoperability instead of custom one-off connectors. It supports tools, data resources, and reusable prompts. Good practice is to use MCP when you need structured tool or context integration, then design tools for clarity and predictable behavior.",
138
+ "meta": {
139
+ "kind": "qna",
140
+ "topic": "MCP",
141
+ "sources": [
142
+ "mcp_definition"
143
+ ],
144
+ "token_count": 152
145
+ }
146
+ },
147
+ {
148
+ "instruction": "How should a team use 'Embeddings and vector search' for a real product team?",
149
+ "input": "Audience: an enterprise architect\nFocus: deployment tradeoffs\nStyle rule: Keep the answer practical and free of hype.",
150
+ "output": "For a team building around similar policy lookup, start by treating 'Embeddings and vector search' as an engineering system rather than a vague AI feature.\nEmbeddings turn text into vectors so semantically related passages can be retrieved even when wording differs. Dense embeddings capture semantic similarity. The embedding model should match the language and domain of the corpus.\nA practical rollout would:\n- Version embedding models and indexes together.\n- Benchmark retrieval before production rollout.",
151
+ "meta": {
152
+ "kind": "scenario",
153
+ "topic": "RAG",
154
+ "sources": [
155
+ "rag_embeddings"
156
+ ],
157
+ "token_count": 155
158
+ }
159
+ },
160
+ {
161
+ "instruction": "What does good implementation of 'Security and governance' look like for a real product team?",
162
+ "input": "Audience: a backend engineer\nFocus: deployment tradeoffs\nStyle rule: Explain the idea cleanly without drifting into unrelated topics.\nLength target: 180-260 words",
163
+ "output": "For a team building around enterprise governance, start by treating 'Security and governance' as an engineering system rather than a vague AI feature.\nMCP integrations still need authentication, authorization, scope control, and careful data handling. Remote servers should use appropriate authentication mechanisms. Operational logs and tool arguments can contain sensitive data. Servers should expose only the minimum necessary capabilities.\nA practical rollout would:\n- Audit tool usage and sensitive accesses.\n- Separate local trusted tools from remote untrusted surfaces.",
164
+ "meta": {
165
+ "kind": "scenario",
166
+ "topic": "MCP",
167
+ "sources": [
168
+ "mcp_security"
169
+ ],
170
+ "token_count": 177
171
+ }
172
+ },
173
+ {
174
+ "instruction": "Write a description of 'Why base models need retrieval' for an engineering handbook.",
175
+ "input": "Audience: a product manager\nFocus: definition and purpose\nStyle rule: Explain the idea cleanly without drifting into unrelated topics.",
176
+ "output": "The topic 'Why base models need retrieval' matters because standalone language models are limited by knowledge cutoffs, incomplete domain depth, and lack of private data access.\nKey points:\n- Specialized domains often require evidence that was sparse or absent in pretraining.\n- A pretrained model cannot know events or documents added after training.\n- Private company knowledge should not be expected to appear in a public base model.\nWhy teams care:\n- It supports product documentation bots.\n- It supports policy assistants.\n- It supports current-events question answering.\nWhat to avoid:\n- Without citations, error diagnosis is harder.\n- Users may trust fluent but unsupported answers.",
177
+ "meta": {
178
+ "kind": "description",
179
+ "topic": "RAG",
180
+ "sources": [
181
+ "rag_limitations"
182
+ ],
183
+ "token_count": 203
184
+ }
185
+ },
186
+ {
187
+ "instruction": "Write a description of 'MCP plus RAG' for an engineering handbook.",
188
+ "input": "Audience: an enterprise architect\nFocus: definition and purpose\nStyle rule: Make the answer useful for implementation planning.\nLength target: 180-260 words",
189
+ "output": "The topic 'MCP plus RAG' matters because mCP and RAG solve different layers of the stack: RAG grounds answers with retrieved evidence, while MCP standardizes how tools and context services are connected.\nKey points:\n- MCP is an interoperability protocol.\n- RAG is a retrieval-and-generation pattern.\n- A retrieval service can be exposed through MCP as a tool or resource.\nWhy teams care:\n- It supports agentic research assistants.\n- It supports retrieval-backed IDE helpers.\nWhat to avoid:\n- Confusing protocol choice with answer quality leads to bad planning.",
190
+ "meta": {
191
+ "kind": "description",
192
+ "topic": "Bridge",
193
+ "sources": [
194
+ "bridge_mcp_rag"
195
+ ],
196
+ "token_count": 195
197
+ }
198
+ },
199
+ {
200
+ "instruction": "Help me understand 'Hosts, clients, and servers' in practical terms.",
201
+ "input": "Audience: an AI platform lead\nFocus: how to explain it to a team\nStyle rule: Keep the answer practical and free of hype.",
202
+ "output": "The concept 'Hosts, clients, and servers' can be understood like this: MCP follows a client-server model where a host application manages one client connection per server. The host is the AI application coordinating the experience. The server exposes context or actions to the client. The client manages the protocol connection to a server. Good practice is to store capability metadata per connection, then map host, client, and server roles explicitly in architecture docs.",
203
+ "meta": {
204
+ "kind": "qna",
205
+ "topic": "MCP",
206
+ "sources": [
207
+ "mcp_architecture"
208
+ ],
209
+ "token_count": 151
210
+ }
211
+ },
212
+ {
213
+ "instruction": "What is 'Notifications and live updates' in practical terms.",
214
+ "input": "Audience: an AI platform lead\nFocus: definition and purpose\nStyle rule: Explain the idea cleanly without drifting into unrelated topics.",
215
+ "output": "The concept 'Notifications and live updates' can be understood like this: Notifications let servers tell clients about changes, such as tool list updates, without waiting for a request. Notifications are one-way JSON-RPC messages with no response expected. They are useful when available capabilities change dynamically. Good practice is to tie notification handling to cache refresh logic.",
216
+ "meta": {
217
+ "kind": "qna",
218
+ "topic": "MCP",
219
+ "sources": [
220
+ "mcp_notifications"
221
+ ],
222
+ "token_count": 130
223
+ }
224
+ },
225
+ {
226
+ "instruction": "How should a team use 'Why MCP matters' for a real product team?",
227
+ "input": "Audience: a solutions engineer\nFocus: deployment tradeoffs\nStyle rule: Explain the idea cleanly without drifting into unrelated topics.\nLength target: 4-6 bullet points",
228
+ "output": "For a team building around cross-platform agent integrations, start by treating 'Why MCP matters' as an engineering system rather than a vague AI feature.\nMCP reduces integration cost by giving clients and servers a shared protocol for context exchange and actions. Developers can build once and integrate across multiple hosts. End users benefit from more capable assistants with fewer brittle integrations. AI applications gain structured access to data and actions.\nA practical rollout would:\n- Design for portability across hosts.\n- Treat auth and permissions as first-class concerns.",
229
+ "meta": {
230
+ "kind": "scenario",
231
+ "topic": "MCP",
232
+ "sources": [
233
+ "mcp_value"
234
+ ],
235
+ "token_count": 183
236
+ }
237
+ },
238
+ {
239
+ "instruction": "Write a description of 'Notifications and live updates' for an engineering handbook.",
240
+ "input": "Audience: a solutions engineer\nFocus: definition and purpose\nStyle rule: Explain the idea cleanly without drifting into unrelated topics.\nLength target: 180-260 words",
241
+ "output": "The topic 'Notifications and live updates' matters because notifications let servers tell clients about changes, such as tool list updates, without waiting for a request.\nKey points:\n- Notifications are one-way JSON-RPC messages with no response expected.\n- They are useful when available capabilities change dynamically.\n- Clients typically refresh their local registry after a change notification.\nWhy teams care:\n- It supports live server state updates.\n- It supports responsive agent interfaces.\n- It supports dynamic tool catalogs.\nWhat to avoid:\n- Capabilities should declare whether list-changed notifications are supported.\n- Sending change events without rate control can create noise.",
242
+ "meta": {
243
+ "kind": "description",
244
+ "topic": "MCP",
245
+ "sources": [
246
+ "mcp_notifications"
247
+ ],
248
+ "token_count": 209
249
+ }
250
+ },
251
+ {
252
+ "instruction": "Teach me 'Tool discovery' in practical terms.",
253
+ "input": "Audience: a product manager\nFocus: security and governance\nStyle rule: Use plain English with no jargon overload.",
254
+ "output": "The concept 'Tool discovery' can be understood like this: Clients discover tools through list operations before attempting execution. Discovery avoids guessing what a server supports. Hosts can build a unified tool registry from multiple servers. Good practice is to use descriptive tool names.",
255
+ "meta": {
256
+ "kind": "qna",
257
+ "topic": "MCP",
258
+ "sources": [
259
+ "mcp_tool_discovery"
260
+ ],
261
+ "token_count": 105
262
+ }
263
+ }
264
+ ]