waypoi 0.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/instructions/ui.instructions.md +42 -0
- package/.github/workflows/ci.yml +35 -0
- package/.github/workflows/publish.yml +71 -0
- package/.github/workflows/release.yml +48 -0
- package/.playwright-mcp/console-2026-04-04T01-41-10-746Z.log +2 -0
- package/.playwright-mcp/console-2026-04-04T01-41-28-799Z.log +3 -0
- package/.playwright-mcp/console-2026-04-05T02-26-51-909Z.log +76 -0
- package/.playwright-mcp/page-2026-04-04T01-41-10-816Z.yml +1 -0
- package/.playwright-mcp/page-2026-04-04T01-41-29-141Z.yml +77 -0
- package/.playwright-mcp/page-2026-04-04T01-41-42-633Z.yml +190 -0
- package/.playwright-mcp/page-2026-04-04T01-42-03-929Z.yml +262 -0
- package/.playwright-mcp/page-2026-04-04T02-12-54-813Z.yml +6 -0
- package/.playwright-mcp/page-2026-04-04T02-14-58-600Z.yml +190 -0
- package/.playwright-mcp/page-2026-04-04T02-15-03-923Z.yml +190 -0
- package/.playwright-mcp/page-2026-04-04T02-15-07-426Z.yml +190 -0
- package/.playwright-mcp/page-2026-04-04T02-15-25-729Z.yml +262 -0
- package/.playwright-mcp/page-2026-04-04T02-16-22-984Z.yml +262 -0
- package/.playwright-mcp/page-2026-04-04T02-17-00-599Z.yml +190 -0
- package/.playwright-mcp/page-2026-04-04T02-17-50-874Z.yml +190 -0
- package/.playwright-mcp/page-2026-04-05T02-26-55-570Z.yml +6 -0
- package/AGENTS.md +48 -0
- package/CHANGELOG.md +131 -0
- package/README.md +552 -0
- package/assets/agent-mode.png +0 -0
- package/assets/categorize.png +0 -0
- package/assets/dashboard.png +0 -0
- package/assets/endpoint-proxy.png +0 -0
- package/assets/icon.png +0 -0
- package/assets/mcp-generate-image.png +0 -0
- package/assets/mcp-understand-image.png +0 -0
- package/assets/peek-token-flow.png +0 -0
- package/assets/playground.png +0 -0
- package/assets/sankey.png +0 -0
- package/cli/index.ts +2805 -0
- package/cli/legacyRewrite.ts +108 -0
- package/cli/modelRef.ts +24 -0
- package/dist/cli/index.js +2536 -0
- package/dist/cli/legacyRewrite.js +92 -0
- package/dist/cli/modelRef.js +20 -0
- package/dist/src/benchmark/artifacts.js +131 -0
- package/dist/src/benchmark/capabilityClassifier.js +81 -0
- package/dist/src/benchmark/capabilityStore.js +144 -0
- package/dist/src/benchmark/config.js +238 -0
- package/dist/src/benchmark/gates.js +118 -0
- package/dist/src/benchmark/jobs.js +252 -0
- package/dist/src/benchmark/runner.js +1847 -0
- package/dist/src/benchmark/schema.js +353 -0
- package/dist/src/benchmark/suites.js +314 -0
- package/dist/src/benchmark/tinyQaDataset.js +422 -0
- package/dist/src/benchmark/types.js +25 -0
- package/dist/src/config.js +47 -0
- package/dist/src/index.js +178 -0
- package/dist/src/mcp/client.js +215 -0
- package/dist/src/mcp/discovery.js +226 -0
- package/dist/src/mcp/policy.js +65 -0
- package/dist/src/mcp/registry.js +129 -0
- package/dist/src/mcp/service.js +460 -0
- package/dist/src/middleware/auth.js +179 -0
- package/dist/src/middleware/requestCapture.js +192 -0
- package/dist/src/middleware/requestStats.js +118 -0
- package/dist/src/pools/builder.js +132 -0
- package/dist/src/pools/repository.js +69 -0
- package/dist/src/pools/scheduler.js +360 -0
- package/dist/src/pools/types.js +2 -0
- package/dist/src/protocols/adapters/dashscope.js +267 -0
- package/dist/src/protocols/adapters/inferenceV2.js +346 -0
- package/dist/src/protocols/adapters/openai.js +27 -0
- package/dist/src/protocols/registry.js +99 -0
- package/dist/src/protocols/types.js +2 -0
- package/dist/src/providers/health.js +153 -0
- package/dist/src/providers/importer.js +289 -0
- package/dist/src/providers/modelRegistry.js +313 -0
- package/dist/src/providers/repository.js +361 -0
- package/dist/src/providers/types.js +2 -0
- package/dist/src/routes/admin.js +531 -0
- package/dist/src/routes/audio.js +295 -0
- package/dist/src/routes/chat.js +240 -0
- package/dist/src/routes/embeddings.js +157 -0
- package/dist/src/routes/images.js +288 -0
- package/dist/src/routes/mcp.js +256 -0
- package/dist/src/routes/mcpService.js +100 -0
- package/dist/src/routes/models.js +48 -0
- package/dist/src/routes/responses.js +711 -0
- package/dist/src/routes/sessions.js +450 -0
- package/dist/src/routes/stats.js +270 -0
- package/dist/src/routes/ui.js +97 -0
- package/dist/src/routes/videos.js +107 -0
- package/dist/src/routing/router.js +338 -0
- package/dist/src/services/imageGeneration.js +280 -0
- package/dist/src/services/imageUnderstanding.js +352 -0
- package/dist/src/services/videoGeneration.js +79 -0
- package/dist/src/storage/captureRepository.js +1591 -0
- package/dist/src/storage/files.js +157 -0
- package/dist/src/storage/imageCache.js +346 -0
- package/dist/src/storage/repositories.js +388 -0
- package/dist/src/storage/sessionRepository.js +370 -0
- package/dist/src/storage/statsRepository.js +204 -0
- package/dist/src/transport/httpClient.js +126 -0
- package/dist/src/types.js +2 -0
- package/dist/src/utils/messageMedia.js +285 -0
- package/dist/src/utils/modelCapabilities.js +108 -0
- package/dist/src/utils/modelDiscovery.js +170 -0
- package/dist/src/version.js +5 -0
- package/dist/src/workers/captureRetention.js +25 -0
- package/dist/src/workers/configWatcher.js +91 -0
- package/dist/src/workers/healthChecker.js +21 -0
- package/dist/src/workers/statsRotation.js +41 -0
- package/docs/LLM/output_schema.md +312 -0
- package/docs/benchmark.md +208 -0
- package/docs/mcp-guidelines.md +125 -0
- package/docs/mcp-service.md +178 -0
- package/docs/opencode.md +86 -0
- package/docs/providers.md +79 -0
- package/examples/benchmark.config.yaml +28 -0
- package/examples/providers/alibaba-dashscope.yaml +88 -0
- package/examples/providers/alibaba-llm.yaml +64 -0
- package/examples/providers/alibaba-registry.yaml +7 -0
- package/examples/providers/inference-v2-ray.yaml +29 -0
- package/examples/scenarios/assets/omni-call-sample.wav +0 -0
- package/examples/scenarios/custom.jsonl +5 -0
- package/examples/scenarios/custom.yaml +40 -0
- package/model-form-v2.png +0 -0
- package/package.json +66 -0
- package/provider-form-v2.png +0 -0
- package/provider-form.png +0 -0
- package/scripts/manual-test.sh +11 -0
- package/scripts/version-from-git.js +23 -0
- package/src/benchmark/artifacts.ts +149 -0
- package/src/benchmark/capabilityClassifier.ts +99 -0
- package/src/benchmark/capabilityStore.ts +174 -0
- package/src/benchmark/config.ts +337 -0
- package/src/benchmark/gates.ts +164 -0
- package/src/benchmark/jobs.ts +312 -0
- package/src/benchmark/runner.ts +2519 -0
- package/src/benchmark/schema.ts +443 -0
- package/src/benchmark/suites.ts +323 -0
- package/src/benchmark/tinyQaDataset.ts +428 -0
- package/src/benchmark/types.ts +442 -0
- package/src/config.ts +44 -0
- package/src/index.ts +195 -0
- package/src/mcp/client.ts +305 -0
- package/src/mcp/discovery.ts +266 -0
- package/src/mcp/policy.ts +105 -0
- package/src/mcp/registry.ts +164 -0
- package/src/mcp/service.ts +611 -0
- package/src/middleware/auth.ts +251 -0
- package/src/middleware/requestCapture.ts +245 -0
- package/src/middleware/requestStats.ts +163 -0
- package/src/pools/builder.ts +159 -0
- package/src/pools/repository.ts +71 -0
- package/src/pools/scheduler.ts +425 -0
- package/src/pools/types.ts +117 -0
- package/src/protocols/adapters/dashscope.ts +335 -0
- package/src/protocols/adapters/inferenceV2.ts +428 -0
- package/src/protocols/adapters/openai.ts +32 -0
- package/src/protocols/registry.ts +117 -0
- package/src/protocols/types.ts +81 -0
- package/src/providers/health.ts +207 -0
- package/src/providers/importer.ts +402 -0
- package/src/providers/modelRegistry.ts +415 -0
- package/src/providers/repository.ts +439 -0
- package/src/providers/types.ts +113 -0
- package/src/routes/admin.ts +666 -0
- package/src/routes/audio.ts +372 -0
- package/src/routes/chat.ts +301 -0
- package/src/routes/embeddings.ts +197 -0
- package/src/routes/images.ts +356 -0
- package/src/routes/mcp.ts +320 -0
- package/src/routes/mcpService.ts +114 -0
- package/src/routes/models.ts +50 -0
- package/src/routes/responses.ts +872 -0
- package/src/routes/sessions.ts +558 -0
- package/src/routes/stats.ts +312 -0
- package/src/routes/ui.ts +96 -0
- package/src/routes/videos.ts +132 -0
- package/src/routing/router.ts +501 -0
- package/src/services/imageGeneration.ts +396 -0
- package/src/services/imageUnderstanding.ts +449 -0
- package/src/services/videoGeneration.ts +127 -0
- package/src/storage/captureRepository.ts +1835 -0
- package/src/storage/files.ts +178 -0
- package/src/storage/imageCache.ts +405 -0
- package/src/storage/repositories.ts +494 -0
- package/src/storage/sessionRepository.ts +419 -0
- package/src/storage/statsRepository.ts +238 -0
- package/src/transport/httpClient.ts +145 -0
- package/src/types.ts +322 -0
- package/src/utils/messageMedia.ts +293 -0
- package/src/utils/modelCapabilities.ts +161 -0
- package/src/utils/modelDiscovery.ts +203 -0
- package/src/workers/captureRetention.ts +25 -0
- package/src/workers/configWatcher.ts +115 -0
- package/src/workers/healthChecker.ts +22 -0
- package/src/workers/statsRotation.ts +49 -0
- package/tests/benchmarkAdminRoutes.test.ts +82 -0
- package/tests/benchmarkBasics.test.ts +116 -0
- package/tests/captureAdminRoutes.test.ts +420 -0
- package/tests/captureRepository.test.ts +797 -0
- package/tests/cliLegacyRewrite.test.ts +45 -0
- package/tests/imageGeneration.service.test.ts +107 -0
- package/tests/imageUnderstanding.service.test.ts +123 -0
- package/tests/mcpPolicy.test.ts +105 -0
- package/tests/mcpService.test.ts +1245 -0
- package/tests/modelRef.test.ts +23 -0
- package/tests/modelsRoutes.test.ts +154 -0
- package/tests/sessionMediaCache.test.ts +167 -0
- package/tests/statsRoutes.test.ts +323 -0
- package/tsconfig.json +15 -0
- package/ui/index.html +16 -0
- package/ui/package-lock.json +8521 -0
- package/ui/package.json +52 -0
- package/ui/postcss.config.js +6 -0
- package/ui/public/assets/apple-touch-icon.png +0 -0
- package/ui/public/assets/favicon-16.png +0 -0
- package/ui/public/assets/favicon-32.png +0 -0
- package/ui/public/assets/icon-192.png +0 -0
- package/ui/public/assets/icon-512.png +0 -0
- package/ui/src/App.tsx +27 -0
- package/ui/src/api/client.ts +1503 -0
- package/ui/src/components/EndpointUsageGuide.tsx +361 -0
- package/ui/src/components/Layout.tsx +124 -0
- package/ui/src/components/MessageContent.tsx +365 -0
- package/ui/src/components/ToolCallMessage.tsx +179 -0
- package/ui/src/components/ToolPicker.tsx +442 -0
- package/ui/src/components/messageContentParser.test.ts +41 -0
- package/ui/src/components/messageContentParser.ts +73 -0
- package/ui/src/components/thinkingPreview.test.ts +27 -0
- package/ui/src/components/thinkingPreview.ts +15 -0
- package/ui/src/components/toMermaidSankey.test.ts +78 -0
- package/ui/src/components/toMermaidSankey.ts +56 -0
- package/ui/src/components/ui/button.tsx +58 -0
- package/ui/src/components/ui/input.tsx +21 -0
- package/ui/src/components/ui/textarea.tsx +21 -0
- package/ui/src/lib/utils.ts +6 -0
- package/ui/src/main.tsx +9 -0
- package/ui/src/pages/AgentPlayground.tsx +2010 -0
- package/ui/src/pages/Benchmark.tsx +988 -0
- package/ui/src/pages/Dashboard.tsx +581 -0
- package/ui/src/pages/Peek.tsx +962 -0
- package/ui/src/pages/Settings.tsx +2013 -0
- package/ui/src/pages/agentPlaygroundPayload.test.ts +109 -0
- package/ui/src/pages/agentPlaygroundPayload.ts +97 -0
- package/ui/src/pages/agentThinkingContent.test.ts +50 -0
- package/ui/src/pages/agentThinkingContent.ts +57 -0
- package/ui/src/pages/dashboardTokenUsage.test.ts +66 -0
- package/ui/src/pages/dashboardTokenUsage.ts +36 -0
- package/ui/src/pages/imageUpload.test.ts +39 -0
- package/ui/src/pages/imageUpload.ts +71 -0
- package/ui/src/pages/peekFilters.test.ts +29 -0
- package/ui/src/pages/peekFilters.ts +13 -0
- package/ui/src/pages/peekMedia.test.ts +58 -0
- package/ui/src/pages/peekMedia.ts +148 -0
- package/ui/src/pages/sessionAutoTitle.test.ts +128 -0
- package/ui/src/pages/sessionAutoTitle.ts +106 -0
- package/ui/src/stores/settings.ts +58 -0
- package/ui/src/styles/globals.css +223 -0
- package/ui/src/vite-env.d.ts +8 -0
- package/ui/tailwind.config.js +106 -0
- package/ui/tsconfig.json +32 -0
- package/ui/vite.config.ts +37 -0
|
@@ -0,0 +1,428 @@
|
|
|
1
|
+
export interface TinyQaRow {
|
|
2
|
+
id: number;
|
|
3
|
+
question: string;
|
|
4
|
+
answer: string;
|
|
5
|
+
context: string;
|
|
6
|
+
category: string;
|
|
7
|
+
difficulty: string;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
// Source: https://huggingface.co/datasets/vincentkoc/tiny_qa_benchmark (train split)
|
|
11
|
+
export const TINY_QA_BENCHMARK: TinyQaRow[] = [
|
|
12
|
+
{
|
|
13
|
+
"id": 1,
|
|
14
|
+
"question": "What is the capital of France?",
|
|
15
|
+
"answer": "Paris",
|
|
16
|
+
"context": "France is a country in Europe. Its capital is Paris.",
|
|
17
|
+
"category": "geography",
|
|
18
|
+
"difficulty": "easy"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"id": 2,
|
|
22
|
+
"question": "Who wrote Romeo and Juliet?",
|
|
23
|
+
"answer": "William Shakespeare",
|
|
24
|
+
"context": "Romeo and Juliet is a famous play written by William Shakespeare.",
|
|
25
|
+
"category": "literature",
|
|
26
|
+
"difficulty": "easy"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"id": 3,
|
|
30
|
+
"question": "What is 2 + 2?",
|
|
31
|
+
"answer": "4",
|
|
32
|
+
"context": "Basic arithmetic: 2 + 2 equals 4.",
|
|
33
|
+
"category": "math",
|
|
34
|
+
"difficulty": "easy"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"id": 4,
|
|
38
|
+
"question": "What is the largest planet in our solar system?",
|
|
39
|
+
"answer": "Jupiter",
|
|
40
|
+
"context": "Jupiter is the largest planet in our solar system.",
|
|
41
|
+
"category": "astronomy",
|
|
42
|
+
"difficulty": "easy"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"id": 5,
|
|
46
|
+
"question": "Who painted the Mona Lisa?",
|
|
47
|
+
"answer": "Leonardo da Vinci",
|
|
48
|
+
"context": "The Mona Lisa was painted by Leonardo da Vinci.",
|
|
49
|
+
"category": "art",
|
|
50
|
+
"difficulty": "easy"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"id": 6,
|
|
54
|
+
"question": "What is the derivative of sin(x)?",
|
|
55
|
+
"answer": "cos(x)",
|
|
56
|
+
"context": "In differential calculus, the derivative of sin(x) with respect to x is cos(x).",
|
|
57
|
+
"category": "calculus",
|
|
58
|
+
"difficulty": "medium"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"id": 7,
|
|
62
|
+
"question": "Who discovered penicillin?",
|
|
63
|
+
"answer": "Alexander Fleming",
|
|
64
|
+
"context": "Penicillin was discovered in 1928 by Alexander Fleming.",
|
|
65
|
+
"category": "biology",
|
|
66
|
+
"difficulty": "medium"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"id": 8,
|
|
70
|
+
"question": "What is 5 factorial?",
|
|
71
|
+
"answer": "120",
|
|
72
|
+
"context": "By definition, 5! = 5 × 4 × 3 × 2 × 1 = 120.",
|
|
73
|
+
"category": "math",
|
|
74
|
+
"difficulty": "easy"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"id": 9,
|
|
78
|
+
"question": "In what year did the Berlin Wall fall?",
|
|
79
|
+
"answer": "1989",
|
|
80
|
+
"context": "The Berlin Wall fell on November 9, 1989, marking the beginning of German reunification.",
|
|
81
|
+
"category": "history",
|
|
82
|
+
"difficulty": "medium"
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"id": 10,
|
|
86
|
+
"question": "What is the time complexity of binary search on a sorted array?",
|
|
87
|
+
"answer": "O(log n)",
|
|
88
|
+
"context": "Binary search splits the search interval in half each step, giving logarithmic time complexity.",
|
|
89
|
+
"category": "computer science",
|
|
90
|
+
"difficulty": "medium"
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"id": 11,
|
|
94
|
+
"question": "What is the atomic number of carbon?",
|
|
95
|
+
"answer": "6",
|
|
96
|
+
"context": "On the periodic table, carbon has atomic number 6.",
|
|
97
|
+
"category": "chemistry",
|
|
98
|
+
"difficulty": "easy"
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"id": 12,
|
|
102
|
+
"question": "What is the speed of light in vacuum (m/s)?",
|
|
103
|
+
"answer": "299792458",
|
|
104
|
+
"context": "By definition, the speed of light in vacuum is exactly 299,792,458 m/s.",
|
|
105
|
+
"category": "physics",
|
|
106
|
+
"difficulty": "medium"
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"id": 13,
|
|
110
|
+
"question": "What does HTTP stand for?",
|
|
111
|
+
"answer": "Hypertext Transfer Protocol",
|
|
112
|
+
"context": "HTTP is the foundation of data communication for the World Wide Web.",
|
|
113
|
+
"category": "computer science",
|
|
114
|
+
"difficulty": "easy"
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"id": 14,
|
|
118
|
+
"question": "What year did Apollo 11 land on the Moon?",
|
|
119
|
+
"answer": "1969",
|
|
120
|
+
"context": "Apollo 11 landed on the Moon on July 20, 1969.",
|
|
121
|
+
"category": "history",
|
|
122
|
+
"difficulty": "medium"
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"id": 15,
|
|
126
|
+
"question": "What is Euler’s identity?",
|
|
127
|
+
"answer": "e^(iπ) + 1 = 0",
|
|
128
|
+
"context": "Euler’s identity is often cited as an example of mathematical beauty.",
|
|
129
|
+
"category": "math",
|
|
130
|
+
"difficulty": "medium"
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"id": 16,
|
|
134
|
+
"question": "What is the boiling point of water at sea level (°C)?",
|
|
135
|
+
"answer": "100",
|
|
136
|
+
"context": "At standard atmospheric pressure, water boils at 100 °C.",
|
|
137
|
+
"category": "chemistry",
|
|
138
|
+
"difficulty": "easy"
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
"id": 17,
|
|
142
|
+
"question": "What is the capital of Nigeria?",
|
|
143
|
+
"answer": "Abuja",
|
|
144
|
+
"context": "Nigeria is a country in West Africa. Its capital is Abuja.",
|
|
145
|
+
"category": "geography",
|
|
146
|
+
"difficulty": "easy"
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"id": 18,
|
|
150
|
+
"question": "What is the capital of Australia?",
|
|
151
|
+
"answer": "Canberra",
|
|
152
|
+
"context": "Australia’s capital city is Canberra.",
|
|
153
|
+
"category": "geography",
|
|
154
|
+
"difficulty": "easy"
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
"id": 19,
|
|
158
|
+
"question": "What is the capital of Japan?",
|
|
159
|
+
"answer": "Tokyo",
|
|
160
|
+
"context": "Japan’s capital city is Tokyo.",
|
|
161
|
+
"category": "geography",
|
|
162
|
+
"difficulty": "easy"
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
"id": 20,
|
|
166
|
+
"question": "What is the square root of 81?",
|
|
167
|
+
"answer": "9",
|
|
168
|
+
"context": "The square root of 81 is 9.",
|
|
169
|
+
"category": "math",
|
|
170
|
+
"difficulty": "easy"
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
"id": 21,
|
|
174
|
+
"question": "What is the value of π to two decimal places?",
|
|
175
|
+
"answer": "3.14",
|
|
176
|
+
"context": "Pi (π) is approximately 3.14159…, which rounds to 3.14 at two decimal places.",
|
|
177
|
+
"category": "math",
|
|
178
|
+
"difficulty": "easy"
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
"id": 22,
|
|
182
|
+
"question": "What is the sum of the interior angles of a triangle in degrees?",
|
|
183
|
+
"answer": "180",
|
|
184
|
+
"context": "In Euclidean geometry, the interior angles of any triangle add up to 180 degrees.",
|
|
185
|
+
"category": "math",
|
|
186
|
+
"difficulty": "easy"
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
"id": 23,
|
|
190
|
+
"question": "Solve for x: x² - 4 = 0",
|
|
191
|
+
"answer": "x = 2 or x = -2",
|
|
192
|
+
"context": "The equation x² - 4 = 0 factors to (x - 2)(x + 2) = 0, so x = 2 or x = -2.",
|
|
193
|
+
"category": "math",
|
|
194
|
+
"difficulty": "easy"
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
"id": 24,
|
|
198
|
+
"question": "How many seconds are in one hour?",
|
|
199
|
+
"answer": "3600",
|
|
200
|
+
"context": "60 seconds × 60 minutes = 3600 seconds in one hour.",
|
|
201
|
+
"category": "time",
|
|
202
|
+
"difficulty": "easy"
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
"id": 25,
|
|
206
|
+
"question": "How many minutes are in a day?",
|
|
207
|
+
"answer": "1440",
|
|
208
|
+
"context": "24 hours × 60 minutes = 1440 minutes in a day.",
|
|
209
|
+
"category": "time",
|
|
210
|
+
"difficulty": "easy"
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
"id": 26,
|
|
214
|
+
"question": "How many hours are in a week?",
|
|
215
|
+
"answer": "168",
|
|
216
|
+
"context": "7 days × 24 hours = 168 hours in a week.",
|
|
217
|
+
"category": "time",
|
|
218
|
+
"difficulty": "easy"
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
"id": 27,
|
|
222
|
+
"question": "How many months have 31 days?",
|
|
223
|
+
"answer": "7",
|
|
224
|
+
"context": "January, March, May, July, August, October, and December each have 31 days.",
|
|
225
|
+
"category": "calendar",
|
|
226
|
+
"difficulty": "easy"
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
"id": 28,
|
|
230
|
+
"question": "Which galaxy is Earth located in?",
|
|
231
|
+
"answer": "The Milky Way",
|
|
232
|
+
"context": "Our Solar System resides in the Milky Way galaxy.",
|
|
233
|
+
"category": "astronomy",
|
|
234
|
+
"difficulty": "easy"
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
"id": 29,
|
|
238
|
+
"question": "What is the formula for kinetic energy?",
|
|
239
|
+
"answer": "½mv²",
|
|
240
|
+
"context": "Kinetic energy is defined as one-half mass times velocity squared.",
|
|
241
|
+
"category": "physics",
|
|
242
|
+
"difficulty": "medium"
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
"id": 30,
|
|
246
|
+
"question": "What is Newton’s second law of motion?",
|
|
247
|
+
"answer": "F = ma",
|
|
248
|
+
"context": "Newton’s second law states that force equals mass times acceleration.",
|
|
249
|
+
"category": "physics",
|
|
250
|
+
"difficulty": "medium"
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
"id": 31,
|
|
254
|
+
"question": "What is the standard acceleration due to gravity on Earth (m/s²)?",
|
|
255
|
+
"answer": "9.81",
|
|
256
|
+
"context": "Standard gravity is defined as 9.81 m/s².",
|
|
257
|
+
"category": "physics",
|
|
258
|
+
"difficulty": "medium"
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
"id": 32,
|
|
262
|
+
"question": "Which formula expresses mass–energy equivalence?",
|
|
263
|
+
"answer": "E = mc²",
|
|
264
|
+
"context": "Einstein’s mass–energy equivalence formula is E = mc².",
|
|
265
|
+
"category": "physics",
|
|
266
|
+
"difficulty": "medium"
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
"id": 33,
|
|
270
|
+
"question": "What is the powerhouse of the cell?",
|
|
271
|
+
"answer": "Mitochondria",
|
|
272
|
+
"context": "Mitochondria generate most of the cell’s supply of ATP and are known as the powerhouse of the cell.",
|
|
273
|
+
"category": "biology",
|
|
274
|
+
"difficulty": "easy"
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
"id": 34,
|
|
278
|
+
"question": "What molecule carries genetic information in most living organisms?",
|
|
279
|
+
"answer": "DNA",
|
|
280
|
+
"context": "Deoxyribonucleic acid (DNA) holds genetic blueprints for living organisms.",
|
|
281
|
+
"category": "biology",
|
|
282
|
+
"difficulty": "easy"
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
"id": 35,
|
|
286
|
+
"question": "Who wrote the novel 1984?",
|
|
287
|
+
"answer": "George Orwell",
|
|
288
|
+
"context": "1984 is a dystopian novel authored by George Orwell and published in 1949.",
|
|
289
|
+
"category": "literature",
|
|
290
|
+
"difficulty": "easy"
|
|
291
|
+
},
|
|
292
|
+
{
|
|
293
|
+
"id": 36,
|
|
294
|
+
"question": "Who wrote To Kill a Mockingbird?",
|
|
295
|
+
"answer": "Harper Lee",
|
|
296
|
+
"context": "To Kill a Mockingbird is a Pulitzer Prize–winning novel by Harper Lee.",
|
|
297
|
+
"category": "literature",
|
|
298
|
+
"difficulty": "easy"
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
"id": 37,
|
|
302
|
+
"question": "Who was the first President of the United States?",
|
|
303
|
+
"answer": "George Washington",
|
|
304
|
+
"context": "George Washington served as the first U.S. President from 1789 to 1797.",
|
|
305
|
+
"category": "history",
|
|
306
|
+
"difficulty": "easy"
|
|
307
|
+
},
|
|
308
|
+
{
|
|
309
|
+
"id": 38,
|
|
310
|
+
"question": "In which year did World War I begin?",
|
|
311
|
+
"answer": "1914",
|
|
312
|
+
"context": "World War I started on July 28, 1914.",
|
|
313
|
+
"category": "history",
|
|
314
|
+
"difficulty": "medium"
|
|
315
|
+
},
|
|
316
|
+
{
|
|
317
|
+
"id": 39,
|
|
318
|
+
"question": "In which year did World War II end?",
|
|
319
|
+
"answer": "1945",
|
|
320
|
+
"context": "World War II concluded on September 2, 1945.",
|
|
321
|
+
"category": "history",
|
|
322
|
+
"difficulty": "medium"
|
|
323
|
+
},
|
|
324
|
+
{
|
|
325
|
+
"id": 40,
|
|
326
|
+
"question": "What is the smallest country in the world by area?",
|
|
327
|
+
"answer": "Vatican City",
|
|
328
|
+
"context": "Vatican City covers about 44 hectares and is the world’s smallest independent state.",
|
|
329
|
+
"category": "geography",
|
|
330
|
+
"difficulty": "medium"
|
|
331
|
+
},
|
|
332
|
+
{
|
|
333
|
+
"id": 41,
|
|
334
|
+
"question": "Which element has the chemical symbol Au?",
|
|
335
|
+
"answer": "Gold",
|
|
336
|
+
"context": "Au comes from the Latin name aurum for the metal gold.",
|
|
337
|
+
"category": "chemistry",
|
|
338
|
+
"difficulty": "easy"
|
|
339
|
+
},
|
|
340
|
+
{
|
|
341
|
+
"id": 42,
|
|
342
|
+
"question": "What does GDP stand for?",
|
|
343
|
+
"answer": "Gross Domestic Product",
|
|
344
|
+
"context": "GDP measures the total market value of all final goods and services produced in a country.",
|
|
345
|
+
"category": "economics",
|
|
346
|
+
"difficulty": "medium"
|
|
347
|
+
},
|
|
348
|
+
{
|
|
349
|
+
"id": 43,
|
|
350
|
+
"question": "What is the currency of Japan?",
|
|
351
|
+
"answer": "Yen",
|
|
352
|
+
"context": "The official currency of Japan is the Yen (¥).",
|
|
353
|
+
"category": "economics",
|
|
354
|
+
"difficulty": "easy"
|
|
355
|
+
},
|
|
356
|
+
{
|
|
357
|
+
"id": 44,
|
|
358
|
+
"question": "What is the output of print(len([1, 2, 3])) in Python?",
|
|
359
|
+
"answer": "3",
|
|
360
|
+
"context": "len([1, 2, 3]) returns the number of items in the list, which is 3.",
|
|
361
|
+
"category": "computer science",
|
|
362
|
+
"difficulty": "easy"
|
|
363
|
+
},
|
|
364
|
+
{
|
|
365
|
+
"id": 45,
|
|
366
|
+
"question": "In Python, what keyword is used to define a function?",
|
|
367
|
+
"answer": "def",
|
|
368
|
+
"context": "The def keyword introduces a function definition in Python.",
|
|
369
|
+
"category": "computer science",
|
|
370
|
+
"difficulty": "easy"
|
|
371
|
+
},
|
|
372
|
+
{
|
|
373
|
+
"id": 46,
|
|
374
|
+
"question": "In JavaScript, what keyword declares a variable with block scope?",
|
|
375
|
+
"answer": "let",
|
|
376
|
+
"context": "let declares a block-scoped local variable in JavaScript.",
|
|
377
|
+
"category": "computer science",
|
|
378
|
+
"difficulty": "easy"
|
|
379
|
+
},
|
|
380
|
+
{
|
|
381
|
+
"id": 47,
|
|
382
|
+
"question": "What is the average-case time complexity of quicksort?",
|
|
383
|
+
"answer": "O(n log n)",
|
|
384
|
+
"context": "Quicksort on average partitions arrays in half each recursion, yielding O(n log n).",
|
|
385
|
+
"category": "computer science",
|
|
386
|
+
"difficulty": "medium"
|
|
387
|
+
},
|
|
388
|
+
{
|
|
389
|
+
"id": 48,
|
|
390
|
+
"question": "If P implies Q and Q implies R, does P imply R?",
|
|
391
|
+
"answer": "Yes",
|
|
392
|
+
"context": "By transitivity of implication, if P ⇒ Q and Q ⇒ R, then P ⇒ R.",
|
|
393
|
+
"category": "logic",
|
|
394
|
+
"difficulty": "medium"
|
|
395
|
+
},
|
|
396
|
+
{
|
|
397
|
+
"id": 49,
|
|
398
|
+
"question": "If all cats are mammals and some mammals are black, can we conclude that some cats are black?",
|
|
399
|
+
"answer": "No",
|
|
400
|
+
"context": "The premises do not guarantee any overlap between cats and the subset of black mammals.",
|
|
401
|
+
"category": "logic",
|
|
402
|
+
"difficulty": "medium"
|
|
403
|
+
},
|
|
404
|
+
{
|
|
405
|
+
"id": 50,
|
|
406
|
+
"question": "What is the binary representation of decimal 10?",
|
|
407
|
+
"answer": "1010",
|
|
408
|
+
"context": "10 in base-10 converts to 1010 in base-2.",
|
|
409
|
+
"category": "computer science",
|
|
410
|
+
"difficulty": "easy"
|
|
411
|
+
},
|
|
412
|
+
{
|
|
413
|
+
"id": 51,
|
|
414
|
+
"question": "In git, what command stages changes for commit?",
|
|
415
|
+
"answer": "git add",
|
|
416
|
+
"context": "git add adds changes in the working directory to the staging area.",
|
|
417
|
+
"category": "computer science",
|
|
418
|
+
"difficulty": "medium"
|
|
419
|
+
},
|
|
420
|
+
{
|
|
421
|
+
"id": 52,
|
|
422
|
+
"question": "What is Big O notation used for?",
|
|
423
|
+
"answer": "Describing algorithm complexity",
|
|
424
|
+
"context": "Big O notation characterizes an algorithm’s performance in terms of input size.",
|
|
425
|
+
"category": "computer science",
|
|
426
|
+
"difficulty": "medium"
|
|
427
|
+
}
|
|
428
|
+
];
|