Skip to content

DeepTutor: Lifelong Personalized Tutoring. https://deeptutor.info/.

v1.0.3

Bingxi Zhao (Frank)8659d996f5e1
diff --git a/README.md b/README.md
index 00664f683..4450756f7 100644
--- a/README.md
+++ b/README.md
@@ -23,9 +23,10 @@
</div>
---
-
### ๐Ÿ“ฆ Releases
+> **[2026.4.13]** [v1.0.3](https://github.com/HKUDS/DeepTutor/releases/tag/v1.0.3) โ€” Question Notebook for unified quiz review with bookmarks & categories, Mermaid diagram support in Visualize, embedding model mismatch detection, system message merging for Qwen/vLLM compatibility, LM Studio & llama.cpp provider support, and Glass theme.
+
> **[2026.4.11]** [v1.0.2](https://github.com/HKUDS/DeepTutor/releases/tag/v1.0.2) โ€” Search consolidation simplification with SearXNG fallback, provider switch fix, explicit runtime config in test runner, and frontend resource leak fixes.
> **[2026.4.10]** [v1.0.1](https://github.com/HKUDS/DeepTutor/releases/tag/v1.0.1) โ€” New Visualize capability with Chart.js/SVG rendering pipeline, quiz duplicate prevention with generation history, o4-mini model support, and server logging improvements.
@@ -38,17 +39,6 @@
> **[2026.4.4]** [v1.0.0-beta.1](https://github.com/HKUDS/DeepTutor/releases/tag/v1.0.0-beta.1) โ€” Agent-native architecture rewrite (๏ฝž200k lines) with two-layer plugin model (Tools + Capabilities), CLI & SDK entry points, TutorBot multi-channel bot agent, Co-Writer, Guided Learning, and persistent memory.
-### ๐Ÿ“ฐ News
-
-> **[2026.4.4]** Long time no see! โœจ DeepTutor v1.0.0 is finally here โ€” an agent-native evolution featuring a ground-up architecture rewrite, TutorBot, and flexible mode switching under the Apache-2.0 license. A new chapter begins, and our story continues!
-
-> **[2026.2.6]** ๐Ÿš€ We've reached 10k stars in just 39 days! A huge thank you to our incredible community for the support!
-
-> **[2026.1.1]** Happy New Year! Join our [Discord](https://discord.gg/eRsjPgMU4t), [WeChat](https://github.com/HKUDS/DeepTutor/issues/78), or [Discussions](https://github.com/HKUDS/DeepTutor/discussions) โ€” let's shape the future of DeepTutor together!
-
-> **[2025.12.29]** DeepTutor is officially released!
-
-
<details>
<summary><b>Past releases</b></summary>
@@ -66,6 +56,17 @@
</details>
+### ๐Ÿ“ฐ News
+
+> **[2026.4.4]** Long time no see! โœจ DeepTutor v1.0.0 is finally here โ€” an agent-native evolution featuring a ground-up architecture rewrite, TutorBot, and flexible mode switching under the Apache-2.0 license. A new chapter begins, and our story continues!
+
+> **[2026.2.6]** ๐Ÿš€ We've reached 10k stars in just 39 days! A huge thank you to our incredible community for the support!
+
+> **[2026.1.1]** Happy New Year! Join our [Discord](https://discord.gg/eRsjPgMU4t), [WeChat](https://github.com/HKUDS/DeepTutor/issues/78), or [Discussions](https://github.com/HKUDS/DeepTutor/discussions) โ€” let's shape the future of DeepTutor together!
+
+> **[2025.12.29]** DeepTutor is officially released!
+
+
## โœจ Key Features
- **Unified Chat Workspace** โ€” Five modes, one thread. Chat, Deep Solve, Quiz Generation, Deep Research, and Math Animator share the same context โ€” start a conversation, escalate to multi-agent problem solving, generate quizzes, then deep-dive into research, all without losing a single message.
@@ -159,6 +160,8 @@ EMBEDDING_DIMENSION=3072
| Gemini | `gemini` | `https://generativelanguage.googleapis.com/v1beta/openai/` |
| GitHub Copilot | `github_copilot` | `https://api.githubcopilot.com` |
| Groq | `groq` | `https://api.groq.com/openai/v1` |
+| llama.cpp | `llama_cpp` | `http://localhost:8080/v1` |
+| LM Studio | `lm_studio` | `http://localhost:1234/v1` |
| MiniMax | `minimax` | `https://api.minimax.io/v1` |
| Mistral | `mistral` | `https://api.mistral.ai/v1` |
| Moonshot (Kimi) | `moonshot` | `https://api.moonshot.ai/v1` |
@@ -188,6 +191,7 @@ Embedding uses the same provider list as LLM. Common choices:
| OpenAI | `openai` | `text-embedding-3-large` |
| DashScope | `dashscope` | `text-embedding-v3` |
| Ollama | `ollama` | `nomic-embed-text` |
+| LM Studio | `lm_studio` | Any embedding model |
| SiliconFlow | `siliconflow` | `BAAI/bge-m3` |
| vLLM | `vllm` | Any embedding model |
| Any OpenAI-compatible | `custom` | โ€” |
diff --git a/assets/releases/ver1-0-3.md b/assets/releases/ver1-0-3.md
new file mode 100644
index 000000000..7e2216a3b
--- /dev/null
+++ b/assets/releases/ver1-0-3.md
@@ -0,0 +1,37 @@
+# DeepTutor v1.0.3 Release Notes
+
+**Release Date:** 2026.04.13
+
+## Highlights
+
+### Question Notebook โ€” Unified Quiz Review System
+Replaced the single-purpose "Wrong Answer Note" with a full **Question Notebook** that stores every quiz question (correct and incorrect) with rich metadata โ€” question type, options, explanation, and difficulty. Each entry supports **bookmarking** and **category tagging** for organised review. A new dedicated `/notebook` page provides filtering (all / bookmarked / wrong), category management (create, rename, delete), and direct links back to the originating session. The `QuizViewer` component now integrates inline bookmark and category controls so users can organise questions without leaving the quiz flow.
+
+### Mermaid Diagram Support in Visualize
+Extended the Visualize capability with a third render type โ€” **Mermaid**. The analysis agent now chooses between `svg`, `chartjs`, and `mermaid`, preferring Mermaid for structured diagrams (flowcharts, sequence diagrams, class diagrams, mindmaps, etc.). The code generator and review agents received corresponding prompt updates, and the frontend `VisualizationViewer` renders Mermaid diagrams via a dedicated `<Mermaid>` component.
+
+### Embedding Model Mismatch Detection
+Knowledge bases now record the embedding model and dimension used at index time. On load, the system compares stored fingerprints against the currently configured embedding model; mismatched KBs are flagged with `embedding_mismatch` and `needs_reindex`. The RAG search pipeline surfaces a warning when querying a mismatched KB, and the Knowledge page displays an alert badge so users know to re-index.
+
+### System Message Merging for Qwen / vLLM Compatibility
+Consolidated multiple system messages into a single merged system message in both `AgenticChatPipeline` and `ChatAgent`, fixing compatibility with Qwen models served via vLLM that reject multi-system-message conversations. The context builder now filters duplicate system messages from stored history to avoid redundancy.
+
+### LM Studio & llama.cpp Provider Support
+Added first-class `ProviderSpec` entries for **LM Studio** (`localhost:1234`) and **llama.cpp** (`localhost:8080`) with automatic base-URL detection and the `openai_compat` backend, plus embedding-provider alias mapping.
+
+### Glass Theme
+Introduced a new **Glass** theme with frosted-glass card surfaces, gradient backgrounds, and glow-accent buttons. The theme switcher now cycles through light โ†’ dark โ†’ glass.
+
+### Deep Research Reporting Agent Resilience
+Extracted a shared `_call_llm_json` helper with configurable retry logic in the reporting agent, replacing three identical inline LLM-call-then-parse blocks for introduction, section body, and conclusion generation.
+
+### Documentation Migration
+Removed the legacy VitePress `docs/` folder; documentation has been migrated to the project website.
+
+## Community Contributions
+
+- **@cskwork** โ€” Wrong-answer note for cross-session quiz review (#292)
+- **@OlegSob-glitch** โ€” Merge system messages and add history reference fallback (#295)
+- **@SuperMarioYL** โ€” Embedding model mismatch detection in knowledge bases (#299)
+
+**Full Changelog**: https://github.com/HKUDS/DeepTutor/compare/v1.0.2...v1.0.3
diff --git a/deeptutor/agents/chat/agentic_pipeline.py b/deeptutor/agents/chat/agentic_pipeline.py
index f879e3fcc..7b2df7646 100644
--- a/deeptutor/agents/chat/agentic_pipeline.py
+++ b/deeptutor/agents/chat/agentic_pipeline.py
@@ -851,21 +851,18 @@ class AgenticChatPipeline:
system_prompt: str,
user_content: str,
) -> list[dict[str, Any]]:
- # Merge all system content into a single message to comply with Qwen vLLM requirements
system_parts = [system_prompt]
if context.memory_context:
system_parts.append(context.memory_context)
- system_content = "\n\n".join(system_parts)
-
- messages: list[dict[str, Any]] = [{"role": "system", "content": system_content}]
-
- # Add conversation history (filter out system messages to avoid duplicates)
+
+ messages: list[dict[str, Any]] = [
+ {"role": "system", "content": "\n\n".join(system_parts)}
+ ]
for item in context.conversation_history:
role = item.get("role")
content = item.get("content")
if role in {"user", "assistant"} and isinstance(content, (str, list)):
messages.append({"role": role, "content": content})
-
messages.append({"role": "user", "content": user_content})
return messages
diff --git a/deeptutor/agents/chat/chat_agent.py b/deeptutor/agents/chat/chat_agent.py
index aa1cf1369..4d78dc4d1 100644
--- a/deeptutor/agents/chat/chat_agent.py
+++ b/deeptutor/agents/chat/chat_agent.py
@@ -245,13 +245,11 @@ class ChatAgent(BaseAgent):
"""
messages = []
- # Merge system prompt and context into single system message to comply with Qwen vLLM requirements
system_parts = [self.get_prompt("system", "You are a helpful AI assistant.")]
if context:
context_template = self.get_prompt("context_template", "Reference context:\n{context}")
system_parts.append(context_template.format(context=context))
- system_content = "\n\n".join(system_parts)
- messages.append({"role": "system", "content": system_content})
+ messages.append({"role": "system", "content": "\n\n".join(system_parts)})
# Add conversation history
for msg in history:
diff --git a/deeptutor/agents/research/agents/reporting_agent.py b/deeptutor/agents/research/agents/reporting_agent.py
index ce0e8c896..b11b67336 100644
--- a/deeptutor/agents/research/agents/reporting_agent.py
+++ b/deeptutor/agents/research/agents/reporting_agent.py
@@ -518,6 +518,45 @@ class ReportingAgent(BaseAgent):
return "\n".join(lines)
+ async def _call_llm_json(
+ self,
+ prompt: str,
+ system_prompt: str,
+ stage: str,
+ trace_label: str,
+ required_keys: list[str],
+ max_retries: int = 1,
+ ) -> dict[str, Any]:
+ """Call LLM and extract JSON with retry logic."""
+ last_error = None
+ for attempt in range(max_retries + 1):
+ if attempt > 0:
+ self.logger.info(f"Retrying {stage} (attempt {attempt}/{max_retries})...")
+
+ _chunks: list[str] = []
+ async for _c in self.stream_llm(
+ prompt,
+ system_prompt,
+ stage=stage,
+ trace_meta=self._build_trace_meta(trace_label),
+ ):
+ _chunks.append(_c)
+ resp = "".join(_chunks)
+ data = extract_json_from_text(resp)
+
+ try:
+ obj = ensure_json_dict(data)
+ ensure_keys(obj, required_keys)
+ return obj
+ except (ValueError, KeyError) as e:
+ last_error = e
+ self.logger.warning(f"JSON parsing failed for {stage} (attempt {attempt}): {e}")
+
+ raise ValueError(
+ f"Failed to get valid JSON from LLM after {max_retries} retries for {stage}. "
+ f"Required keys: {required_keys}. Last error: {last_error}"
+ )
+
async def _write_introduction(
self, topic: str, blocks: list[TopicBlock], outline: dict[str, Any]
) -> str:
@@ -562,28 +601,14 @@ class ReportingAgent(BaseAgent):
self._get_mode_contract("introduction"),
)
- _chunks: list[str] = []
- async for _c in self.stream_llm(
- filled,
- system_prompt,
+ data = await self._call_llm_json(
+ prompt=filled,
+ system_prompt=system_prompt,
stage="write_introduction",
- trace_meta=self._build_trace_meta("Write introduction"),
- ):
- _chunks.append(_c)
- resp = "".join(_chunks)
- data = extract_json_from_text(resp)
-
- try:
- obj = ensure_json_dict(data)
- ensure_keys(obj, ["introduction"])
- intro = obj.get("introduction", "")
- if isinstance(intro, str) and intro.strip():
- return intro
- raise ValueError("LLM returned empty or invalid introduction field")
- except Exception as e:
- raise ValueError(
- f"Unable to parse LLM returned introduction content: {e!s}. Report generation failed."
- )
+ trace_label="Write introduction",
+ required_keys=["introduction"],
+ )
+ return data["introduction"]
async def _write_section_body(
self, topic: str, block: TopicBlock, section_outline: dict[str, Any]
@@ -638,28 +663,14 @@ class ReportingAgent(BaseAgent):
self._get_mode_contract("section"),
)
- _chunks: list[str] = []
- async for _c in self.stream_llm(
- filled,
- system_prompt,
+ data = await self._call_llm_json(
+ prompt=filled,
+ system_prompt=system_prompt,
stage="write_section_body",
- trace_meta=self._build_trace_meta("Write section"),
- ):
- _chunks.append(_c)
- resp = "".join(_chunks)
- data = extract_json_from_text(resp)
-
- try:
- obj = ensure_json_dict(data)
- ensure_keys(obj, ["section_content"])
- content = obj.get("section_content", "")
- if isinstance(content, str) and content.strip():
- return content
- raise ValueError("LLM returned empty or invalid section_content field")
- except Exception as e:
- raise ValueError(
- f"Unable to parse LLM returned section content: {e!s}. Report generation failed."
- )
+ trace_label="Write section",
+ required_keys=["section_content"],
+ )
+ return data["section_content"]
async def _write_conclusion(
self, topic: str, blocks: list[TopicBlock], outline: dict[str, Any]
@@ -710,28 +721,14 @@ class ReportingAgent(BaseAgent):
self._get_mode_contract("conclusion"),
)
- _chunks: list[str] = []
- async for _c in self.stream_llm(
- filled,
- system_prompt,
+ data = await self._call_llm_json(
+ prompt=filled,
+ system_prompt=system_prompt,
stage="write_conclusion",
- trace_meta=self._build_trace_meta("Write conclusion"),
- ):
- _chunks.append(_c)
- resp = "".join(_chunks)
- data = extract_json_from_text(resp)
-
- try:
- obj = ensure_json_dict(data)
- ensure_keys(obj, ["conclusion"])
- conclusion = obj.get("conclusion", "")
- if isinstance(conclusion, str) and conclusion.strip():
- return conclusion
- raise ValueError("LLM returned empty or invalid conclusion field")
- except Exception as e:
- raise ValueError(
- f"Unable to parse LLM returned conclusion content: {e!s}. Report generation failed."
- )
+ trace_label="Write conclusion",
+ required_keys=["conclusion"],
+ )
+ return data["conclusion"]
def _build_citation_number_map(self, blocks: list[TopicBlock]) -> dict[str, int]:
"""Build citation_id to reference number mapping with deduplication
diff --git a/deeptutor/agents/visualize/agents/analysis_agent.py b/deeptutor/agents/visualize/agents/analysis_agent.py
index 4265e685d..0fd457b69 100644
--- a/deeptutor/agents/visualize/agents/analysis_agent.py
+++ b/deeptutor/agents/visualize/agents/analysis_agent.py
@@ -33,7 +33,7 @@ class AnalysisAgent(BaseAgent):
history_context: str,
render_mode: str = "auto",
) -> VisualizationAnalysis:
- if render_mode in ("svg", "chartjs"):
+ if render_mode in ("svg", "chartjs", "mermaid"):
system_prompt = self.get_prompt("system_fixed")
user_template = self.get_prompt("user_template_fixed")
else:
@@ -46,7 +46,7 @@ class AnalysisAgent(BaseAgent):
"user_input": user_input.strip(),
"history_context": history_context.strip() or "(none)",
}
- if render_mode in ("svg", "chartjs"):
+ if render_mode in ("svg", "chartjs", "mermaid"):
format_kwargs["render_type"] = render_mode
user_prompt = user_template.format(**format_kwargs)
@@ -69,6 +69,6 @@ class AnalysisAgent(BaseAgent):
chunks.append(chunk)
response = "".join(chunks)
result = VisualizationAnalysis.model_validate(extract_json_object(response))
- if render_mode in ("svg", "chartjs"):
+ if render_mode in ("svg", "chartjs", "mermaid"):
result.render_type = render_mode # type: ignore[assignment]
return result
diff --git a/deeptutor/agents/visualize/agents/code_generator_agent.py b/deeptutor/agents/visualize/agents/code_generator_agent.py
index e10c01688..c26be402a 100644
--- a/deeptutor/agents/visualize/agents/code_generator_agent.py
+++ b/deeptutor/agents/visualize/agents/code_generator_agent.py
@@ -64,5 +64,10 @@ class CodeGeneratorAgent(BaseAgent):
chunks.append(chunk)
response = "".join(chunks)
- lang_hint = "svg" if analysis.render_type == "svg" else "javascript"
+ if analysis.render_type == "svg":
+ lang_hint = "svg"
+ elif analysis.render_type == "mermaid":
+ lang_hint = "mermaid"
+ else:
+ lang_hint = "javascript"
return extract_code_block(response, lang_hint) or extract_code_block(response)
diff --git a/deeptutor/agents/visualize/models.py b/deeptutor/agents/visualize/models.py
index ae1d3eae7..9345f6391 100644
--- a/deeptutor/agents/visualize/models.py
+++ b/deeptutor/agents/visualize/models.py
@@ -10,8 +10,8 @@ from pydantic import BaseModel, Field
class VisualizationAnalysis(BaseModel):
"""Output of the analysis stage."""
- render_type: Literal["svg", "chartjs"] = Field(
- description="Whether to render as raw SVG or as a Chart.js configuration.",
+ render_type: Literal["svg", "chartjs", "mermaid"] = Field(
+ description="Whether to render as raw SVG, a Chart.js configuration, or Mermaid diagram code.",
)
description: str = Field(
default="",
@@ -23,7 +23,11 @@ class VisualizationAnalysis(BaseModel):
)
chart_type: str = Field(
default="",
- description="Chart.js chart type (bar, line, pie, doughnut, radar, etc.) when render_type is chartjs.",
+ description=(
+ "Chart.js chart type (bar, line, pie, doughnut, radar, etc.) when render_type is chartjs, "
+ "or Mermaid diagram type (flowchart, sequenceDiagram, mindmap, classDiagram, stateDiagram, etc.) "
+ "when render_type is mermaid."
+ ),
)
visual_elements: list[str] = Field(
default_factory=list,
diff --git a/deeptutor/agents/visualize/prompts/en/analysis_agent.yaml b/deeptutor/agents/visualize/prompts/en/analysis_agent.yaml
index 90ecad3dd..dd292bb8d 100644
--- a/deeptutor/agents/visualize/prompts/en/analysis_agent.yaml
+++ b/deeptutor/agents/visualize/prompts/en/analysis_agent.yaml
@@ -2,12 +2,16 @@ system: |
You are a visualization analyst. Given a user request and conversation history,
decide the best rendering approach and produce a structured analysis.
- Choose between two render types:
- - "svg": Use when the visualization is a diagram, flowchart, illustration, schematic,
- concept map, architecture diagram, or any free-form graphic that does not represent
- quantitative data in a standard chart form.
+ Choose between three render types:
+ - "svg": Use when the visualization is a custom illustration, schematic, or any
+ free-form graphic that requires precise coordinate-level control and does not
+ fit a standard chart or structured diagram.
- "chartjs": Use when the visualization involves quantitative data that fits a
standard chart type (bar, line, pie, doughnut, radar, scatter, bubble, polar area).
+ - "mermaid": Use when the visualization is a structured diagram such as a flowchart,
+ sequence diagram, class diagram, state diagram, entity-relationship diagram,
+ Gantt chart, mindmap, or any graph that can be expressed with Mermaid.js syntax.
+ Prefer mermaid over svg for these structured diagram types.
Return your analysis as a single JSON object. Do not include any text outside the JSON.
@@ -20,10 +24,10 @@ user_template: |
Return JSON:
{{
- "render_type": "svg" or "chartjs",
+ "render_type": "svg" or "chartjs" or "mermaid",
"description": "High-level description of what the visualization should show",
"data_description": "Description of the data or elements to be visualized",
- "chart_type": "Chart.js chart type if render_type is chartjs, otherwise empty string",
+ "chart_type": "Chart.js chart type if chartjs, Mermaid diagram type if mermaid, otherwise empty string",
"visual_elements": ["key visual elements to include"],
"rationale": "Why this render_type was chosen"
}}
@@ -49,7 +53,7 @@ user_template_fixed: |
"render_type": "{render_type}",
"description": "High-level description of what the visualization should show",
"data_description": "Description of the data or elements to be visualized",
- "chart_type": "Chart.js chart type if render_type is chartjs, otherwise empty string",
+ "chart_type": "Chart.js chart type if chartjs, Mermaid diagram type if mermaid, otherwise empty string",
"visual_elements": ["key visual elements to include"],
"rationale": "Analysis notes"
}}
diff --git a/deeptutor/agents/visualize/prompts/en/code_generator_agent.yaml b/deeptutor/agents/visualize/prompts/en/code_generator_agent.yaml
index 8f16bca78..5b0ebbf92 100644
--- a/deeptutor/agents/visualize/prompts/en/code_generator_agent.yaml
+++ b/deeptutor/agents/visualize/prompts/en/code_generator_agent.yaml
@@ -11,9 +11,14 @@ system: |
can be passed as the configuration to `new Chart(ctx, config)`.
The config must include `type`, `data`, and `options` fields.
Use modern color palettes and ensure labels are readable.
+ - If render_type is "mermaid", output valid Mermaid.js diagram code.
+ The code must start with a valid diagram type keyword (graph, flowchart,
+ sequenceDiagram, classDiagram, stateDiagram-v2, erDiagram, gantt, mindmap, etc.).
+ Use clear node labels and readable edge descriptions. Do NOT use spaces in
+ node IDs โ€” use camelCase or underscores. Avoid reserved keywords as node IDs.
- Do NOT include any explanation outside the code fence.
- Wrap the code in a fenced code block with the appropriate language tag
- (```svg or ```javascript).
+ (```svg, ```javascript, or ```mermaid).
user_template: |
User request:
@@ -30,3 +35,4 @@ user_template: |
Generate the visualization code now. Wrap it in a fenced code block:
- For SVG: ```svg ... ```
- For Chart.js: ```javascript ... ```
+ - For Mermaid: ```mermaid ... ```
diff --git a/deeptutor/agents/visualize/prompts/en/review_agent.yaml b/deeptutor/agents/visualize/prompts/en/review_agent.yaml
index 44a6ccb5a..e9fb48583 100644
--- a/deeptutor/agents/visualize/prompts/en/review_agent.yaml
+++ b/deeptutor/agents/visualize/prompts/en/review_agent.yaml
@@ -16,6 +16,14 @@ system: |
- Color accessibility and readability
- Responsive configuration
+ For Mermaid code, check:
+ - Valid Mermaid.js syntax with correct diagram type keyword
+ - No spaces in node IDs (use camelCase or underscores)
+ - No reserved keywords (end, subgraph, graph) as bare node IDs
+ - Clear and readable node labels and edge descriptions
+ - Proper subgraph structure and nesting if used
+ - No syntax errors that would cause rendering failure
+
If the code is already good, return it unchanged with changed=false.
If you make improvements, return the optimized code with changed=true.
diff --git a/deeptutor/agents/visualize/prompts/zh/analysis_agent.yaml b/deeptutor/agents/visualize/prompts/zh/analysis_agent.yaml
index 5bd7248da..bd369688b 100644
--- a/deeptutor/agents/visualize/prompts/zh/analysis_agent.yaml
+++ b/deeptutor/agents/visualize/prompts/zh/analysis_agent.yaml
@@ -1,9 +1,10 @@
system: |
ไฝ ๆ˜ฏไธ€ไธชๅฏ่ง†ๅŒ–ๅˆ†ๆžๅธˆใ€‚ๆ นๆฎ็”จๆˆท่ฏทๆฑ‚ๅ’Œๅฏน่ฏๅކๅฒ๏ผŒๅ†ณๅฎšๆœ€ไฝณ็š„ๆธฒๆŸ“ๆ–นๅผๅนถ็”Ÿๆˆ็ป“ๆž„ๅŒ–ๅˆ†ๆžใ€‚
- ๅœจไธค็งๆธฒๆŸ“็ฑปๅž‹ไธญ้€‰ๆ‹ฉ๏ผš
- - "svg"๏ผšๅฝ“ๅฏ่ง†ๅŒ–ๆ˜ฏๆต็จ‹ๅ›พใ€็คบๆ„ๅ›พใ€ๆฆ‚ๅฟตๅ›พใ€ๆžถๆž„ๅ›พๆˆ–ไปปไฝ•ไธ้€‚ๅˆๆ ‡ๅ‡†ๅ›พ่กจๅฝขๅผ็š„่‡ช็”ฑๅ›พๅฝขๆ—ถไฝฟ็”จใ€‚
+ ๅœจไธ‰็งๆธฒๆŸ“็ฑปๅž‹ไธญ้€‰ๆ‹ฉ๏ผš
+ - "svg"๏ผšๅฝ“ๅฏ่ง†ๅŒ–ๆ˜ฏ่‡ชๅฎšไน‰ๆ’ๅ›พใ€็คบๆ„ๅ›พๆˆ–ไปปไฝ•้œ€่ฆ็ฒพ็กฎๅๆ ‡ๆŽงๅˆถ็š„่‡ช็”ฑๅ›พๅฝข๏ผŒไธ”ไธ้€‚ๅˆๆ ‡ๅ‡†ๅ›พ่กจๆˆ–็ป“ๆž„ๅŒ–ๅ›พๅฝขๆ—ถไฝฟ็”จใ€‚
- "chartjs"๏ผšๅฝ“ๅฏ่ง†ๅŒ–ๆถ‰ๅŠๅฏไปฅ็”จๆ ‡ๅ‡†ๅ›พ่กจ็ฑปๅž‹๏ผˆๆŸฑ็Šถๅ›พใ€ๆŠ˜็บฟๅ›พใ€้ฅผๅ›พใ€็Žฏๅฝขๅ›พใ€้›ท่พพๅ›พใ€ๆ•ฃ็‚นๅ›พใ€ๆฐ”ๆณกๅ›พใ€ๆžๅๆ ‡ๅ›พ๏ผ‰่กจ็คบ็š„ๅฎš้‡ๆ•ฐๆฎๆ—ถไฝฟ็”จใ€‚
+ - "mermaid"๏ผšๅฝ“ๅฏ่ง†ๅŒ–ๆ˜ฏ็ป“ๆž„ๅŒ–ๅ›พๅฝขๆ—ถไฝฟ็”จ๏ผŒๅฆ‚ๆต็จ‹ๅ›พใ€ๅบๅˆ—ๅ›พใ€็ฑปๅ›พใ€็Šถๆ€ๅ›พใ€ๅฎžไฝ“ๅ…ณ็ณปๅ›พใ€็”˜็‰นๅ›พใ€ๆ€็ปดๅฏผๅ›พๆˆ–ไปปไฝ•ๅฏไปฅ็”จ Mermaid.js ่ฏญๆณ•่กจ่พพ็š„ๅ›พๅฝขใ€‚ๅฏนไบŽ่ฟ™ไบ›็ป“ๆž„ๅŒ–ๅ›พๅฝข็ฑปๅž‹๏ผŒไผ˜ๅ…ˆไฝฟ็”จ mermaid ่€Œ้ž svgใ€‚
่ฟ”ๅ›žไธ€ไธช JSON ๅฏน่ฑก๏ผŒไธ่ฆๅŒ…ๅซ JSON ไปฅๅค–็š„ไปปไฝ•ๆ–‡ๆœฌใ€‚
@@ -16,10 +17,10 @@ user_template: |
่ฟ”ๅ›ž JSON๏ผš
{{
- "render_type": "svg" ๆˆ– "chartjs",
+ "render_type": "svg" ๆˆ– "chartjs" ๆˆ– "mermaid",
"description": "ๅฏ่ง†ๅŒ–ๅบ”ๅฑ•็คบ็š„ๅ†…ๅฎน็š„้ซ˜ๅฑ‚ๆ่ฟฐ",
"data_description": "่ฆๅฏ่ง†ๅŒ–็š„ๆ•ฐๆฎๆˆ–ๅ…ƒ็ด ็š„ๆ่ฟฐ",
- "chart_type": "ๅฆ‚ๆžœ render_type ๆ˜ฏ chartjs ๅˆ™ๅกซๅ†™ Chart.js ๅ›พ่กจ็ฑปๅž‹๏ผŒๅฆๅˆ™ไธบ็ฉบๅญ—็ฌฆไธฒ",
+ "chart_type": "ๅฆ‚ๆžœๆ˜ฏ chartjs ๅˆ™ๅกซๅ†™ Chart.js ๅ›พ่กจ็ฑปๅž‹๏ผŒๅฆ‚ๆžœๆ˜ฏ mermaid ๅˆ™ๅกซๅ†™ Mermaid ๅ›พ่กจ็ฑปๅž‹๏ผŒๅฆๅˆ™ไธบ็ฉบๅญ—็ฌฆไธฒ",
"visual_elements": ["้œ€่ฆๅŒ…ๅซ็š„ๅ…ณ้”ฎ่ง†่ง‰ๅ…ƒ็ด "],
"rationale": "ไธบไป€ไนˆ้€‰ๆ‹ฉ่ฟ™็ง render_type"
}}
@@ -45,7 +46,7 @@ user_template_fixed: |
"render_type": "{render_type}",
"description": "ๅฏ่ง†ๅŒ–ๅบ”ๅฑ•็คบ็š„ๅ†…ๅฎน็š„้ซ˜ๅฑ‚ๆ่ฟฐ",
"data_description": "่ฆๅฏ่ง†ๅŒ–็š„ๆ•ฐๆฎๆˆ–ๅ…ƒ็ด ็š„ๆ่ฟฐ",
- "chart_type": "ๅฆ‚ๆžœ render_type ๆ˜ฏ chartjs ๅˆ™ๅกซๅ†™ Chart.js ๅ›พ่กจ็ฑปๅž‹๏ผŒๅฆๅˆ™ไธบ็ฉบๅญ—็ฌฆไธฒ",
+ "chart_type": "ๅฆ‚ๆžœๆ˜ฏ chartjs ๅˆ™ๅกซๅ†™ Chart.js ๅ›พ่กจ็ฑปๅž‹๏ผŒๅฆ‚ๆžœๆ˜ฏ mermaid ๅˆ™ๅกซๅ†™ Mermaid ๅ›พ่กจ็ฑปๅž‹๏ผŒๅฆๅˆ™ไธบ็ฉบๅญ—็ฌฆไธฒ",
"visual_elements": ["้œ€่ฆๅŒ…ๅซ็š„ๅ…ณ้”ฎ่ง†่ง‰ๅ…ƒ็ด "],
"rationale": "ๅˆ†ๆž่ฏดๆ˜Ž"
}}
diff --git a/deeptutor/agents/visualize/prompts/zh/code_generator_agent.yaml b/deeptutor/agents/visualize/prompts/zh/code_generator_agent.yaml
index 97f4488cd..41d95b941 100644
--- a/deeptutor/agents/visualize/prompts/zh/code_generator_agent.yaml
+++ b/deeptutor/agents/visualize/prompts/zh/code_generator_agent.yaml
@@ -10,8 +10,13 @@ system: |
ๅฏไปฅไฝœไธบ้…็ฝฎไผ ้€’็ป™ `new Chart(ctx, config)`ใ€‚
้…็ฝฎๅฟ…้กปๅŒ…ๅซ `type`ใ€`data` ๅ’Œ `options` ๅญ—ๆฎตใ€‚
ไฝฟ็”จ็Žฐไปฃ้…่‰ฒๆ–นๆกˆๅนถ็กฎไฟๆ ‡็ญพๅฏ่ฏปใ€‚
+ - ๅฆ‚ๆžœ render_type ๆ˜ฏ "mermaid"๏ผŒ่พ“ๅ‡บๆœ‰ๆ•ˆ็š„ Mermaid.js ๅ›พ่กจไปฃ็ ใ€‚
+ ไปฃ็ ๅฟ…้กปไปฅๆœ‰ๆ•ˆ็š„ๅ›พ่กจ็ฑปๅž‹ๅ…ณ้”ฎ่ฏๅผ€ๅคด๏ผˆgraphใ€flowchartใ€sequenceDiagramใ€
+ classDiagramใ€stateDiagram-v2ใ€erDiagramใ€ganttใ€mindmap ็ญ‰๏ผ‰ใ€‚
+ ไฝฟ็”จๆธ…ๆ™ฐ็š„่Š‚็‚นๆ ‡็ญพๅ’Œๅฏ่ฏป็š„่พนๆ่ฟฐใ€‚่Š‚็‚น ID ไธ่ฆไฝฟ็”จ็ฉบๆ ผโ€”โ€”ไฝฟ็”จ
+ camelCase ๆˆ–ไธ‹ๅˆ’็บฟใ€‚้ฟๅ…ไฝฟ็”จไฟ็•™ๅ…ณ้”ฎ่ฏไฝœไธบ่Š‚็‚น IDใ€‚
- ไธ่ฆๅœจไปฃ็ ๅ—ไน‹ๅค–ๅŒ…ๅซไปปไฝ•่งฃ้‡Šใ€‚
- - ็”จๅธฆๆœ‰้€‚ๅฝ“่ฏญ่จ€ๆ ‡็ญพ็š„ไปฃ็ ๅ—ๅŒ…่ฃนไปฃ็ ๏ผˆ```svg ๆˆ– ```javascript๏ผ‰ใ€‚
+ - ็”จๅธฆๆœ‰้€‚ๅฝ“่ฏญ่จ€ๆ ‡็ญพ็š„ไปฃ็ ๅ—ๅŒ…่ฃนไปฃ็ ๏ผˆ```svgใ€```javascript ๆˆ– ```mermaid๏ผ‰ใ€‚
user_template: |
็”จๆˆท่ฏทๆฑ‚๏ผš
@@ -28,3 +33,4 @@ user_template: |
็Žฐๅœจ็”Ÿๆˆๅฏ่ง†ๅŒ–ไปฃ็ ใ€‚็”จไปฃ็ ๅ—ๅŒ…่ฃน๏ผš
- SVG ไฝฟ็”จ๏ผš```svg ... ```
- Chart.js ไฝฟ็”จ๏ผš```javascript ... ```
+ - Mermaid ไฝฟ็”จ๏ผš```mermaid ... ```
diff --git a/deeptutor/agents/visualize/prompts/zh/review_agent.yaml b/deeptutor/agents/visualize/prompts/zh/review_agent.yaml
index d584abe10..6d3316873 100644
--- a/deeptutor/agents/visualize/prompts/zh/review_agent.yaml
+++ b/deeptutor/agents/visualize/prompts/zh/review_agent.yaml
@@ -15,6 +15,14 @@ system: |
- ้ขœ่‰ฒ็š„ๅฏ่ฎฟ้—ฎๆ€งๅ’Œๅฏ่ฏปๆ€ง
- ๅ“ๅบ”ๅผ้…็ฝฎ
+ ๅฏนไบŽ Mermaid ไปฃ็ ๏ผŒๆฃ€ๆŸฅ๏ผš
+ - ๆœ‰ๆ•ˆ็š„ Mermaid.js ่ฏญๆณ•๏ผŒๅŒ…ๅซๆญฃ็กฎ็š„ๅ›พ่กจ็ฑปๅž‹ๅ…ณ้”ฎ่ฏ
+ - ่Š‚็‚น ID ไธๅŒ…ๅซ็ฉบๆ ผ๏ผˆไฝฟ็”จ camelCase ๆˆ–ไธ‹ๅˆ’็บฟ๏ผ‰
+ - ไธไฝฟ็”จไฟ็•™ๅ…ณ้”ฎ่ฏ๏ผˆendใ€subgraphใ€graph๏ผ‰ไฝœไธบ่ฃธ่Š‚็‚น ID
+ - ๆธ…ๆ™ฐๅฏ่ฏป็š„่Š‚็‚นๆ ‡็ญพๅ’Œ่พนๆ่ฟฐ
+ - ๆญฃ็กฎ็š„ๅญๅ›พ็ป“ๆž„ๅ’ŒๅตŒๅฅ—๏ผˆๅฆ‚ไฝฟ็”จ๏ผ‰
+ - ๆ— ไผšๅฏผ่‡ดๆธฒๆŸ“ๅคฑ่ดฅ็š„่ฏญๆณ•้”™่ฏฏ
+
ๅฆ‚ๆžœไปฃ็ ๅทฒ็ปๅพˆๅฅฝ๏ผŒๅŽŸๆ ท่ฟ”ๅ›žๅนถ่ฎพ็ฝฎ changed=falseใ€‚
ๅฆ‚ๆžœไฝ ๅšไบ†ๆ”น่ฟ›๏ผŒ่ฟ”ๅ›žไผ˜ๅŒ–ๅŽ็š„ไปฃ็ ๅนถ่ฎพ็ฝฎ changed=trueใ€‚
diff --git a/deeptutor/api/main.py b/deeptutor/api/main.py
index bfd3af949..ceee8107d 100644
--- a/deeptutor/api/main.py
+++ b/deeptutor/api/main.py
@@ -214,7 +214,7 @@ from deeptutor.api.routers import (
tutorbot,
unified_ws,
vision_solver,
- wrong_answers,
+ question_notebook,
)
# Include routers
@@ -228,7 +228,7 @@ app.include_router(notebook.router, prefix="/api/v1/notebook", tags=["notebook"]
app.include_router(guide.router, prefix="/api/v1/guide", tags=["guide"])
app.include_router(memory.router, prefix="/api/v1/memory", tags=["memory"])
app.include_router(sessions.router, prefix="/api/v1/sessions", tags=["sessions"])
-app.include_router(wrong_answers.router, prefix="/api/v1/wrong-answers", tags=["wrong-answers"])
+app.include_router(question_notebook.router, prefix="/api/v1/question-notebook", tags=["question-notebook"])
app.include_router(settings.router, prefix="/api/v1/settings", tags=["settings"])
app.include_router(system.router, prefix="/api/v1/system", tags=["system"])
app.include_router(plugins_api.router, prefix="/api/v1/plugins", tags=["plugins"])
diff --git a/deeptutor/api/routers/question_notebook.py b/deeptutor/api/routers/question_notebook.py
new file mode 100644
index 000000000..47b444e89
--- /dev/null
+++ b/deeptutor/api/routers/question_notebook.py
@@ -0,0 +1,213 @@
+"""
+Question Notebook API โ€” persists quiz questions, bookmarks, and categories.
+"""
+
+from __future__ import annotations
+
+import logging
+
+from fastapi import APIRouter, HTTPException, Query
+from pydantic import BaseModel, Field
+
+from deeptutor.services.session import get_sqlite_session_store
+
+logger = logging.getLogger(__name__)
+
+router = APIRouter()
+
+
+# โ”€โ”€ Models โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
+
+class NotebookEntryItem(BaseModel):
+ id: int
+ session_id: str
+ session_title: str = ""
+ question_id: str = ""
+ question: str
+ question_type: str = ""
+ options: dict[str, str] = {}
+ correct_answer: str = ""
+ explanation: str = ""
+ difficulty: str = ""
+ user_answer: str = ""
+ is_correct: bool = False
+ bookmarked: bool = False
+ followup_session_id: str = ""
+ created_at: float
+ updated_at: float
+ categories: list[CategoryItem] | None = None
+
+
+class NotebookEntryListResponse(BaseModel):
+ items: list[NotebookEntryItem]
+ total: int
+
+
+class EntryUpdateRequest(BaseModel):
+ bookmarked: bool | None = None
+ followup_session_id: str | None = None
+
+
+class CategoryItem(BaseModel):
+ id: int
+ name: str
+ created_at: float = 0
+ entry_count: int = 0
+
+
+class CategoryCreateRequest(BaseModel):
+ name: str = Field(..., min_length=1, max_length=100)
+
+
+class CategoryRenameRequest(BaseModel):
+ name: str = Field(..., min_length=1, max_length=100)
+
+
+class CategoryAddRequest(BaseModel):
+ category_id: int
+
+
+class UpsertEntryRequest(BaseModel):
+ session_id: str
+ question_id: str
+ question: str
+ question_type: str = ""
+ options: dict[str, str] | None = None
+ correct_answer: str = ""
+ explanation: str = ""
+ difficulty: str = ""
+ user_answer: str = ""
+ is_correct: bool = False
+
+
+# โ”€โ”€ Entry endpoints โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
+
[email protected]("/entries/upsert")
+async def upsert_single_entry(payload: UpsertEntryRequest):
+ store = get_sqlite_session_store()
+ try:
+ await store.upsert_notebook_entries(payload.session_id, [payload.model_dump()])
+ except ValueError as e:
+ raise HTTPException(status_code=404, detail=str(e))
+ entry = await store.find_notebook_entry(payload.session_id, payload.question_id)
+ if entry is None:
+ raise HTTPException(status_code=500, detail="Upsert failed")
+ return entry
+
[email protected]("/entries", response_model=NotebookEntryListResponse)
+async def list_entries(
+ category_id: int | None = Query(default=None),
+ bookmarked: bool | None = Query(default=None),
+ is_correct: bool | None = Query(default=None),
+ limit: int = Query(default=50, ge=1, le=200),
+ offset: int = Query(default=0, ge=0),
+) -> NotebookEntryListResponse:
+ store = get_sqlite_session_store()
+ result = await store.list_notebook_entries(
+ category_id=category_id,
+ bookmarked=bookmarked,
+ is_correct=is_correct,
+ limit=limit,
+ offset=offset,
+ )
+ return NotebookEntryListResponse(
+ items=[NotebookEntryItem(**item) for item in result["items"]],
+ total=result["total"],
+ )
+
+
[email protected]("/entries/lookup/by-question")
+async def lookup_entry(session_id: str = Query(...), question_id: str = Query(...)):
+ store = get_sqlite_session_store()
+ entry = await store.find_notebook_entry(session_id, question_id)
+ if entry is None:
+ raise HTTPException(status_code=404, detail="Entry not found")
+ return entry
+
+
[email protected]("/entries/{entry_id}", response_model=NotebookEntryItem)
+async def get_entry(entry_id: int) -> NotebookEntryItem:
+ store = get_sqlite_session_store()
+ entry = await store.get_notebook_entry(entry_id)
+ if entry is None:
+ raise HTTPException(status_code=404, detail="Entry not found")
+ return NotebookEntryItem(**entry)
+
+
[email protected]("/entries/{entry_id}")
+async def update_entry(entry_id: int, payload: EntryUpdateRequest):
+ store = get_sqlite_session_store()
+ updates = payload.model_dump(exclude_none=True)
+ if not updates:
+ raise HTTPException(status_code=400, detail="No fields to update")
+ updated = await store.update_notebook_entry(entry_id, updates)
+ if not updated:
+ raise HTTPException(status_code=404, detail="Entry not found")
+ return {"updated": True, "id": entry_id}
+
+
[email protected]("/entries/{entry_id}")
+async def delete_entry(entry_id: int):
+ store = get_sqlite_session_store()
+ deleted = await store.delete_notebook_entry(entry_id)
+ if not deleted:
+ raise HTTPException(status_code=404, detail="Entry not found")
+ return {"deleted": True, "id": entry_id}
+
+
+# โ”€โ”€ Entry โ†” Category linking โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
+
[email protected]("/entries/{entry_id}/categories")
+async def add_entry_to_category(entry_id: int, payload: CategoryAddRequest):
+ store = get_sqlite_session_store()
+ entry = await store.get_notebook_entry(entry_id)
+ if entry is None:
+ raise HTTPException(status_code=404, detail="Entry not found")
+ ok = await store.add_entry_to_category(entry_id, payload.category_id)
+ if not ok:
+ raise HTTPException(status_code=400, detail="Failed to add to category")
+ return {"added": True, "entry_id": entry_id, "category_id": payload.category_id}
+
+
[email protected]("/entries/{entry_id}/categories/{category_id}")
+async def remove_entry_from_category(entry_id: int, category_id: int):
+ store = get_sqlite_session_store()
+ removed = await store.remove_entry_from_category(entry_id, category_id)
+ if not removed:
+ raise HTTPException(status_code=404, detail="Link not found")
+ return {"removed": True, "entry_id": entry_id, "category_id": category_id}
+
+
+# โ”€โ”€ Category CRUD โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
+
[email protected]("/categories", response_model=list[CategoryItem])
+async def list_categories():
+ store = get_sqlite_session_store()
+ return await store.list_categories()
+
+
[email protected]("/categories", response_model=CategoryItem, status_code=201)
+async def create_category(payload: CategoryCreateRequest):
+ store = get_sqlite_session_store()
+ try:
+ return await store.create_category(payload.name)
+ except Exception:
+ raise HTTPException(status_code=409, detail="Category name already exists")
+
+
[email protected]("/categories/{category_id}")
+async def rename_category(category_id: int, payload: CategoryRenameRequest):
+ store = get_sqlite_session_store()
+ updated = await store.rename_category(category_id, payload.name)
+ if not updated:
+ raise HTTPException(status_code=404, detail="Category not found")
+ return {"updated": True, "id": category_id, "name": payload.name}
+
+
[email protected]("/categories/{category_id}")
+async def delete_category(category_id: int):
+ store = get_sqlite_session_store()
+ deleted = await store.delete_category(category_id)
+ if not deleted:
+ raise HTTPException(status_code=404, detail="Category not found")
+ return {"deleted": True, "id": category_id}
diff --git a/deeptutor/api/routers/sessions.py b/deeptutor/api/routers/sessions.py
index 8986e6c92..3497bd5bd 100644
--- a/deeptutor/api/routers/sessions.py
+++ b/deeptutor/api/routers/sessions.py
@@ -4,11 +4,15 @@ Unified session history API.
from __future__ import annotations
-from pydantic import BaseModel, Field
+import logging
+
+from pydantic import BaseModel, Field, field_validator
from fastapi import APIRouter, HTTPException, Query
from deeptutor.services.session import get_sqlite_session_store
+logger = logging.getLogger(__name__)
+
router = APIRouter()
@@ -19,10 +23,24 @@ class SessionRenameRequest(BaseModel):
class QuizResultItem(BaseModel):
question_id: str = ""
question: str = Field(..., min_length=1)
+ question_type: str = ""
+ options: dict[str, str] | None = None
user_answer: str = ""
correct_answer: str = ""
+ explanation: str | None = ""
+ difficulty: str | None = ""
is_correct: bool
+ @field_validator("options", mode="before")
+ @classmethod
+ def _coerce_options(cls, v):
+ return v if isinstance(v, dict) else {}
+
+ @field_validator("explanation", "difficulty", mode="before")
+ @classmethod
+ def _coerce_str(cls, v):
+ return v if isinstance(v, str) else ""
+
class QuizResultsRequest(BaseModel):
answers: list[QuizResultItem] = Field(default_factory=list)
@@ -99,14 +117,18 @@ async def record_quiz_results(session_id: str, payload: QuizResultsRequest):
content=content,
capability="deep_question",
)
- wrong_answer_count = await store.add_wrong_answers(
- session_id,
- [item.model_dump() for item in payload.answers],
- )
+ notebook_count = 0
+ try:
+ notebook_count = await store.upsert_notebook_entries(
+ session_id,
+ [item.model_dump() for item in payload.answers],
+ )
+ except Exception:
+ logger.warning("Failed to upsert notebook entries for session %s", session_id, exc_info=True)
return {
"recorded": True,
"session_id": session_id,
"answer_count": len(payload.answers),
- "wrong_answer_count": wrong_answer_count,
+ "notebook_count": notebook_count,
"content": content,
}
diff --git a/deeptutor/api/routers/wrong_answers.py b/deeptutor/api/routers/wrong_answers.py
deleted file mode 100644
index cc900867a..000000000
--- a/deeptutor/api/routers/wrong_answers.py
+++ /dev/null
@@ -1,74 +0,0 @@
-"""
-Wrong answer notebook API โ€” persists and exposes quiz mistakes for review.
-"""
-
-from __future__ import annotations
-
-from fastapi import APIRouter, HTTPException, Query
-from pydantic import BaseModel
-
-from deeptutor.services.session import get_sqlite_session_store
-
-router = APIRouter()
-
-
-class WrongAnswerItem(BaseModel):
- id: int
- session_id: str
- session_title: str = ""
- question_id: str = ""
- question: str
- user_answer: str = ""
- correct_answer: str = ""
- resolved: bool
- created_at: float
- resolved_at: float | None = None
-
-
-class WrongAnswerListResponse(BaseModel):
- items: list[WrongAnswerItem]
- total: int
-
-
-class WrongAnswerResolveRequest(BaseModel):
- resolved: bool
-
-
[email protected]("", response_model=WrongAnswerListResponse)
-async def list_wrong_answers(
- resolved: bool | None = Query(default=None),
- limit: int = Query(default=50, ge=1, le=200),
- offset: int = Query(default=0, ge=0),
-) -> WrongAnswerListResponse:
- store = get_sqlite_session_store()
- items = await store.list_wrong_answers(
- resolved=resolved, limit=limit, offset=offset
- )
- total = await store.count_wrong_answers(resolved=resolved)
- return WrongAnswerListResponse(
- items=[WrongAnswerItem(**item) for item in items],
- total=total,
- )
-
-
[email protected]("/{wrong_answer_id}")
-async def update_wrong_answer(
- wrong_answer_id: int,
- payload: WrongAnswerResolveRequest,
-):
- store = get_sqlite_session_store()
- updated = await store.update_wrong_answer_resolved(
- wrong_answer_id, payload.resolved
- )
- if not updated:
- raise HTTPException(status_code=404, detail="Wrong answer not found")
- return {"updated": True, "id": wrong_answer_id, "resolved": payload.resolved}
-
-
[email protected]("/{wrong_answer_id}")
-async def delete_wrong_answer(wrong_answer_id: int):
- store = get_sqlite_session_store()
- deleted = await store.delete_wrong_answer(wrong_answer_id)
- if not deleted:
- raise HTTPException(status_code=404, detail="Wrong answer not found")
- return {"deleted": True, "id": wrong_answer_id}
diff --git a/deeptutor/capabilities/request_contracts.py b/deeptutor/capabilities/request_contracts.py
index 5e95c3193..8b1774975 100644
--- a/deeptutor/capabilities/request_contracts.py
+++ b/deeptutor/capabilities/request_contracts.py
@@ -44,7 +44,7 @@ class DeepQuestionRequestConfig(BaseModel):
class VisualizeRequestConfig(BaseModel):
model_config = ConfigDict(extra="forbid")
- render_mode: Literal["auto", "svg", "chartjs"] = "auto"
+ render_mode: Literal["auto", "svg", "chartjs", "mermaid"] = "auto"
def _clean_public_config(raw_config: dict[str, Any] | None) -> dict[str, Any]:
diff --git a/deeptutor/capabilities/visualize.py b/deeptutor/capabilities/visualize.py
index 9835f33ac..f7479c942 100644
--- a/deeptutor/capabilities/visualize.py
+++ b/deeptutor/capabilities/visualize.py
@@ -20,7 +20,7 @@ from deeptutor.core.trace import merge_trace_metadata
class VisualizeCapability(BaseCapability):
manifest = CapabilityManifest(
name="visualize",
- description="Generate SVG or Chart.js visualizations.",
+ description="Generate SVG, Chart.js, or Mermaid visualizations.",
stages=["analyzing", "generating", "reviewing"],
tools_used=[],
cli_aliases=["visualize", "viz"],
@@ -110,7 +110,12 @@ class VisualizeCapability(BaseCapability):
)
# Emit final content as a fenced code block for the chat area
- lang_tag = "svg" if analysis.render_type == "svg" else "javascript"
+ if analysis.render_type == "svg":
+ lang_tag = "svg"
+ elif analysis.render_type == "mermaid":
+ lang_tag = "mermaid"
+ else:
+ lang_tag = "javascript"
content_md = f"```{lang_tag}\n{final_code}\n```"
await stream.content(content_md, source=self.name, stage="reviewing")
diff --git a/deeptutor/knowledge/manager.py b/deeptutor/knowledge/manager.py
index 97ffe721b..ae4773653 100644
--- a/deeptutor/knowledge/manager.py
+++ b/deeptutor/knowledge/manager.py
@@ -19,8 +19,6 @@ from deeptutor.services.rag.components.routing import FileTypeRouter
from deeptutor.services.rag.factory import DEFAULT_PROVIDER, LEGACY_PROVIDER_ALIASES, normalize_provider_name
-_EMBEDDING_FINGERPRINT_KEYS = ("embedding_model", "embedding_dim")
-
logger = get_logger("KnowledgeBaseManager")
@@ -69,21 +67,54 @@ def file_lock_exclusive(file_handle):
fcntl.flock(file_handle.fileno(), fcntl.LOCK_UN)
-def _get_current_embedding_fingerprint() -> dict[str, str | int] | None:
- """Return the active embedding model name and dimension, or *None* on failure.
-
- The fingerprint is stored alongside each knowledge-base entry so that a
- mismatch can be detected after the user switches embedding models.
- """
+def _get_embedding_fingerprint() -> tuple[str, int] | None:
+ """Return ``(model_name, dimension)`` of the active embedding config."""
try:
from deeptutor.services.embedding import get_embedding_config
cfg = get_embedding_config()
- return {"embedding_model": cfg.model, "embedding_dim": cfg.dim}
+ return (cfg.model, cfg.dim)
except Exception:
return None
+def _reconcile_embedding_flags(knowledge_bases: dict) -> bool:
+ """Flag KBs whose stored embedding fingerprint differs from the active config.
+
+ Compares both model name and dimension. Auto-clears the flag when the
+ user reverts to the original model. Returns *True* when any entry changed.
+ """
+ fp = _get_embedding_fingerprint()
+ if not fp:
+ return False
+
+ current_model, current_dim = fp
+ changed = False
+
+ for kb_entry in knowledge_bases.values():
+ if not isinstance(kb_entry, dict):
+ continue
+ stored_model = kb_entry.get("embedding_model")
+ if not stored_model:
+ continue
+
+ stored_dim = kb_entry.get("embedding_dim")
+ mismatch = stored_model != current_model or (
+ stored_dim is not None and stored_dim != current_dim
+ )
+
+ if mismatch and not kb_entry.get("embedding_mismatch"):
+ kb_entry["embedding_mismatch"] = True
+ if not kb_entry.get("needs_reindex"):
+ kb_entry["needs_reindex"] = True
+ changed = True
+ elif not mismatch and kb_entry.get("embedding_mismatch"):
+ del kb_entry["embedding_mismatch"]
+ changed = True
+
+ return changed
+
+
class KnowledgeBaseManager:
"""Manager for knowledge bases"""
@@ -149,29 +180,8 @@ class KnowledgeBaseManager:
kb_entry["needs_reindex"] = True
config_changed = True
- # Detect embedding model mismatch: if the currently configured
- # embedding model differs from the one used to index a KB, mark
- # the KB so the user knows search quality may be degraded.
- current_fp = _get_current_embedding_fingerprint()
- if current_fp:
- for kb_name, kb_entry in knowledge_bases.items():
- if not isinstance(kb_entry, dict):
- continue
- stored_model = kb_entry.get("embedding_model")
- if not stored_model:
- # Legacy KB without fingerprint โ€“ skip detection
- continue
- if stored_model != current_fp["embedding_model"]:
- if not kb_entry.get("embedding_mismatch"):
- kb_entry["embedding_mismatch"] = True
- if not kb_entry.get("needs_reindex", False):
- kb_entry["needs_reindex"] = True
- config_changed = True
- else:
- # Model matches again (user reverted) โ€“ clear flag
- if kb_entry.get("embedding_mismatch"):
- del kb_entry["embedding_mismatch"]
- config_changed = True
+ if _reconcile_embedding_flags(knowledge_bases):
+ config_changed = True
if config_changed:
try:
@@ -246,13 +256,10 @@ class KnowledgeBaseManager:
"percent": 100,
}
- # Record the embedding model used for indexing so we can detect
- # mismatches after the user switches to a different model.
if status == "ready":
- fingerprint = _get_current_embedding_fingerprint()
- if fingerprint:
- kb_config["embedding_model"] = fingerprint["embedding_model"]
- kb_config["embedding_dim"] = fingerprint["embedding_dim"]
+ fp = _get_embedding_fingerprint()
+ if fp:
+ kb_config["embedding_model"], kb_config["embedding_dim"] = fp
self._save_config()
@@ -464,6 +471,18 @@ class KnowledgeBaseManager:
return None
+ @staticmethod
+ def _embedding_fields(kb_config: dict) -> dict:
+ """Extract embedding fingerprint fields from a KB config entry."""
+ fields = {}
+ for key in ("embedding_model", "embedding_dim"):
+ val = kb_config.get(key)
+ if val is not None:
+ fields[key] = val
+ if kb_config.get("embedding_mismatch"):
+ fields["embedding_mismatch"] = True
+ return fields
+
def get_metadata(self, name: str | None = None) -> dict:
"""Get knowledge base metadata.
@@ -490,12 +509,7 @@ class KnowledgeBaseManager:
"created_at": kb_config.get("created_at"),
"last_updated": kb_config.get("updated_at"),
}
- if kb_config.get("embedding_model"):
- metadata["embedding_model"] = kb_config["embedding_model"]
- if kb_config.get("embedding_dim"):
- metadata["embedding_dim"] = kb_config["embedding_dim"]
- if kb_config.get("embedding_mismatch"):
- metadata["embedding_mismatch"] = True
+ metadata.update(self._embedding_fields(kb_config))
# Remove None values
metadata = {k: v for k, v in metadata.items() if v is not None}
return metadata
@@ -562,14 +576,7 @@ class KnowledgeBaseManager:
if updated_at:
metadata["last_updated"] = updated_at
- # Include embedding fingerprint so callers can see which model was
- # used to index this KB and whether it still matches the active config.
- if kb_config.get("embedding_model"):
- metadata["embedding_model"] = kb_config["embedding_model"]
- if kb_config.get("embedding_dim"):
- metadata["embedding_dim"] = kb_config["embedding_dim"]
- if kb_config.get("embedding_mismatch"):
- metadata["embedding_mismatch"] = True
+ metadata.update(self._embedding_fields(kb_config))
# Remove None values
metadata = {k: v for k, v in metadata.items() if v is not None}
diff --git a/deeptutor/services/config/provider_runtime.py b/deeptutor/services/config/provider_runtime.py
index 3cac671d8..f0608cdeb 100644
--- a/deeptutor/services/config/provider_runtime.py
+++ b/deeptutor/services/config/provider_runtime.py
@@ -38,6 +38,7 @@ EMBEDDING_PROVIDER_ALIASES = {
"gemini": "openai",
"huggingface": "custom",
"lm_studio": "vllm",
+ "llama_cpp": "vllm",
"openai_compatible": "custom",
}
diff --git a/deeptutor/services/provider_registry.py b/deeptutor/services/provider_registry.py
index ca5bcf735..6bf0e8b01 100644
--- a/deeptutor/services/provider_registry.py
+++ b/deeptutor/services/provider_registry.py
@@ -69,7 +69,6 @@ PROVIDER_ALIASES = {
"google_genai": "gemini",
"claude": "anthropic",
"openai_compatible": "custom",
- "lm_studio": "vllm",
"volcenginecodingplan": "volcengine_coding_plan",
"volcengineCodingPlan": "volcengine_coding_plan",
"bytepluscodingplan": "byteplus_coding_plan",
@@ -319,6 +318,26 @@ PROVIDERS: tuple[ProviderSpec, ...] = (
detect_by_base_keyword="11434",
default_api_base="http://localhost:11434/v1",
),
+ ProviderSpec(
+ name="lm_studio",
+ keywords=("lmstudio", "lm_studio"),
+ env_key="",
+ display_name="LM Studio",
+ backend="openai_compat",
+ is_local=True,
+ detect_by_base_keyword="1234",
+ default_api_base="http://localhost:1234/v1",
+ ),
+ ProviderSpec(
+ name="llama_cpp",
+ keywords=("llama_cpp", "llama.cpp"),
+ env_key="",
+ display_name="llama.cpp",
+ backend="openai_compat",
+ is_local=True,
+ detect_by_base_keyword="8080",
+ default_api_base="http://localhost:8080/v1",
+ ),
ProviderSpec(
name="ovms",
keywords=("openvino", "ovms"),
diff --git a/deeptutor/services/rag/pipelines/llamaindex.py b/deeptutor/services/rag/pipelines/llamaindex.py
index a3986b497..5e2b4577f 100644
--- a/deeptutor/services/rag/pipelines/llamaindex.py
+++ b/deeptutor/services/rag/pipelines/llamaindex.py
@@ -310,25 +310,24 @@ class LlamaIndexPipeline:
"provider": "llamaindex",
}
- # Detect embedding model mismatch before searching.
embedding_mismatch_warning = ""
try:
- from deeptutor.knowledge.manager import KnowledgeBaseManager
-
- kb_mgr = KnowledgeBaseManager(self.kb_base_dir)
- kb_meta = kb_mgr.get_metadata(kb_name)
- if kb_meta.get("embedding_mismatch"):
- stored = kb_meta.get("embedding_model", "unknown")
- current_cfg = get_embedding_config()
- embedding_mismatch_warning = (
- f"Warning: This knowledge base was indexed with embedding model "
- f"'{stored}' but the current model is '{current_cfg.model}'. "
- f"Search quality may be degraded. Please re-index the knowledge "
- f"base for accurate results."
- )
- self.logger.warning(embedding_mismatch_warning)
- except Exception as exc:
- self.logger.debug(f"Embedding mismatch check skipped: {exc}")
+ import json as _json
+
+ cfg_path = Path(self.kb_base_dir) / "kb_config.json"
+ if cfg_path.exists():
+ with open(cfg_path, encoding="utf-8") as _f:
+ kb_entry = _json.load(_f).get("knowledge_bases", {}).get(kb_name, {})
+ if kb_entry.get("embedding_mismatch"):
+ stored = kb_entry.get("embedding_model", "unknown")
+ current = get_embedding_config().model
+ embedding_mismatch_warning = (
+ f"Warning: KB '{kb_name}' was indexed with '{stored}' "
+ f"but current model is '{current}'. Re-index recommended."
+ )
+ self.logger.warning(embedding_mismatch_warning)
+ except Exception:
+ pass
try:
# Load index from storage (run in thread pool)
diff --git a/deeptutor/services/session/context_builder.py b/deeptutor/services/session/context_builder.py
index 44b411d28..aedd69243 100644
--- a/deeptutor/services/session/context_builder.py
+++ b/deeptutor/services/session/context_builder.py
@@ -112,14 +112,13 @@ class ContextBuilder:
cleaned_summary = summary.strip()
if cleaned_summary:
history.append({"role": "system", "content": cleaned_summary})
- # Filter out system messages from DB since summary is already added as system
history.extend(
{
"role": item.get("role", "user"),
"content": str(item.get("content", "") or ""),
}
for item in messages
- if item.get("role") in {"user", "assistant"} # Removed "system" to avoid duplicate system messages
+ if item.get("role") in {"user", "assistant"}
and str(item.get("content", "") or "").strip()
)
return history
diff --git a/deeptutor/services/session/sqlite_store.py b/deeptutor/services/session/sqlite_store.py
index b28d686db..eae63e343 100644
--- a/deeptutor/services/session/sqlite_store.py
+++ b/deeptutor/services/session/sqlite_store.py
@@ -146,23 +146,42 @@ class SQLiteSessionStore:
CREATE INDEX IF NOT EXISTS idx_turn_events_turn_seq
ON turn_events(turn_id, seq);
- CREATE TABLE IF NOT EXISTS wrong_answers (
+ CREATE TABLE IF NOT EXISTS notebook_entries (
id INTEGER PRIMARY KEY AUTOINCREMENT,
session_id TEXT NOT NULL REFERENCES sessions(id) ON DELETE CASCADE,
- question_id TEXT DEFAULT '',
+ question_id TEXT NOT NULL,
question TEXT NOT NULL,
- user_answer TEXT DEFAULT '',
+ question_type TEXT DEFAULT '',
+ options_json TEXT DEFAULT '{}',
correct_answer TEXT DEFAULT '',
- resolved INTEGER NOT NULL DEFAULT 0,
+ explanation TEXT DEFAULT '',
+ difficulty TEXT DEFAULT '',
+ user_answer TEXT DEFAULT '',
+ is_correct INTEGER DEFAULT 0,
+ bookmarked INTEGER DEFAULT 0,
+ followup_session_id TEXT DEFAULT '',
created_at REAL NOT NULL,
- resolved_at REAL
+ updated_at REAL NOT NULL,
+ UNIQUE(session_id, question_id)
);
- CREATE INDEX IF NOT EXISTS idx_wrong_answers_session
- ON wrong_answers(session_id, created_at DESC);
+ CREATE INDEX IF NOT EXISTS idx_notebook_entries_session
+ ON notebook_entries(session_id, created_at DESC);
+
+ CREATE INDEX IF NOT EXISTS idx_notebook_entries_bookmarked
+ ON notebook_entries(bookmarked, created_at DESC);
- CREATE INDEX IF NOT EXISTS idx_wrong_answers_resolved
- ON wrong_answers(resolved, created_at DESC);
+ CREATE TABLE IF NOT EXISTS notebook_categories (
+ id INTEGER PRIMARY KEY AUTOINCREMENT,
+ name TEXT NOT NULL UNIQUE,
+ created_at REAL NOT NULL
+ );
+
+ CREATE TABLE IF NOT EXISTS notebook_entry_categories (
+ entry_id INTEGER NOT NULL REFERENCES notebook_entries(id) ON DELETE CASCADE,
+ category_id INTEGER NOT NULL REFERENCES notebook_categories(id) ON DELETE CASCADE,
+ PRIMARY KEY (entry_id, category_id)
+ );
"""
)
columns = {row[1] for row in conn.execute("PRAGMA table_info(sessions)").fetchall()}
@@ -749,163 +768,320 @@ class SQLiteSessionStore:
session["active_turns"] = await self.list_active_turns(session_id)
return session
- def _add_wrong_answers_sync(
- self,
- session_id: str,
- items: list[dict[str, Any]],
+ # โ”€โ”€ Notebook entries โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
+
+ def _upsert_notebook_entries_sync(
+ self, session_id: str, items: list[dict[str, Any]]
) -> int:
if not items:
return 0
now = time.time()
with self._connect() as conn:
- session = conn.execute(
- "SELECT id FROM sessions WHERE id = ?",
- (session_id,),
- ).fetchone()
- if session is None:
+ if conn.execute("SELECT id FROM sessions WHERE id = ?", (session_id,)).fetchone() is None:
raise ValueError(f"Session not found: {session_id}")
- inserted = 0
+ upserted = 0
for item in items:
- if item.get("is_correct"):
- continue
question = (item.get("question") or "").strip()
- if not question:
+ question_id = (item.get("question_id") or "").strip()
+ if not question or not question_id:
continue
conn.execute(
"""
- INSERT INTO wrong_answers (
- session_id, question_id, question, user_answer,
- correct_answer, resolved, created_at, resolved_at
- ) VALUES (?, ?, ?, ?, ?, 0, ?, NULL)
+ INSERT INTO notebook_entries (
+ session_id, question_id, question, question_type,
+ options_json, correct_answer, explanation, difficulty,
+ user_answer, is_correct, bookmarked, followup_session_id,
+ created_at, updated_at
+ ) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, 0, '', ?, ?)
+ ON CONFLICT(session_id, question_id) DO UPDATE SET
+ user_answer = excluded.user_answer,
+ is_correct = excluded.is_correct,
+ updated_at = excluded.updated_at
""",
(
session_id,
- item.get("question_id") or "",
+ question_id,
question,
- item.get("user_answer") or "",
+ item.get("question_type") or "",
+ _json_dumps(item.get("options") or {}),
item.get("correct_answer") or "",
+ item.get("explanation") or "",
+ item.get("difficulty") or "",
+ item.get("user_answer") or "",
+ 1 if item.get("is_correct") else 0,
+ now,
now,
),
)
- inserted += 1
+ upserted += 1
conn.commit()
- return inserted
+ return upserted
- async def add_wrong_answers(
- self,
- session_id: str,
- items: list[dict[str, Any]],
+ async def upsert_notebook_entries(
+ self, session_id: str, items: list[dict[str, Any]]
) -> int:
- return await self._run(self._add_wrong_answers_sync, session_id, items)
+ return await self._run(self._upsert_notebook_entries_sync, session_id, items)
+
+ @staticmethod
+ def _serialize_notebook_entry(row: sqlite3.Row) -> dict[str, Any]:
+ return {
+ "id": int(row["id"]),
+ "session_id": row["session_id"],
+ "session_title": row["session_title"] or "" if "session_title" in row.keys() else "",
+ "question_id": row["question_id"] or "",
+ "question": row["question"],
+ "question_type": row["question_type"] or "",
+ "options": _json_loads(row["options_json"], {}),
+ "correct_answer": row["correct_answer"] or "",
+ "explanation": row["explanation"] or "",
+ "difficulty": row["difficulty"] or "",
+ "user_answer": row["user_answer"] or "",
+ "is_correct": bool(row["is_correct"]),
+ "bookmarked": bool(row["bookmarked"]),
+ "followup_session_id": row["followup_session_id"] or "",
+ "created_at": float(row["created_at"]),
+ "updated_at": float(row["updated_at"]),
+ }
- def _list_wrong_answers_sync(
+ def _list_notebook_entries_sync(
self,
- resolved: bool | None,
+ category_id: int | None,
+ bookmarked: bool | None,
+ is_correct: bool | None,
limit: int,
offset: int,
- ) -> list[dict[str, Any]]:
- query = """
+ ) -> dict[str, Any]:
+ base = """
SELECT
- w.id,
- w.session_id,
- COALESCE(s.title, '') AS session_title,
- w.question_id,
- w.question,
- w.user_answer,
- w.correct_answer,
- w.resolved,
- w.created_at,
- w.resolved_at
- FROM wrong_answers w
- LEFT JOIN sessions s ON s.id = w.session_id
+ n.id, n.session_id, COALESCE(s.title, '') AS session_title,
+ n.question_id, n.question, n.question_type, n.options_json,
+ n.correct_answer, n.explanation, n.difficulty,
+ n.user_answer, n.is_correct, n.bookmarked,
+ n.followup_session_id, n.created_at, n.updated_at
+ FROM notebook_entries n
+ LEFT JOIN sessions s ON s.id = n.session_id
"""
+ count_base = "SELECT COUNT(*) AS cnt FROM notebook_entries n"
+ conditions: list[str] = []
params: list[Any] = []
- if resolved is not None:
- query += " WHERE w.resolved = ?"
- params.append(1 if resolved else 0)
- query += " ORDER BY w.created_at DESC LIMIT ? OFFSET ?"
- params.extend([limit, offset])
+ if category_id is not None:
+ join = " INNER JOIN notebook_entry_categories ec ON ec.entry_id = n.id"
+ base += join
+ count_base += join
+ conditions.append("ec.category_id = ?")
+ params.append(category_id)
+ if bookmarked is not None:
+ conditions.append("n.bookmarked = ?")
+ params.append(1 if bookmarked else 0)
+ if is_correct is not None:
+ conditions.append("n.is_correct = ?")
+ params.append(1 if is_correct else 0)
+ where = (" WHERE " + " AND ".join(conditions)) if conditions else ""
with self._connect() as conn:
- rows = conn.execute(query, tuple(params)).fetchall()
- return [
- {
- "id": int(row["id"]),
- "session_id": row["session_id"],
- "session_title": row["session_title"] or "",
- "question_id": row["question_id"] or "",
- "question": row["question"],
- "user_answer": row["user_answer"] or "",
- "correct_answer": row["correct_answer"] or "",
- "resolved": bool(row["resolved"]),
- "created_at": float(row["created_at"]),
- "resolved_at": (
- float(row["resolved_at"]) if row["resolved_at"] is not None else None
- ),
- }
- for row in rows
- ]
+ total_row = conn.execute(count_base + where, tuple(params)).fetchone()
+ total = int(total_row["cnt"]) if total_row else 0
+ rows = conn.execute(
+ base + where + " ORDER BY n.created_at DESC LIMIT ? OFFSET ?",
+ tuple(params) + (limit, offset),
+ ).fetchall()
+ items = [self._serialize_notebook_entry(r) for r in rows]
+ return {"items": items, "total": total}
- async def list_wrong_answers(
+ async def list_notebook_entries(
self,
- resolved: bool | None = None,
+ category_id: int | None = None,
+ bookmarked: bool | None = None,
+ is_correct: bool | None = None,
limit: int = 50,
offset: int = 0,
- ) -> list[dict[str, Any]]:
+ ) -> dict[str, Any]:
return await self._run(
- self._list_wrong_answers_sync, resolved, limit, offset
+ self._list_notebook_entries_sync,
+ category_id, bookmarked, is_correct, limit, offset,
)
- def _count_wrong_answers_sync(self, resolved: bool | None) -> int:
- query = "SELECT COUNT(*) AS count FROM wrong_answers"
- params: tuple[Any, ...] = ()
- if resolved is not None:
- query += " WHERE resolved = ?"
- params = (1 if resolved else 0,)
+ def _get_notebook_entry_sync(self, entry_id: int) -> dict[str, Any] | None:
with self._connect() as conn:
- row = conn.execute(query, params).fetchone()
- return int(row["count"]) if row else 0
+ row = conn.execute(
+ """
+ SELECT
+ n.*, COALESCE(s.title, '') AS session_title
+ FROM notebook_entries n
+ LEFT JOIN sessions s ON s.id = n.session_id
+ WHERE n.id = ?
+ """,
+ (entry_id,),
+ ).fetchone()
+ if row is None:
+ return None
+ entry = self._serialize_notebook_entry(row)
+ cats = conn.execute(
+ """
+ SELECT c.id, c.name
+ FROM notebook_categories c
+ INNER JOIN notebook_entry_categories ec ON ec.category_id = c.id
+ WHERE ec.entry_id = ?
+ ORDER BY c.name
+ """,
+ (entry_id,),
+ ).fetchall()
+ entry["categories"] = [{"id": c["id"], "name": c["name"]} for c in cats]
+ return entry
- async def count_wrong_answers(self, resolved: bool | None = None) -> int:
- return await self._run(self._count_wrong_answers_sync, resolved)
+ async def get_notebook_entry(self, entry_id: int) -> dict[str, Any] | None:
+ return await self._run(self._get_notebook_entry_sync, entry_id)
- def _update_wrong_answer_resolved_sync(
- self,
- wrong_answer_id: int,
- resolved: bool,
+ def _find_notebook_entry_sync(self, session_id: str, question_id: str) -> dict[str, Any] | None:
+ with self._connect() as conn:
+ row = conn.execute(
+ """
+ SELECT n.*, COALESCE(s.title, '') AS session_title
+ FROM notebook_entries n
+ LEFT JOIN sessions s ON s.id = n.session_id
+ WHERE n.session_id = ? AND n.question_id = ?
+ """,
+ (session_id, question_id),
+ ).fetchone()
+ if row is None:
+ return None
+ return self._serialize_notebook_entry(row)
+
+ async def find_notebook_entry(self, session_id: str, question_id: str) -> dict[str, Any] | None:
+ return await self._run(self._find_notebook_entry_sync, session_id, question_id)
+
+ def _update_notebook_entry_sync(
+ self, entry_id: int, updates: dict[str, Any]
) -> bool:
- now = time.time() if resolved else None
+ allowed = {"bookmarked", "followup_session_id", "user_answer", "is_correct"}
+ fields = {k: v for k, v in updates.items() if k in allowed}
+ if not fields:
+ return False
+ fields["updated_at"] = time.time()
+ if "bookmarked" in fields:
+ fields["bookmarked"] = 1 if fields["bookmarked"] else 0
+ if "is_correct" in fields:
+ fields["is_correct"] = 1 if fields["is_correct"] else 0
+ set_clause = ", ".join(f"{k} = ?" for k in fields)
+ values = list(fields.values()) + [entry_id]
+ with self._connect() as conn:
+ cur = conn.execute(
+ f"UPDATE notebook_entries SET {set_clause} WHERE id = ?",
+ tuple(values),
+ )
+ conn.commit()
+ return cur.rowcount > 0
+
+ async def update_notebook_entry(self, entry_id: int, updates: dict[str, Any]) -> bool:
+ return await self._run(self._update_notebook_entry_sync, entry_id, updates)
+
+ def _delete_notebook_entry_sync(self, entry_id: int) -> bool:
+ with self._connect() as conn:
+ cur = conn.execute("DELETE FROM notebook_entries WHERE id = ?", (entry_id,))
+ conn.commit()
+ return cur.rowcount > 0
+
+ async def delete_notebook_entry(self, entry_id: int) -> bool:
+ return await self._run(self._delete_notebook_entry_sync, entry_id)
+
+ # โ”€โ”€ Notebook categories โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
+
+ def _create_category_sync(self, name: str) -> dict[str, Any]:
+ now = time.time()
with self._connect() as conn:
cur = conn.execute(
+ "INSERT INTO notebook_categories (name, created_at) VALUES (?, ?)",
+ (name.strip(), now),
+ )
+ conn.commit()
+ return {"id": int(cur.lastrowid), "name": name.strip(), "created_at": now}
+
+ async def create_category(self, name: str) -> dict[str, Any]:
+ return await self._run(self._create_category_sync, name)
+
+ def _list_categories_sync(self) -> list[dict[str, Any]]:
+ with self._connect() as conn:
+ rows = conn.execute(
"""
- UPDATE wrong_answers
- SET resolved = ?, resolved_at = ?
- WHERE id = ?
+ SELECT c.id, c.name, c.created_at,
+ COUNT(ec.entry_id) AS entry_count
+ FROM notebook_categories c
+ LEFT JOIN notebook_entry_categories ec ON ec.category_id = c.id
+ GROUP BY c.id
+ ORDER BY c.name
""",
- (1 if resolved else 0, now, wrong_answer_id),
+ ).fetchall()
+ return [
+ {"id": r["id"], "name": r["name"], "created_at": float(r["created_at"]),
+ "entry_count": int(r["entry_count"])}
+ for r in rows
+ ]
+
+ async def list_categories(self) -> list[dict[str, Any]]:
+ return await self._run(self._list_categories_sync)
+
+ def _rename_category_sync(self, category_id: int, name: str) -> bool:
+ with self._connect() as conn:
+ cur = conn.execute(
+ "UPDATE notebook_categories SET name = ? WHERE id = ?",
+ (name.strip(), category_id),
)
conn.commit()
return cur.rowcount > 0
- async def update_wrong_answer_resolved(
- self,
- wrong_answer_id: int,
- resolved: bool,
- ) -> bool:
- return await self._run(
- self._update_wrong_answer_resolved_sync, wrong_answer_id, resolved
- )
+ async def rename_category(self, category_id: int, name: str) -> bool:
+ return await self._run(self._rename_category_sync, category_id, name)
- def _delete_wrong_answer_sync(self, wrong_answer_id: int) -> bool:
+ def _delete_category_sync(self, category_id: int) -> bool:
+ with self._connect() as conn:
+ cur = conn.execute("DELETE FROM notebook_categories WHERE id = ?", (category_id,))
+ conn.commit()
+ return cur.rowcount > 0
+
+ async def delete_category(self, category_id: int) -> bool:
+ return await self._run(self._delete_category_sync, category_id)
+
+ def _add_entry_to_category_sync(self, entry_id: int, category_id: int) -> bool:
+ with self._connect() as conn:
+ try:
+ conn.execute(
+ "INSERT OR IGNORE INTO notebook_entry_categories (entry_id, category_id) VALUES (?, ?)",
+ (entry_id, category_id),
+ )
+ conn.commit()
+ except sqlite3.IntegrityError:
+ return False
+ return True
+
+ async def add_entry_to_category(self, entry_id: int, category_id: int) -> bool:
+ return await self._run(self._add_entry_to_category_sync, entry_id, category_id)
+
+ def _remove_entry_from_category_sync(self, entry_id: int, category_id: int) -> bool:
with self._connect() as conn:
cur = conn.execute(
- "DELETE FROM wrong_answers WHERE id = ?",
- (wrong_answer_id,),
+ "DELETE FROM notebook_entry_categories WHERE entry_id = ? AND category_id = ?",
+ (entry_id, category_id),
)
conn.commit()
return cur.rowcount > 0
- async def delete_wrong_answer(self, wrong_answer_id: int) -> bool:
- return await self._run(self._delete_wrong_answer_sync, wrong_answer_id)
+ async def remove_entry_from_category(self, entry_id: int, category_id: int) -> bool:
+ return await self._run(self._remove_entry_from_category_sync, entry_id, category_id)
+
+ def _get_entry_categories_sync(self, entry_id: int) -> list[dict[str, Any]]:
+ with self._connect() as conn:
+ rows = conn.execute(
+ """
+ SELECT c.id, c.name FROM notebook_categories c
+ INNER JOIN notebook_entry_categories ec ON ec.category_id = c.id
+ WHERE ec.entry_id = ?
+ ORDER BY c.name
+ """,
+ (entry_id,),
+ ).fetchall()
+ return [{"id": r["id"], "name": r["name"]} for r in rows]
+
+ async def get_entry_categories(self, entry_id: int) -> list[dict[str, Any]]:
+ return await self._run(self._get_entry_categories_sync, entry_id)
_instance: SQLiteSessionStore | None = None
diff --git a/deeptutor/services/session/turn_runtime.py b/deeptutor/services/session/turn_runtime.py
index 1d2c62d2e..f90cd5251 100644
--- a/deeptutor/services/session/turn_runtime.py
+++ b/deeptutor/services/session/turn_runtime.py
@@ -458,13 +458,23 @@ class TurnRuntimeManager:
records=history_records,
emit=lambda event: self._persist_and_publish(execution, event),
)
- # Fallback: if analysis returns empty, use raw record content
if not history_context.strip():
- history_context = "\n\n".join(
- f"## Session: {record.get('title', 'Untitled')}\n{record.get('output', '')}"
- for record in history_records
- if record.get("output")
- )
+ MAX_FALLBACK_CHARS = 8000
+ parts: list[str] = []
+ total = 0
+ for record in history_records:
+ output = record.get("output")
+ if not output:
+ continue
+ part = f"## Session: {record.get('title', 'Untitled')}\n{output}"
+ if total + len(part) > MAX_FALLBACK_CHARS:
+ remaining = MAX_FALLBACK_CHARS - total
+ if remaining > 100:
+ parts.append(part[:remaining] + "\n...(truncated)")
+ break
+ parts.append(part)
+ total += len(part)
+ history_context = "\n\n".join(parts)
effective_user_message = raw_user_content
context_parts: list[str] = []
diff --git a/docs/.vitepress/config.mts b/docs/.vitepress/config.mts
deleted file mode 100644
index 87841f4ef..000000000
--- a/docs/.vitepress/config.mts
+++ /dev/null
@@ -1,121 +0,0 @@
-import { defineConfig } from 'vitepress'
-
-export default defineConfig({
- title: "DeepTutor",
- description: "AI-Powered Personalized Learning Assistant",
-
- base: '/DeepTutor/',
-
- head: [
- ['link', { rel: 'icon', href: '/DeepTutor/logo.png' }]
- ],
-
- ignoreDeadLinks: [
- /^http:\/\/localhost/
- ],
-
- locales: {
- root: {
- label: 'English',
- lang: 'en',
- themeConfig: {
- nav: [
- { text: 'Home', link: '/' },
- { text: 'Guide', link: '/guide/pre-config' },
- { text: 'Contribute', link: '/contribution' },
- { text: 'GitHub', link: 'https://github.com/HKUDS/DeepTutor' }
- ],
- sidebar: {
- '/guide/': [
- {
- text: 'Getting Started',
- items: [
- { text: 'Pre-Configuration', link: '/guide/pre-config' },
- { text: 'Data Preparation', link: '/guide/data-preparation' },
- { text: 'Local Installation', link: '/guide/local-start' },
- { text: 'Docker Deployment', link: '/guide/docker-start' }
- ]
- },
- {
- text: 'Resources',
- items: [
- { text: 'Troubleshooting', link: '/guide/troubleshooting' }
- ]
- }
- ]
- },
- editLink: {
- pattern: 'https://github.com/HKUDS/DeepTutor/edit/main/docs/:path',
- text: 'Edit this page on GitHub'
- },
- footer: {
- message: 'Released under the AGPL-3.0 License.',
- copyright: 'ยฉ 2025-2026 Data Intelligence Lab @ HKU'
- }
- }
- },
- zh: {
- label: '็ฎ€ไฝ“ไธญๆ–‡',
- lang: 'zh-CN',
- link: '/zh/',
- themeConfig: {
- nav: [
- { text: '้ฆ–้กต', link: '/zh/' },
- { text: 'ๆŒ‡ๅ—', link: '/zh/guide/pre-config' },
- { text: 'ๅ‚ไธŽ่ดก็Œฎ', link: '/zh/contribution' },
- { text: 'GitHub', link: 'https://github.com/HKUDS/DeepTutor' }
- ],
- sidebar: {
- '/zh/guide/': [
- {
- text: 'ๅฟซ้€Ÿๅผ€ๅง‹',
- items: [
- { text: '้ข„้…็ฝฎ', link: '/zh/guide/pre-config' },
- { text: 'ๆ•ฐๆฎๅ‡†ๅค‡', link: '/zh/guide/data-preparation' },
- { text: 'ๆœฌๅœฐๅฎ‰่ฃ…', link: '/zh/guide/local-start' },
- { text: 'Docker ้ƒจ็ฝฒ', link: '/zh/guide/docker-start' }
- ]
- },
- {
- text: '่ต„ๆบ',
- items: [
- { text: 'ๅธธ่ง้—ฎ้ข˜', link: '/zh/guide/troubleshooting' }
- ]
- }
- ]
- },
- editLink: {
- pattern: 'https://github.com/HKUDS/DeepTutor/edit/main/docs/:path',
- text: 'ๅœจ GitHub ไธŠ็ผ–่พ‘ๆญค้กต'
- },
- footer: {
- message: 'ๅŸบไบŽ AGPL-3.0 ่ฎธๅฏ่ฏๅ‘ๅธƒ',
- copyright: 'ยฉ 2025-2026 ้ฆ™ๆธฏๅคงๅญฆๆ•ฐๆฎๆ™บ่ƒฝๅฎž้ชŒๅฎค'
- },
- outline: { label: 'ๆœฌ้กต็›ฎๅฝ•' },
- docFooter: { prev: 'ไธŠไธ€็ฏ‡', next: 'ไธ‹ไธ€็ฏ‡' },
- lastUpdated: { text: 'ๆœ€ๅŽๆ›ดๆ–ฐไบŽ' },
- darkModeSwitchLabel: 'ๅค–่ง‚',
- sidebarMenuLabel: '่œๅ•',
- returnToTopLabel: '่ฟ”ๅ›ž้กถ้ƒจ',
- langMenuLabel: 'ๅˆ‡ๆข่ฏญ่จ€'
- }
- }
- },
-
- themeConfig: {
- logo: '/logo.png',
- socialLinks: [
- { icon: 'github', link: 'https://github.com/HKUDS/DeepTutor' },
- { icon: 'discord', link: 'https://discord.gg/eRsjPgMU4t' },
- {
- icon: {
- svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M8.691 2.188C3.891 2.188 0 5.476 0 9.53c0 2.212 1.17 4.203 3.002 5.55a.59.59 0 0 1 .213.665l-.39 1.48c-.019.07-.048.141-.048.213 0 .163.13.295.29.295a.32.32 0 0 0 .167-.054l1.903-1.114a.864.864 0 0 1 .717-.098 10.16 10.16 0 0 0 2.837.403c.276 0 .543-.027.811-.05-.857-2.578.157-4.972 1.932-6.446 1.703-1.415 3.882-1.98 5.853-1.838-.576-3.583-4.196-6.348-8.596-6.348zM5.785 5.991c.642 0 1.162.529 1.162 1.18a1.17 1.17 0 0 1-1.162 1.178A1.17 1.17 0 0 1 4.623 7.17c0-.651.52-1.18 1.162-1.18zm5.813 0c.642 0 1.162.529 1.162 1.18a1.17 1.17 0 0 1-1.162 1.178 1.17 1.17 0 0 1-1.162-1.178c0-.651.52-1.18 1.162-1.18zm5.34 2.867c-1.797-.052-3.746.512-5.28 1.786-1.72 1.428-2.687 3.72-1.78 6.22.942 2.453 3.666 4.229 6.884 4.229.826 0 1.622-.12 2.361-.336a.722.722 0 0 1 .598.082l1.584.926a.272.272 0 0 0 .14.047c.134 0 .24-.111.24-.247 0-.06-.023-.12-.038-.177l-.327-1.233a.49.49 0 0 1 .176-.554C23.048 18.276 24 16.577 24 14.71c0-3.38-3.251-6.136-7.062-5.852zm-2.073 2.703c.536 0 .97.44.97.983a.976.976 0 0 1-.97.983.976.976 0 0 1-.97-.983c0-.542.434-.983.97-.983zm4.146 0c.536 0 .97.44.97.983a.976.976 0 0 1-.97.983.976.976 0 0 1-.97-.983c0-.542.434-.983.97-.983z"/></svg>'
- },
- link: 'https://github.com/HKUDS/DeepTutor/issues/78',
- ariaLabel: 'WeChat'
- }
- ],
- search: { provider: 'local' }
- }
-})
diff --git a/docs/.vitepress/theme/custom.css b/docs/.vitepress/theme/custom.css
deleted file mode 100644
index 3b671ad35..000000000
--- a/docs/.vitepress/theme/custom.css
+++ /dev/null
@@ -1,47 +0,0 @@
-/* Roadmap ๅฏผ่ˆชๆ ‡็ญพ็‰นๆฎŠๆ ทๅผ - ๆ›ดๆ˜พ็œผ & ็‹ฌ็ซ‹ */
-.VPNavBarMenuLink[href="/DeepTutor/roadmap"],
-.VPNavScreenMenuLink[href="/DeepTutor/roadmap"] {
- position: relative;
- color: white !important;
- background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
- padding: 6px 16px !important; /* ็จๅพฎๅŠ ๅฎฝ padding */
- border-radius: 20px;
- font-weight: 700 !important;
- margin-left: 24px !important; /* ๅขžๅŠ ๅทฆไพง้—ด่ท๏ผŒๅˆถ้€ ็‹ฌ็ซ‹ๆ„Ÿ */
- transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
- box-shadow: 0 4px 6px -1px rgba(102, 126, 234, 0.2), 0 2px 4px -1px rgba(102, 126, 234, 0.1);
- letter-spacing: 0.5px;
-}
-
-/* ๅผบๅˆถ่ฆ†็›–ๅฏ่ƒฝ็š„้ป˜่ฎคๆ ทๅผ */
-.VPNavBarMenuLink[href="/DeepTutor/roadmap"]:hover,
-.VPNavScreenMenuLink[href="/DeepTutor/roadmap"]:hover {
- background: linear-gradient(135deg, #764ba2 0%, #667eea 100%) !important;
- transform: translateY(-2px);
- box-shadow: 0 10px 15px -3px rgba(102, 126, 234, 0.3), 0 4px 6px -2px rgba(102, 126, 234, 0.1);
-}
-
-.VPNavBarMenuLink[href="/DeepTutor/roadmap"]::before,
-.VPNavScreenMenuLink[href="/DeepTutor/roadmap"]::before {
- content: '๐Ÿš€';
- margin-right: 6px;
- font-size: 1.1em;
- vertical-align: -1px;
-}
-
-/* ๆดป่ทƒ็Šถๆ€ */
-.VPNavBarMenuLink[href="/DeepTutor/roadmap"].active,
-.VPNavBarMenuLink[href="/DeepTutor/roadmap"].VPLink--active {
- background: linear-gradient(135deg, #5b21b6 0%, #4c1d95 100%) !important; /* ๆทฑ็ดซ่‰ฒ */
- box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.2);
-}
-
-/* ็งปๅŠจ็ซฏๆ ทๅผไผ˜ๅŒ– */
-@media (max-width: 768px) {
- .VPNavScreenMenuLink[href="/DeepTutor/roadmap"] {
- display: inline-flex;
- align-items: center;
- margin: 12px 0 12px 12px;
- width: auto;
- }
-}
diff --git a/docs/.vitepress/theme/index.ts b/docs/.vitepress/theme/index.ts
deleted file mode 100644
index 42fe9a936..000000000
--- a/docs/.vitepress/theme/index.ts
+++ /dev/null
@@ -1,4 +0,0 @@
-import DefaultTheme from 'vitepress/theme'
-import './custom.css'
-
-export default DefaultTheme
diff --git a/docs/contribution.md b/docs/contribution.md
deleted file mode 100644
index 695cbb369..000000000
--- a/docs/contribution.md
+++ /dev/null
@@ -1,104 +0,0 @@
-# Make Contribution
-
-We hope DeepTutor could become a gift for the community. ๐ŸŽ
-
-## Join Our Community
-
-<div class="community-links">
- <a href="https://github.com/HKUDS/DeepTutor/issues/78" class="community-badge wechat">
- ๐Ÿ’ฌ WeChat Community
- </a>
- <a href="https://github.com/HKUDS/DeepTutor/issues/167" class="community-badge wechat-collab">
- ๐Ÿค WeChat Co-creators
- </a>
- <a href="https://discord.gg/eRsjPgMU4t" class="community-badge discord">
- ๐ŸŒ Discord
- </a>
-</div>
-
-## We Welcome Contributions!
-
-Whether you're fixing bugs, improving documentation, or adding new features, your contributions are valuable to us.
-
-### How to Contribute
-
-1. **Report Bugs** โ€” Found a bug? Open an issue on GitHub with reproduction steps
-2. **Suggest Features** โ€” Share ideas in GitHub Discussions or our community channels
-3. **Improve Docs** โ€” Help us improve documentation, tutorials, and examples
-4. **Submit Code** โ€” Fix bugs or implement new features through pull requests
-
-### Contribution Guidelines
-
-For detailed guidelines, see [CONTRIBUTING.md](https://github.com/HKUDS/DeepTutor/blob/dev/CONTRIBUTING.md).
-
-**Key Points:**
-
-- All contributions must be based on the `dev` branch
-- Run `pre-commit run --all-files` before submitting
-- Use conventional commit format: `feat:`, `fix:`, `docs:`, etc.
-
-### Quick Start
-
-```bash
-# Fork and clone
-git clone https://github.com/YOUR_USERNAME/DeepTutor.git
-cd DeepTutor
-
-# Create feature branch from dev
-git checkout dev && git pull origin dev
-git checkout -b feature/your-feature-name
-
-# Install pre-commit hooks
-pip install pre-commit && pre-commit install
-
-# Make changes, then submit PR to dev branch
-```
-
-## Our Contributors
-
-<a href="https://github.com/HKUDS/DeepTutor/graphs/contributors">
- <img src="https://contrib.rocks/image?repo=HKUDS/DeepTutor&max=999" alt="Contributors" />
-</a>
-
----
-
-Thank you for your interest in contributing to DeepTutor! ๐Ÿš€
-
-<style>
-.community-links {
- display: flex;
- gap: 12px;
- flex-wrap: wrap;
- margin: 20px 0;
-}
-
-.community-badge {
- display: inline-flex;
- align-items: center;
- padding: 10px 18px;
- border-radius: 8px;
- font-weight: 500;
- font-size: 0.95rem;
- text-decoration: none;
- transition: all 0.2s ease;
-}
-
-.community-badge:hover {
- transform: translateY(-2px);
-}
-
-.community-badge.wechat {
- background: #07C160;
- color: white;
-}
-
-.community-badge.wechat-collab {
- background: #1AAD19;
- color: white;
-}
-
-.community-badge.discord {
- background: #5865F2;
- color: white;
-}
-</style>
diff --git a/docs/features/overview.md b/docs/features/overview.md
deleted file mode 100644
index 7a02ba3ee..000000000
--- a/docs/features/overview.md
+++ /dev/null
@@ -1,153 +0,0 @@
-# ๐Ÿ›๏ธ DeepTutor's Framework
-
-<img src="/full-pipe.png" alt="DeepTutor Full-Stack Workflow" width="100%">
-
-## ๐Ÿ’ฌ User Interface Layer
-โ€ข **Intuitive Interaction**: Simple bidirectional query-response flow for intuitive interaction.
-โ€ข **Structured Output**: Structured response generation that organizes complex information into actionable outputs.
-โ€ข **Dark/Light Mode**: System-wide theme support with automatic system preference detection.
-โ€ข **Collapsible Sidebar**: Compact navigation with icon-only mode for focused learning.
-
-## ๐Ÿค– Intelligent Agent Modules
-โ€ข **Problem Solving & Assessment**: Step-by-step problem solving and custom assessment generation.
-โ€ข **Research & Learning**: Deep Research for topic exploration, Co-Writer drafting, and Guided Learning with visualization.
-
-## ๐Ÿ”ง Tool Integration Layer
-โ€ข **Information Retrieval**: RAG hybrid retrieval, real-time web search, and academic paper databases.
-โ€ข **Processing & Analysis**: Python code execution and PDF parsing for document analysis.
-โ€ข **Multi-Provider Support**: Flexible LLM providers (OpenAI, Anthropic, Ollama, etc.) and embedding adapters (OpenAI, Jina, Cohere, Ollama, etc.).
-
-## ๐Ÿง  Knowledge & Memory Foundation
-โ€ข **Knowledge Graph**: Entity-relation mapping for semantic connections and knowledge discovery.
-โ€ข **Vector Store**: Embedding-based semantic search for intelligent content retrieval.
-โ€ข **Memory System**: Session state management and citation tracking for contextual continuity.
-
----
-
-# Key Features of DeepTutor
-
-## ๐Ÿ“š Massive Document Knowledge Q&A
-
-โ€ข **Smart Knowledge Base**: Upload textbooks, research papers, technical manuals, and domain-specific documents. Build a comprehensive AI-powered knowledge repository for instant access.
-
-โ€ข **Multi-Agent Problem Solving**: Dual-loop reasoning architecture with RAG, web search, paper search, and code executionโ€”delivering step-by-step solutions with precise citations.
-
-## ๐ŸŽจ Interactive Learning Visualization
-
-โ€ข **Knowledge Simplification & Explanations**: Transform complex concepts, knowledge, and algorithms into easy-to-understand visual aids, detailed step-by-step breakdowns, and engaging interactive demonstrations.
-
-โ€ข **Personalized Q&A**: Context-aware conversations that adapt to your learning progress, with interactive pages and session-based knowledge tracking.
-
-## ๐ŸŽฏ Knowledge Reinforcement with Practice Problem Generator
-
-โ€ข **Intelligent Exercise Creation**: Generate targeted quizzes, practice problems, and customized assessments tailored to your current knowledge level and specific learning objectives.
-
-โ€ข **Authentic Exam Simulation**: Upload reference exams to generate practice questions that perfectly match the original style, format, and difficultyโ€”giving you realistic preparation for the actual test.
-
-## ๐Ÿ” Deep Research & Co-Writer
-
-โ€ข **Comprehensive Research & Literature Review**: Conduct in-depth topic exploration with systematic analysis. Identify patterns, connect related concepts across disciplines, and synthesize existing research findings.
-
-โ€ข **Novel Insight Discovery**: Generate structured learning materials and uncover knowledge gaps. Identify promising new research directions through intelligent cross-domain knowledge synthesis.
-
----
-
-<!-- Core Learning Experience -->
-
-<table>
-<tr>
-<td width="50%" align="center" valign="top">
-
-### ๐Ÿ“š Massive Document Knowledge Q&A
-
-<img src="/solve.gif" alt="Document Q&A demonstration" width="100%">
-
-Document Q&A and Step-by-Step Problem Solving
-
-</td>
-<td width="50%" align="center" valign="top">
-
-### ๐ŸŽจ Interactive Learning Visualization
-
-<img src="/guided-learning.gif" alt="Interactive learning visualization demo" width="100%">
-
-Interactive AI Learning with Knowledge Visual Explanations
-
-</td>
-</tr>
-</table>
-
-<!-- Practice & Reinforcement -->
-
-### ๐ŸŽฏ Knowledge Reinforcement
-
-<table>
-<tr>
-<td width="50%" valign="top" align="center">
-
-<img src="/question-1.gif" alt="Custom question generation demo" width="100%">
-
-**Custom Questions**
-Auto-Validated Practice Questions with Instant Feedback
-
-</td>
-<td width="50%" valign="top" align="center">
-
-<img src="/question-2.gif" alt="Mimic exam style questions demo" width="100%">
-
-**Mimic Questions**
-Clone Exam Style for Authentic Practice
-
-</td>
-</tr>
-</table>
-
-<!-- Research & Creation -->
-
-### ๐Ÿ” Deep Research & Co-Writer
-
-<table>
-<tr>
-<td width="50%" align="center">
-
-<img src="/deepresearch.gif" alt="Deep research with web and paper search demo" width="100%">
-
-**Deep Research**
-Web and Paper Search with Literature Review
-
-</td>
-<td width="50%" align="center">
-
-<img src="/co-writer.gif" alt="Interactive idea generation demo" width="100%">
-
-**Co-Writer**
-AI-assisted drafting, editing, and refinement
-
-</td>
-</tr>
-</table>
-
-<!-- Knowledge Infrastructure -->
-
-### ๐Ÿ—๏ธ All-in-One Knowledge System
-
-<table>
-<tr>
-<td width="50%" align="center">
-
-<img src="/knowledge_bases.png" alt="Personal knowledge base demo" width="100%">
-
-**Personal Knowledge Base**
-Build and Organize Your Own Knowledge Repository
-
-</td>
-<td width="50%" align="center">
-
-<img src="/notebooks.png" alt="Personal notebook demo" width="100%">
-
-**Personal Notebook**
-Your Contextual Memory for Learning Sessions
-
-</td>
-</tr>
-</table>
diff --git a/docs/guide/data-preparation.md b/docs/guide/data-preparation.md
deleted file mode 100644
index edc39859a..000000000
--- a/docs/guide/data-preparation.md
+++ /dev/null
@@ -1,185 +0,0 @@
-# Data Preparation
-
-DeepTutor provides demo knowledge bases and sample questions to help you get started quickly.
-
-## Demo Knowledge Bases
-
-We provide two pre-built knowledge bases on [Google Drive](https://drive.google.com/drive/folders/1iWwfZXiTuQKQqUYb5fGDZjLCeTUP6DA6?usp=sharing):
-
-### 1. Research Papers Collection
-
-<div class="info-card">
- <div class="info-header">
- <span class="info-icon">๐Ÿ“„</span>
- <span class="info-title">5 Research Papers (20-50 pages each)</span>
- </div>
- <div class="info-content">
- <p>A curated collection of cutting-edge research papers from our lab, covering RAG and Agent fields.</p>
- <p><strong>Included Papers:</strong></p>
- <ul>
- <li><a href="https://github.com/HKUDS/AI-Researcher">AI-Researcher</a> - Automated research paper generation</li>
- <li><a href="https://github.com/HKUDS/AutoAgent">AutoAgent</a> - Autonomous agent framework</li>
- <li><a href="https://github.com/HKUDS/AutoAgent">AutoAgent</a> - Autonomous agent framework</li>
- <li><a href="https://github.com/HKUDS/DeepCode">DeepCode</a> - AI code assistant</li>
- <li><a href="https://github.com/HKUDS/VideoRAG">VideoRAG</a> - Video understanding with RAG</li>
- </ul>
- <p><strong>Best for:</strong> Research scenarios, broad knowledge coverage</p>
- </div>
-</div>
-
-### 2. Data Science Textbook
-
-<div class="info-card">
- <div class="info-header">
- <span class="info-icon">๐Ÿ“š</span>
- <span class="info-title">8 Chapters, 296 Pages</span>
- </div>
- <div class="info-content">
- <p>A comprehensive deep learning textbook from UC Berkeley.</p>
- <p><strong>Source:</strong> <a href="https://ma-lab-berkeley.github.io/deep-representation-learning-book/">Deep Representation Learning Book</a></p>
- <p><strong>Topics Covered:</strong></p>
- <ul>
- <li>Neural Network Fundamentals</li>
- <li>Representation Learning</li>
- <li>Deep Learning Architectures</li>
- <li>Advanced Topics</li>
- </ul>
- <p><strong>Best for:</strong> Learning scenarios, deep knowledge depth</p>
- </div>
-</div>
-
-## Download & Setup
-
-### Step 1: Download
-
-Visit our [Google Drive folder](https://drive.google.com/drive/folders/1iWwfZXiTuQKQqUYb5fGDZjLCeTUP6DA6?usp=sharing) and download:
-
-- `knowledge_bases.zip` - Pre-built knowledge bases with embeddings
-- `questions.zip` - Sample questions and usage examples (optional)
-
-### Step 2: Extract
-
-Extract the downloaded files into the `data/` directory:
-
-```
-DeepTutor/
-โ”œโ”€โ”€ data/
-โ”‚ โ””โ”€โ”€ knowledge_bases/
-โ”‚ โ”œโ”€โ”€ research_papers/ # Research papers KB
-โ”‚ โ”œโ”€โ”€ data_science_book/ # Textbook KB
-โ”‚ โ””โ”€โ”€ kb_config.json # Knowledge base config
-โ””โ”€โ”€ user/ # User data (auto-created)
-```
-
-### Step 3: Verify
-
-After extracting, your knowledge bases will be automatically available when you start DeepTutor.
-
-::: warning Embedding Compatibility
-Our demo knowledge bases use `text-embedding-3-large` with `dimensions = 3072`.
-
-If your embedding model has different dimensions, you'll need to create your own knowledge base instead.
-:::
-
-## Creating Custom Knowledge Bases
-
-### Supported File Formats
-
-| Format | Extension | Notes |
-|:-------|:----------|:------|
-| PDF | `.pdf` | Supports text extraction and layout analysis |
-| Text | `.txt` | Plain text files |
-| Markdown | `.md` | Markdown with formatting support |
-
-### Via Web Interface
-
-1. Navigate to `http://localhost:3782/knowledge`
-2. Click **"New Knowledge Base"**
-3. Enter a unique name for your knowledge base
-4. Upload your documents (single or batch upload)
-5. Wait for processing to complete
-
-::: tip Processing Time
-- Small documents (< 10 pages): ~1 minute
-- Medium documents (10-100 pages): ~5-10 minutes
-- Large documents (100+ pages): May take longer
-:::
-
-### Via Command Line
-
-```bash
-# Initialize a new knowledge base with documents
-deeptutor kb create <kb_name> --doc <pdf_path>
-
-# Add documents to existing knowledge base
-deeptutor kb add <kb_name> --doc <new_document.pdf>
-```
-
-## Data Storage Structure
-
-All user data is stored in the `data/` directory:
-
-```
-data/
-โ”œโ”€โ”€ knowledge_bases/ # Knowledge base storage
-โ”‚ โ”œโ”€โ”€ <kb_name>/
-โ”‚ โ”‚ โ”œโ”€โ”€ documents/ # Original documents
-โ”‚ โ”‚ โ”œโ”€โ”€ chunks/ # Chunked content
-โ”‚ โ”‚ โ”œโ”€โ”€ embeddings/ # Vector embeddings
-โ”‚ โ”‚ โ””โ”€โ”€ graph/ # Knowledge graph data
-โ””โ”€โ”€ user/ # User activity data
- โ”œโ”€โ”€ solve/ # Problem solving results
- โ”œโ”€โ”€ question/ # Generated questions
- โ”œโ”€โ”€ research/ # Research reports
- โ”œโ”€โ”€ notebook/ # Notebook records
- โ””โ”€โ”€ logs/ # System logs
-```
-
----
-
-**Next Step:** [Local Installation โ†’](/guide/local-start)
-
-<style>
-.info-card {
- background: var(--vp-c-bg-soft);
- border: 1px solid var(--vp-c-border);
- border-radius: 12px;
- padding: 20px;
- margin: 16px 0;
-}
-
-.info-header {
- display: flex;
- align-items: center;
- gap: 12px;
- margin-bottom: 16px;
-}
-
-.info-icon {
- font-size: 1.5rem;
-}
-
-.info-title {
- font-size: 1.1rem;
- font-weight: 600;
- color: var(--vp-c-text-1);
-}
-
-.info-content {
- color: var(--vp-c-text-2);
- line-height: 1.7;
-}
-
-.info-content ul {
- margin: 12px 0;
- padding-left: 20px;
-}
-
-.info-content li {
- margin: 6px 0;
-}
-
-.info-content a {
- color: var(--vp-c-brand-1);
-}
-</style>
diff --git a/docs/guide/docker-start.md b/docs/guide/docker-start.md
deleted file mode 100644
index f15a1b55b..000000000
--- a/docs/guide/docker-start.md
+++ /dev/null
@@ -1,259 +0,0 @@
-# Docker Deployment
-
-Docker deployment requires no Python or Node.js setup โ€” everything runs in containers.
-
-## Prerequisites
-
-- **Docker** โ€” [Install Docker](https://docs.docker.com/get-docker/)
-- **Docker Compose** โ€” [Install Docker Compose](https://docs.docker.com/compose/install/)
-
-## Quick Start Options
-
-Choose your preferred deployment method:
-
-<div class="method-tabs">
-
-### Option A: Build from Source
-
-Build and run DeepTutor locally from the source code.
-
-```bash
-# Clone repository (if not done)
-git clone https://github.com/HKUDS/DeepTutor.git
-cd DeepTutor
-
-# Create and configure .env file
-cp .env.example .env
-# Edit .env with your API keys
-
-# Build and start
-docker compose up
-
-# First run takes ~11 minutes on Mac Mini M4
-```
-
-#### Common Commands
-
-```bash
-# Start in background
-docker compose up -d
-
-# Stop services
-docker compose down
-
-# View logs
-docker compose logs -f
-
-# Rebuild after code changes
-docker compose up --build
-
-# Clear cache and rebuild
-docker compose build --no-cache
-```
-
-</div>
-
-<div class="method-tabs">
-
-### Option B: Pull Pre-built Image (Faster)
-
-Use our official pre-built images from GitHub Container Registry.
-
-```bash
-# Works on all platforms - Docker auto-detects your architecture
-docker run -d --name deeptutor \
- -p 8001:8001 -p 3782:3782 \
- --env-file .env \
- -v $(pwd)/data:/app/data \
- -v $(pwd)/config:/app/config:ro \
- ghcr.io/hkuds/deeptutor:latest
-```
-
-::: warning Windows PowerShell
-Use `${PWD}` instead of `$(pwd)`:
-
-```powershell
-docker run -d --name deeptutor `
- -p 8001:8001 -p 3782:3782 `
- --env-file .env `
- -v ${PWD}/data:/app/data `
- -v ${PWD}/config:/app/config:ro `
- ghcr.io/hkuds/deeptutor:latest
-```
-:::
-
-</div>
-
-## Available Image Tags
-
-| Tag | Architectures | Description |
-|:----|:--------------|:------------|
-| `:latest` | AMD64 + ARM64 | Latest stable release (auto-detects architecture) |
-| `:v0.5.x` | AMD64 + ARM64 | Specific version (auto-detects architecture) |
-| `:v0.5.x-amd64` | AMD64 only | Explicit AMD64 image |
-| `:v0.5.x-arm64` | ARM64 only | Explicit ARM64 image |
-
-::: tip Multi-Architecture Support
-The `:latest` tag is a **multi-architecture image** โ€” Docker automatically pulls the correct version for your system (Intel/AMD or Apple Silicon/ARM).
-:::
-
-## Cloud Deployment
-
-When deploying to a cloud server, you must set the external API URL:
-
-```bash
-docker run -d --name deeptutor \
- -p 8001:8001 -p 3782:3782 \
- -e NEXT_PUBLIC_API_BASE_EXTERNAL=https://your-server.com:8001 \
- --env-file .env \
- -v $(pwd)/data:/app/data \
- ghcr.io/hkuds/deeptutor:latest
-```
-
-::: warning Why is this needed?
-The default API URL is `localhost:8001`, which points to the user's local machine in the browser, not your server. Setting `NEXT_PUBLIC_API_BASE_EXTERNAL` ensures the frontend connects to your server's public address.
-:::
-
-## Custom Ports
-
-To use different ports:
-
-```bash
-docker run -d --name deeptutor \
- -p 9001:9001 -p 4000:4000 \
- -e BACKEND_PORT=9001 \
- -e FRONTEND_PORT=4000 \
- -e NEXT_PUBLIC_API_BASE_EXTERNAL=http://localhost:9001 \
- --env-file .env \
- -v $(pwd)/data:/app/data \
- ghcr.io/hkuds/deeptutor:latest
-```
-
-::: warning Important
-The `-p` port mapping must match the `BACKEND_PORT`/`FRONTEND_PORT` values.
-:::
-
-## Access URLs
-
-| Service | URL | Description |
-|:---:|:---|:---|
-| **Frontend** | http://localhost:3782 | Main web interface |
-| **API Docs** | http://localhost:8001/docs | Interactive API documentation |
-
-## Container Management
-
-### View Running Containers
-
-```bash
-docker ps
-```
-
-### Stop Container
-
-```bash
-docker stop deeptutor
-```
-
-### Remove Container
-
-```bash
-docker rm deeptutor
-```
-
-### View Logs
-
-```bash
-# All logs
-docker logs deeptutor
-
-# Follow logs in real-time
-docker logs -f deeptutor
-
-# Last 100 lines
-docker logs --tail 100 deeptutor
-```
-
-## Troubleshooting
-
-### Frontend cannot connect in cloud deployment
-
-**Problem:** Frontend shows "Failed to fetch" or "NEXT_PUBLIC_API_BASE is not configured"
-
-**Solution:** Set `NEXT_PUBLIC_API_BASE_EXTERNAL` to your server's public URL:
-
-```bash
--e NEXT_PUBLIC_API_BASE_EXTERNAL=https://your-server.com:8001
-```
-
-### Settings page shows "Error loading data" with HTTPS reverse proxy
-
-**Problem:** HTTPS requests are being redirected to HTTP (307 redirect)
-
-**Solution:** This issue has been fixed in v0.5.0+. Update to the latest version.
-
-**nginx Configuration:**
-
-```nginx
-# Frontend
-location / {
- proxy_pass http://localhost:3782;
- proxy_set_header Host $host;
- proxy_set_header X-Forwarded-Proto $scheme;
-}
-
-# Backend API
-location /api/ {
- proxy_pass http://localhost:8001;
- proxy_set_header Host $host;
- proxy_set_header X-Forwarded-Proto $scheme;
-}
-
-# WebSocket support
-location /api/v1/ {
- proxy_pass http://localhost:8001;
- proxy_http_version 1.1;
- proxy_set_header Upgrade $http_upgrade;
- proxy_set_header Connection "upgrade";
- proxy_set_header X-Forwarded-Proto $scheme;
-}
-```
-
-### Data not persisting after restart
-
-**Solution:** Ensure you're mounting the data directory:
-
-```bash
--v $(pwd)/data:/app/data
-```
-
-### HuggingFace models fail to download (restricted networks)
-
-**Solution:** Add HuggingFace configuration to your `.env`:
-
-```bash
-# Use a mirror endpoint
-HF_ENDPOINT=https://your-hf-mirror.example.com
-
-# Or force offline mode (requires pre-cached models)
-HF_HUB_OFFLINE=1
-```
-
----
-
-**Next Step:** [Make Contribution โ†’](/contribution)
-
-<style>
-.method-tabs {
- background: var(--vp-c-bg-soft);
- border: 1px solid var(--vp-c-border);
- border-radius: 12px;
- padding: 20px;
- margin: 16px 0;
-}
-
-.method-tabs h3 {
- margin-top: 0;
- padding-top: 0;
- border-top: none;
-}
-</style>
diff --git a/docs/guide/local-start.md b/docs/guide/local-start.md
deleted file mode 100644
index 9d010a31e..000000000
--- a/docs/guide/local-start.md
+++ /dev/null
@@ -1,61 +0,0 @@
-# Local Start
-
-DeepTutor now has a single local onboarding flow.
-
-## Recommended flow
-
-1. Clone the repository.
-2. Activate a Python 3.11+ environment.
-3. Install from source:
-
-```bash
-pip install -e .
-pip install ".[server]"
-pip install ".[math-animator]" # optional
-```
-
-4. Run:
-
-```bash
-python scripts/start_tour.py
-```
-
-The tour runs directly in the terminal and asks whether you want `Web` or `CLI` guidance.
-
-Both flows end by writing a clean project-root `.env`. Runtime behavior config is loaded only from:
-
-- `data/user/settings/main.yaml`
-- `data/user/settings/agents.yaml`
-- `data/user/settings/interface.json`
-
-## What the tour does
-
-- chooses the frontend and backend ports DeepTutor will keep using
-- installs the selected dependency profile
-- collects LLM, embedding, and optional search settings
-- lets you test LLM and embedding before finalizing
-- writes `.env` and clears any stale temporary `data/user/settings/env.json`
-
-## Start the app after onboarding
-
-```bash
-python scripts/start_web.py
-```
-
-This launcher reads the project-root `.env`, starts the FastAPI backend, and injects `NEXT_PUBLIC_API_BASE` into the frontend process automatically.
-
-## CLI-only usage
-
-If you only want the terminal workflow, choose `CLI` inside `start_tour.py`. After that, common commands remain:
-
-```bash
-deeptutor chat
-deeptutor kb list
-deeptutor serve --port 8001
-```
-
-## Notes
-
-- `config/` is no longer used at runtime.
-- `web/.env.local` is no longer part of the supported local setup flow.
-- TTS settings are no longer part of the official configuration surface.
diff --git a/docs/guide/pre-config.md b/docs/guide/pre-config.md
deleted file mode 100644
index 431cd6207..000000000
--- a/docs/guide/pre-config.md
+++ /dev/null
@@ -1,193 +0,0 @@
-# Pre-Configuration
-
-Before starting DeepTutor, you need to complete the following setup steps.
-
-## 1. Clone Repository
-
-```bash
-git clone https://github.com/HKUDS/DeepTutor.git
-cd DeepTutor
-```
-
-## 2. Environment Variables Setup
-
-Create your `.env` file from the template:
-
-```bash
-cp .env.example .env
-```
-
-Then edit the `.env` file with your API keys:
-
-```bash
-# ============================================================================
-# Server Configuration
-# ============================================================================
-BACKEND_PORT=8001 # Backend API port
-FRONTEND_PORT=3782 # Frontend web port
-
-# For remote/LAN access - set to your server's IP address
-# NEXT_PUBLIC_API_BASE=http://192.168.1.100:8001
-
-# ============================================================================
-# LLM (Large Language Model) Configuration - Required
-# ============================================================================
-LLM_BINDING=openai # Provider: openai, anthropic, azure_openai, ollama, etc.
-LLM_MODEL=gpt-4o # Model name: gpt-4o, deepseek-chat, claude-3-5-sonnet, etc.
-LLM_HOST=https://api.openai.com/v1 # API endpoint URL
-LLM_API_KEY=your_api_key # Your LLM API key
-
-# ============================================================================
-# Embedding Model Configuration - Required for Knowledge Base
-# ============================================================================
-EMBEDDING_BINDING=openai # Provider type
-EMBEDDING_MODEL=text-embedding-3-large # Embedding model name
-EMBEDDING_DIMENSION=3072 # Must match model dimensions
-EMBEDDING_HOST=https://api.openai.com/v1 # API endpoint
-EMBEDDING_API_KEY=your_api_key # Embedding API key
-
-# ============================================================================
-# Web Search Configuration - Optional
-# ============================================================================
-SEARCH_PROVIDER=perplexity # Options: perplexity, tavily, serper, jina, exa, baidu
-SEARCH_API_KEY=your_search_api_key # API key for search provider
-```
-
-### Environment Variables Reference
-
-| Variable | Required | Description |
-|:---|:---:|:---|
-| `LLM_MODEL` | **Yes** | Model name (e.g., `gpt-4o`, `deepseek-chat`) |
-| `LLM_API_KEY` | **Yes** | Your LLM API key |
-| `LLM_HOST` | **Yes** | API endpoint URL |
-| `EMBEDDING_MODEL` | **Yes** | Embedding model name |
-| `EMBEDDING_DIMENSION` | **Yes** | Must match model output dimensions |
-| `EMBEDDING_API_KEY` | **Yes** | Embedding API key |
-| `EMBEDDING_HOST` | **Yes** | Embedding API endpoint |
-| `BACKEND_PORT` | No | Backend port (default: `8001`) |
-| `FRONTEND_PORT` | No | Frontend port (default: `3782`) |
-| `NEXT_PUBLIC_API_BASE` | No | Set for remote/LAN access |
-| `SEARCH_PROVIDER` | No | Web search provider |
-| `SEARCH_API_KEY` | No | Search API key |
-
-### Supported LLM Providers
-
-| Provider | `LLM_BINDING` Value | Notes |
-|:---------|:--------------------|:------|
-| OpenAI | `openai` | GPT-4o, GPT-4, GPT-3.5 |
-| Anthropic | `anthropic` | Claude 3.5, Claude 3 |
-| Azure OpenAI | `azure_openai` | Enterprise deployments |
-| Ollama | `ollama` | Local models |
-| DeepSeek | `deepseek` | DeepSeek-V3, DeepSeek-R1 |
-| Groq | `groq` | Fast inference |
-| OpenRouter | `openrouter` | Multi-model gateway |
-| Google Gemini | `gemini` | OpenAI-compatible mode |
-
-### Supported Embedding Providers
-
-| Provider | `EMBEDDING_BINDING` Value | Notes |
-|:---------|:--------------------------|:------|
-| OpenAI | `openai` | text-embedding-3-large/small |
-| Azure OpenAI | `azure_openai` | Enterprise deployments |
-| Jina AI | `jina` | jina-embeddings-v3 |
-| Cohere | `cohere` | embed-v3 series |
-| Ollama | `ollama` | Local embedding models |
-| LM Studio | `lm_studio` | Local inference server |
-| HuggingFace | `huggingface` | OpenAI-compatible endpoints |
-
-## 3. Configuration Files
-
-DeepTutor uses two YAML configuration files for customization:
-
-### `config/agents.yaml` - Agent Parameters
-
-This file controls LLM parameters for each module:
-
-```yaml
-# Solve Module - Problem solving agents
-solve:
- temperature: 0.3
- max_tokens: 8192
-
-# Research Module - Deep research agents
-research:
- temperature: 0.5
- max_tokens: 12000
-
-# Question Module - Question generation agents
-question:
- temperature: 0.7
- max_tokens: 4096
-
-# Guide Module - Learning guidance agents
-guide:
- temperature: 0.5
- max_tokens: 16192
-
-# CoWriter Module - Collaborative writing agents
-co_writer:
- temperature: 0.7
- max_tokens: 4096
-```
-
-### `data/user/settings/main.yaml` - System Settings
-
-This file controls paths, tools, and module-specific settings:
-
-```yaml
-# System language
-system:
- language: en
-
-# Data paths
-paths:
- user_data_dir: ./data/user
- knowledge_bases_dir: ./data/knowledge_bases
-
-# Tool configuration
-tools:
- rag_tool:
- kb_base_dir: ./data/knowledge_bases
- default_kb: ai_textbook
- run_code:
- workspace: ./data/user/workspace/chat/_detached_code_execution
- web_search:
- enabled: true
-
-# Module-specific settings
-research:
- researching:
- execution_mode: series # "series" or "parallel"
- max_iterations: 5
- enable_rag_hybrid: true
- enable_paper_search: true
- enable_web_search: true
-```
-
-> **Tip:** For most users, the default configuration works well. Only modify these files if you need specific customizations.
-
-## 4. Knowledge Base Preparation (Optional)
-
-You can use our pre-built demo knowledge bases to get started quickly.
-
-### Download Demo Knowledge Bases
-
-Download from [Google Drive](https://drive.google.com/drive/folders/1iWwfZXiTuQKQqUYb5fGDZjLCeTUP6DA6?usp=sharing) and extract into the `data/` directory.
-
-::: info Important
-The demo knowledge bases use `text-embedding-3-large` with `dimensions = 3072`. Make sure your embedding model has matching dimensions.
-:::
-
-### Create Your Own Knowledge Base
-
-After launching DeepTutor:
-
-1. Navigate to `http://localhost:3782/knowledge`
-2. Click **"New Knowledge Base"**
-3. Enter a unique name
-4. Upload PDF/TXT/MD files
-5. Monitor progress in the terminal
-
----
-
-**Next Step:** [Data Preparation โ†’](/guide/data-preparation)
diff --git a/docs/guide/troubleshooting.md b/docs/guide/troubleshooting.md
deleted file mode 100644
index b422d9178..000000000
--- a/docs/guide/troubleshooting.md
+++ /dev/null
@@ -1,150 +0,0 @@
-# โ“ FAQ
-
-## Backend fails to start?
-
-**Checklist**
-- Confirm Python version >= 3.11
-- Confirm all dependencies installed: `pip install -r requirements.txt`
-- Check if port 8001 is in use (configurable in `config/main.yaml`)
-- Check `.env` file configuration
-
-**Solutions**
-- **Change port**: Edit `config/main.yaml` server.backend_port
-- **Check logs**: Review terminal error messages
-
----
-
-## Port occupied after Ctrl+C?
-
-**Problem**
-
-After pressing Ctrl+C during a running task (e.g., deep research), restarting shows "port already in use" error.
-
-**Cause**
-
-Ctrl+C sometimes only terminates the frontend process while the backend continues running in the background.
-
-**Solution**
-
-```bash
-# macOS/Linux
-kill -9 $(lsof -t -i :8001)
-
-# Windows
-netstat -ano | findstr :8001
-taskkill /PID <PID> /F
-```
-
-Then restart the service with `python scripts/start_web.py`.
-
----
-
-## npm: command not found error?
-
-**Problem**
-
-Running `scripts/start_web.py` shows `npm: command not found` or exit status 127.
-
-**Checklist**
-- Check if npm is installed: `npm --version`
-- Check if Node.js is installed: `node --version`
-- Confirm conda environment is activated (if using conda)
-
-**Solutions**
-```bash
-# Option A: Using Conda (Recommended)
-conda install -c conda-forge nodejs
-
-# Option B: Using Official Installer
-# Download from https://nodejs.org/
-
-# Option C: Using nvm
-nvm install 18
-nvm use 18
-```
-
-**Verify Installation**
-```bash
-node --version # Should show v18.x.x or higher
-npm --version # Should show version number
-```
-
----
-
-## Frontend cannot connect to backend?
-
-**Checklist**
-- Confirm backend is running (visit `http://localhost:8001/docs`)
-- Check browser console for error messages
-
-**Solution**
-
-Create `.env.local` in `web` directory:
-
-```bash
-NEXT_PUBLIC_API_BASE=http://localhost:8001
-```
-
----
-
-## WebSocket connection fails?
-
-**Checklist**
-- Confirm backend is running
-- Check firewall settings
-- Confirm WebSocket URL is correct
-
-**Solution**
-- **Check backend logs**
-- **Confirm URL format**: `ws://localhost:8001/api/v1/...`
-
----
-
-## Where are module outputs stored?
-
-| Module | Output Path |
-|:---:|:---|
-| Solve | `data/user/solve/solve_YYYYMMDD_HHMMSS/` |
-| Question | `data/user/question/question_YYYYMMDD_HHMMSS/` |
-| Research | `data/user/research/reports/` |
-| Co-Writer | `data/user/co-writer/` |
-| Notebook | `data/user/notebook/` |
-| Guide | `data/user/guide/session_{session_id}.json` |
-| Logs | `data/user/logs/` |
-
----
-
-## How to add a new knowledge base?
-
-**Web Interface**
-1. Visit `http://localhost:3782/knowledge`
-2. Click "New Knowledge Base"
-3. Enter knowledge base name
-4. Upload PDF/TXT/MD documents
-5. System will process documents in background
-
-**CLI**
-```bash
-deeptutor kb create <kb_name> --doc <pdf_path>
-```
-
----
-
-## How to incrementally add documents to existing KB?
-
-**CLI (Recommended)**
-```bash
-deeptutor kb add <kb_name> --doc <new_document.pdf>
-```
-
-**Benefits**
-- Only processes new documents, saves time and API costs
-- Automatically merges with existing vector index
-- Preserves all existing data
-
----
-
-## Numbered items extraction / uvloop issue
-
-Numbered items extraction has been removed in llamaindex-only mode.
-If you previously encountered `uvloop.Loop` errors from that flow, no action is required now.
diff --git a/docs/index.md b/docs/index.md
deleted file mode 100644
index 038e8f15d..000000000
--- a/docs/index.md
+++ /dev/null
@@ -1,74 +0,0 @@
----
-layout: home
-
-hero:
- name: "DeepTutor"
- text: "Your AI Learning Companion"
- tagline: Transform any document into an interactive learning experience with multi-agent intelligence
- image:
- src: /logo.png
- alt: DeepTutor
- actions:
- - theme: brand
- text: Get Started โ†’
- link: /guide/pre-config
- - theme: alt
- text: GitHub
- link: https://github.com/HKUDS/DeepTutor
-
-features:
- - icon: ๐Ÿ“š
- title: Massive Document Q&A
- details: Upload textbooks, papers, and manuals. Build AI-powered knowledge repositories with RAG and knowledge graph integration.
- - icon: ๐Ÿง 
- title: Smart Problem Solving
- details: Dual-loop reasoning architecture with multi-agent collaboration, delivering step-by-step solutions with precise citations.
- - icon: ๐ŸŽฏ
- title: Practice Generator
- details: Generate custom quizzes based on your knowledge base, or mimic real exam styles for authentic practice.
- - icon: ๐ŸŽ“
- title: Guided Learning
- details: Personalized learning paths with interactive visualizations and adaptive explanations.
- - icon: ๐Ÿ”ฌ
- title: Deep Research
- details: Systematic topic exploration with web search, paper retrieval, and literature synthesis.
----
-
-## Why DeepTutor?
-
-- **Deep Understanding** โ€” Not just answers, but guided learning journeys with visual explanations
-- **Multi-Modal Support** โ€” PDF, LaTeX, images, code execution, and more
-- **Knowledge Retrieval** โ€” Unified llamaindex-based retrieval for better comprehension
-- **All-in-One Platform** โ€” Problem solving, question generation, research, and guided learning in one place
-
-<style>
-:root {
- --vp-home-hero-name-color: transparent;
- --vp-home-hero-name-background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
- --vp-home-hero-image-background-image: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 50%, rgba(240, 147, 251, 0.15) 100%);
- --vp-home-hero-image-filter: blur(72px);
-}
-
-.dark {
- --vp-home-hero-image-background-image: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 50%, rgba(240, 147, 251, 0.1) 100%);
-}
-
-.VPHero .name {
- font-size: 4.5rem !important;
- line-height: 1.1 !important;
-}
-
-.VPHero .text {
- font-size: 2.4rem !important;
- font-weight: 600 !important;
-}
-
-@media (max-width: 768px) {
- .VPHero .name {
- font-size: 3rem !important;
- }
- .VPHero .text {
- font-size: 1.8rem !important;
- }
-}
-</style>
diff --git a/docs/package-lock.json b/docs/package-lock.json
deleted file mode 100644
index 7634fc541..000000000
--- a/docs/package-lock.json
+++ /dev/null
@@ -1,2572 +0,0 @@
-{
- "name": "opentutor-docs",
- "version": "1.0.0",
- "lockfileVersion": 3,
- "requires": true,
- "packages": {
- "": {
- "name": "opentutor-docs",
- "version": "1.0.0",
- "devDependencies": {
- "vitepress": "^1.6.4"
- }
- },
- "node_modules/@algolia/abtesting": {
- "version": "1.12.2",
- "resolved": "https://registry.npmjs.org/@algolia/abtesting/-/abtesting-1.12.2.tgz",
- "integrity": "sha512-oWknd6wpfNrmRcH0vzed3UPX0i17o4kYLM5OMITyMVM2xLgaRbIafoxL0e8mcrNNb0iORCJA0evnNDKRYth5WQ==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "@algolia/client-common": "5.46.2",
- "@algolia/requester-browser-xhr": "5.46.2",
- "@algolia/requester-fetch": "5.46.2",
- "@algolia/requester-node-http": "5.46.2"
- },
- "engines": {
- "node": ">= 14.0.0"
- }
- },
- "node_modules/@algolia/autocomplete-core": {
- "version": "1.17.7",
- "resolved": "https://registry.npmjs.org/@algolia/autocomplete-core/-/autocomplete-core-1.17.7.tgz",
- "integrity": "sha512-BjiPOW6ks90UKl7TwMv7oNQMnzU+t/wk9mgIDi6b1tXpUek7MW0lbNOUHpvam9pe3lVCf4xPFT+lK7s+e+fs7Q==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "@algolia/autocomplete-plugin-algolia-insights": "1.17.7",
- "@algolia/autocomplete-shared": "1.17.7"
- }
- },
- "node_modules/@algolia/autocomplete-plugin-algolia-insights": {
- "version": "1.17.7",
- "resolved": "https://registry.npmjs.org/@algolia/autocomplete-plugin-algolia-insights/-/autocomplete-plugin-algolia-insights-1.17.7.tgz",
- "integrity": "sha512-Jca5Ude6yUOuyzjnz57og7Et3aXjbwCSDf/8onLHSQgw1qW3ALl9mrMWaXb5FmPVkV3EtkD2F/+NkT6VHyPu9A==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "@algolia/autocomplete-shared": "1.17.7"
- },
- "peerDependencies": {
- "search-insights": ">= 1 < 3"
- }
- },
- "node_modules/@algolia/autocomplete-preset-algolia": {
- "version": "1.17.7",
- "resolved": "https://registry.npmjs.org/@algolia/autocomplete-preset-algolia/-/autocomplete-preset-algolia-1.17.7.tgz",
- "integrity": "sha512-ggOQ950+nwbWROq2MOCIL71RE0DdQZsceqrg32UqnhDz8FlO9rL8ONHNsI2R1MH0tkgVIDKI/D0sMiUchsFdWA==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "@algolia/autocomplete-shared": "1.17.7"
- },
- "peerDependencies": {
- "@algolia/client-search": ">= 4.9.1 < 6",
- "algoliasearch": ">= 4.9.1 < 6"
- }
- },
- "node_modules/@algolia/autocomplete-shared": {
- "version": "1.17.7",
- "resolved": "https://registry.npmjs.org/@algolia/autocomplete-shared/-/autocomplete-shared-1.17.7.tgz",
- "integrity": "sha512-o/1Vurr42U/qskRSuhBH+VKxMvkkUVTLU6WZQr+L5lGZZLYWyhdzWjW0iGXY7EkwRTjBqvN2EsR81yCTGV/kmg==",
- "dev": true,
- "license": "MIT",
- "peerDependencies": {
- "@algolia/client-search": ">= 4.9.1 < 6",
- "algoliasearch": ">= 4.9.1 < 6"
- }
- },
- "node_modules/@algolia/client-abtesting": {
- "version": "5.46.2",
- "resolved": "https://registry.npmjs.org/@algolia/client-abtesting/-/client-abtesting-5.46.2.tgz",
- "integrity": "sha512-oRSUHbylGIuxrlzdPA8FPJuwrLLRavOhAmFGgdAvMcX47XsyM+IOGa9tc7/K5SPvBqn4nhppOCEz7BrzOPWc4A==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "@algolia/client-common": "5.46.2",
- "@algolia/requester-browser-xhr": "5.46.2",
- "@algolia/requester-fetch": "5.46.2",
- "@algolia/requester-node-http": "5.46.2"
- },
- "engines": {
- "node": ">= 14.0.0"
- }
- },
- "node_modules/@algolia/client-analytics": {
- "version": "5.46.2",
- "resolved": "https://registry.npmjs.org/@algolia/client-analytics/-/client-analytics-5.46.2.tgz",
- "integrity": "sha512-EPBN2Oruw0maWOF4OgGPfioTvd+gmiNwx0HmD9IgmlS+l75DatcBkKOPNJN+0z3wBQWUO5oq602ATxIfmTQ8bA==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "@algolia/client-common": "5.46.2",
- "@algolia/requester-browser-xhr": "5.46.2",
- "@algolia/requester-fetch": "5.46.2",
- "@algolia/requester-node-http": "5.46.2"
- },
- "engines": {
- "node": ">= 14.0.0"
- }
- },
- "node_modules/@algolia/client-common": {
- "version": "5.46.2",
- "resolved": "https://registry.npmjs.org/@algolia/client-common/-/client-common-5.46.2.tgz",
- "integrity": "sha512-Hj8gswSJNKZ0oyd0wWissqyasm+wTz1oIsv5ZmLarzOZAp3vFEda8bpDQ8PUhO+DfkbiLyVnAxsPe4cGzWtqkg==",
- "dev": true,
- "license": "MIT",
- "engines": {
- "node": ">= 14.0.0"
- }
- },
- "node_modules/@algolia/client-insights": {
- "version": "5.46.2",
- "resolved": "https://registry.npmjs.org/@algolia/client-insights/-/client-insights-5.46.2.tgz",
- "integrity": "sha512-6dBZko2jt8FmQcHCbmNLB0kCV079Mx/DJcySTL3wirgDBUH7xhY1pOuUTLMiGkqM5D8moVZTvTdRKZUJRkrwBA==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "@algolia/client-common": "5.46.2",
- "@algolia/requester-browser-xhr": "5.46.2",
- "@algolia/requester-fetch": "5.46.2",
- "@algolia/requester-node-http": "5.46.2"
- },
- "engines": {
- "node": ">= 14.0.0"
- }
- },
- "node_modules/@algolia/client-personalization": {
- "version": "5.46.2",
- "resolved": "https://registry.npmjs.org/@algolia/client-personalization/-/client-personalization-5.46.2.tgz",
- "integrity": "sha512-1waE2Uqh/PHNeDXGn/PM/WrmYOBiUGSVxAWqiJIj73jqPqvfzZgzdakHscIVaDl6Cp+j5dwjsZ5LCgaUr6DtmA==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "@algolia/client-common": "5.46.2",
- "@algolia/requester-browser-xhr": "5.46.2",
- "@algolia/requester-fetch": "5.46.2",
- "@algolia/requester-node-http": "5.46.2"
- },
- "engines": {
- "node": ">= 14.0.0"
- }
- },
- "node_modules/@algolia/client-query-suggestions": {
- "version": "5.46.2",
- "resolved": "https://registry.npmjs.org/@algolia/client-query-suggestions/-/client-query-suggestions-5.46.2.tgz",
- "integrity": "sha512-EgOzTZkyDcNL6DV0V/24+oBJ+hKo0wNgyrOX/mePBM9bc9huHxIY2352sXmoZ648JXXY2x//V1kropF/Spx83w==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "@algolia/client-common": "5.46.2",
- "@algolia/requester-browser-xhr": "5.46.2",
- "@algolia/requester-fetch": "5.46.2",
- "@algolia/requester-node-http": "5.46.2"
- },
- "engines": {
- "node": ">= 14.0.0"
- }
- },
- "node_modules/@algolia/client-search": {
- "version": "5.46.2",
- "resolved": "https://registry.npmjs.org/@algolia/client-search/-/client-search-5.46.2.tgz",
- "integrity": "sha512-ZsOJqu4HOG5BlvIFnMU0YKjQ9ZI6r3C31dg2jk5kMWPSdhJpYL9xa5hEe7aieE+707dXeMI4ej3diy6mXdZpgA==",
- "dev": true,
- "license": "MIT",
- "peer": true,
- "dependencies": {
- "@algolia/client-common": "5.46.2",
- "@algolia/requester-browser-xhr": "5.46.2",
- "@algolia/requester-fetch": "5.46.2",
- "@algolia/requester-node-http": "5.46.2"
- },
- "engines": {
- "node": ">= 14.0.0"
- }
- },
- "node_modules/@algolia/ingestion": {
- "version": "1.46.2",
- "resolved": "https://registry.npmjs.org/@algolia/ingestion/-/ingestion-1.46.2.tgz",
- "integrity": "sha512-1Uw2OslTWiOFDtt83y0bGiErJYy5MizadV0nHnOoHFWMoDqWW0kQoMFI65pXqRSkVvit5zjXSLik2xMiyQJDWQ==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "@algolia/client-common": "5.46.2",
- "@algolia/requester-browser-xhr": "5.46.2",
- "@algolia/requester-fetch": "5.46.2",
- "@algolia/requester-node-http": "5.46.2"
- },
- "engines": {
- "node": ">= 14.0.0"
- }
- },
- "node_modules/@algolia/monitoring": {
- "version": "1.46.2",
- "resolved": "https://registry.npmjs.org/@algolia/monitoring/-/monitoring-1.46.2.tgz",
- "integrity": "sha512-xk9f+DPtNcddWN6E7n1hyNNsATBCHIqAvVGG2EAGHJc4AFYL18uM/kMTiOKXE/LKDPyy1JhIerrh9oYb7RBrgw==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "@algolia/client-common": "5.46.2",
- "@algolia/requester-browser-xhr": "5.46.2",
- "@algolia/requester-fetch": "5.46.2",
- "@algolia/requester-node-http": "5.46.2"
- },
- "engines": {
- "node": ">= 14.0.0"
- }
- },
- "node_modules/@algolia/recommend": {
- "version": "5.46.2",
- "resolved": "https://registry.npmjs.org/@algolia/recommend/-/recommend-5.46.2.tgz",
- "integrity": "sha512-NApbTPj9LxGzNw4dYnZmj2BoXiAc8NmbbH6qBNzQgXklGklt/xldTvu+FACN6ltFsTzoNU6j2mWNlHQTKGC5+Q==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "@algolia/client-common": "5.46.2",
- "@algolia/requester-browser-xhr": "5.46.2",
- "@algolia/requester-fetch": "5.46.2",
- "@algolia/requester-node-http": "5.46.2"
- },
- "engines": {
- "node": ">= 14.0.0"
- }
- },
- "node_modules/@algolia/requester-browser-xhr": {
- "version": "5.46.2",
- "resolved": "https://registry.npmjs.org/@algolia/requester-browser-xhr/-/requester-browser-xhr-5.46.2.tgz",
- "integrity": "sha512-ekotpCwpSp033DIIrsTpYlGUCF6momkgupRV/FA3m62SreTSZUKjgK6VTNyG7TtYfq9YFm/pnh65bATP/ZWJEg==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "@algolia/client-common": "5.46.2"
- },
- "engines": {
- "node": ">= 14.0.0"
- }
- },
- "node_modules/@algolia/requester-fetch": {
- "version": "5.46.2",
- "resolved": "https://registry.npmjs.org/@algolia/requester-fetch/-/requester-fetch-5.46.2.tgz",
- "integrity": "sha512-gKE+ZFi/6y7saTr34wS0SqYFDcjHW4Wminv8PDZEi0/mE99+hSrbKgJWxo2ztb5eqGirQTgIh1AMVacGGWM1iw==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "@algolia/client-common": "5.46.2"
- },
- "engines": {
- "node": ">= 14.0.0"
- }
- },
- "node_modules/@algolia/requester-node-http": {
- "version": "5.46.2",
- "resolved": "https://registry.npmjs.org/@algolia/requester-node-http/-/requester-node-http-5.46.2.tgz",
- "integrity": "sha512-ciPihkletp7ttweJ8Zt+GukSVLp2ANJHU+9ttiSxsJZThXc4Y2yJ8HGVWesW5jN1zrsZsezN71KrMx/iZsOYpg==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "@algolia/client-common": "5.46.2"
- },
- "engines": {
- "node": ">= 14.0.0"
- }
- },
- "node_modules/@babel/helper-string-parser": {
- "version": "7.27.1",
- "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.27.1.tgz",
- "integrity": "sha512-qMlSxKbpRlAridDExk92nSobyDdpPijUq2DW6oDnUqd0iOGxmQjyqhMIihI9+zv4LPyZdRje2cavWPbCbWm3eA==",
- "dev": true,
- "license": "MIT",
- "engines": {
- "node": ">=6.9.0"
- }
- },
- "node_modules/@babel/helper-validator-identifier": {
- "version": "7.28.5",
- "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.28.5.tgz",
- "integrity": "sha512-qSs4ifwzKJSV39ucNjsvc6WVHs6b7S03sOh2OcHF9UHfVPqWWALUsNUVzhSBiItjRZoLHx7nIarVjqKVusUZ1Q==",
- "dev": true,
- "license": "MIT",
- "engines": {
- "node": ">=6.9.0"
- }
- },
- "node_modules/@babel/parser": {
- "version": "7.28.5",
- "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.28.5.tgz",
- "integrity": "sha512-KKBU1VGYR7ORr3At5HAtUQ+TV3SzRCXmA/8OdDZiLDBIZxVyzXuztPjfLd3BV1PRAQGCMWWSHYhL0F8d5uHBDQ==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "@babel/types": "^7.28.5"
- },
- "bin": {
- "parser": "bin/babel-parser.js"
- },
- "engines": {
- "node": ">=6.0.0"
- }
- },
- "node_modules/@babel/types": {
- "version": "7.28.5",
- "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.28.5.tgz",
- "integrity": "sha512-qQ5m48eI/MFLQ5PxQj4PFaprjyCTLI37ElWMmNs0K8Lk3dVeOdNpB3ks8jc7yM5CDmVC73eMVk/trk3fgmrUpA==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "@babel/helper-string-parser": "^7.27.1",
- "@babel/helper-validator-identifier": "^7.28.5"
- },
- "engines": {
- "node": ">=6.9.0"
- }
- },
- "node_modules/@docsearch/css": {
- "version": "3.8.2",
- "resolved": "https://registry.npmjs.org/@docsearch/css/-/css-3.8.2.tgz",
- "integrity": "sha512-y05ayQFyUmCXze79+56v/4HpycYF3uFqB78pLPrSV5ZKAlDuIAAJNhaRi8tTdRNXh05yxX/TyNnzD6LwSM89vQ==",
- "dev": true,
- "license": "MIT"
- },
- "node_modules/@docsearch/js": {
- "version": "3.8.2",
- "resolved": "https://registry.npmjs.org/@docsearch/js/-/js-3.8.2.tgz",
- "integrity": "sha512-Q5wY66qHn0SwA7Taa0aDbHiJvaFJLOJyHmooQ7y8hlwwQLQ/5WwCcoX0g7ii04Qi2DJlHsd0XXzJ8Ypw9+9YmQ==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "@docsearch/react": "3.8.2",
- "preact": "^10.0.0"
- }
- },
- "node_modules/@docsearch/react": {
- "version": "3.8.2",
- "resolved": "https://registry.npmjs.org/@docsearch/react/-/react-3.8.2.tgz",
- "integrity": "sha512-xCRrJQlTt8N9GU0DG4ptwHRkfnSnD/YpdeaXe02iKfqs97TkZJv60yE+1eq/tjPcVnTW8dP5qLP7itifFVV5eg==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "@algolia/autocomplete-core": "1.17.7",
- "@algolia/autocomplete-preset-algolia": "1.17.7",
- "@docsearch/css": "3.8.2",
- "algoliasearch": "^5.14.2"
- },
- "peerDependencies": {
- "@types/react": ">= 16.8.0 < 19.0.0",
- "react": ">= 16.8.0 < 19.0.0",
- "react-dom": ">= 16.8.0 < 19.0.0",
- "search-insights": ">= 1 < 3"
- },
- "peerDependenciesMeta": {
- "@types/react": {
- "optional": true
- },
- "react": {
- "optional": true
- },
- "react-dom": {
- "optional": true
- },
- "search-insights": {
- "optional": true
- }
- }
- },
- "node_modules/@esbuild/aix-ppc64": {
- "version": "0.25.12",
- "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.25.12.tgz",
- "integrity": "sha512-Hhmwd6CInZ3dwpuGTF8fJG6yoWmsToE+vYgD4nytZVxcu1ulHpUQRAB1UJ8+N1Am3Mz4+xOByoQoSZf4D+CpkA==",
- "cpu": [
- "ppc64"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "aix"
- ],
- "engines": {
- "node": ">=18"
- }
- },
- "node_modules/@esbuild/android-arm": {
- "version": "0.25.12",
- "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.25.12.tgz",
- "integrity": "sha512-VJ+sKvNA/GE7Ccacc9Cha7bpS8nyzVv0jdVgwNDaR4gDMC/2TTRc33Ip8qrNYUcpkOHUT5OZ0bUcNNVZQ9RLlg==",
- "cpu": [
- "arm"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "android"
- ],
- "engines": {
- "node": ">=18"
- }
- },
- "node_modules/@esbuild/android-arm64": {
- "version": "0.25.12",
- "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.25.12.tgz",
- "integrity": "sha512-6AAmLG7zwD1Z159jCKPvAxZd4y/VTO0VkprYy+3N2FtJ8+BQWFXU+OxARIwA46c5tdD9SsKGZ/1ocqBS/gAKHg==",
- "cpu": [
- "arm64"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "android"
- ],
- "engines": {
- "node": ">=18"
- }
- },
- "node_modules/@esbuild/android-x64": {
- "version": "0.25.12",
- "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.25.12.tgz",
- "integrity": "sha512-5jbb+2hhDHx5phYR2By8GTWEzn6I9UqR11Kwf22iKbNpYrsmRB18aX/9ivc5cabcUiAT/wM+YIZ6SG9QO6a8kg==",
- "cpu": [
- "x64"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "android"
- ],
- "engines": {
- "node": ">=18"
- }
- },
- "node_modules/@esbuild/darwin-arm64": {
- "version": "0.25.12",
- "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.25.12.tgz",
- "integrity": "sha512-N3zl+lxHCifgIlcMUP5016ESkeQjLj/959RxxNYIthIg+CQHInujFuXeWbWMgnTo4cp5XVHqFPmpyu9J65C1Yg==",
- "cpu": [
- "arm64"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "darwin"
- ],
- "engines": {
- "node": ">=18"
- }
- },
- "node_modules/@esbuild/darwin-x64": {
- "version": "0.25.12",
- "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.25.12.tgz",
- "integrity": "sha512-HQ9ka4Kx21qHXwtlTUVbKJOAnmG1ipXhdWTmNXiPzPfWKpXqASVcWdnf2bnL73wgjNrFXAa3yYvBSd9pzfEIpA==",
- "cpu": [
- "x64"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "darwin"
- ],
- "engines": {
- "node": ">=18"
- }
- },
- "node_modules/@esbuild/freebsd-arm64": {
- "version": "0.25.12",
- "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.25.12.tgz",
- "integrity": "sha512-gA0Bx759+7Jve03K1S0vkOu5Lg/85dou3EseOGUes8flVOGxbhDDh/iZaoek11Y8mtyKPGF3vP8XhnkDEAmzeg==",
- "cpu": [
- "arm64"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "freebsd"
- ],
- "engines": {
- "node": ">=18"
- }
- },
- "node_modules/@esbuild/freebsd-x64": {
- "version": "0.25.12",
- "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.25.12.tgz",
- "integrity": "sha512-TGbO26Yw2xsHzxtbVFGEXBFH0FRAP7gtcPE7P5yP7wGy7cXK2oO7RyOhL5NLiqTlBh47XhmIUXuGciXEqYFfBQ==",
- "cpu": [
- "x64"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "freebsd"
- ],
- "engines": {
- "node": ">=18"
- }
- },
- "node_modules/@esbuild/linux-arm": {
- "version": "0.25.12",
- "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.25.12.tgz",
- "integrity": "sha512-lPDGyC1JPDou8kGcywY0YILzWlhhnRjdof3UlcoqYmS9El818LLfJJc3PXXgZHrHCAKs/Z2SeZtDJr5MrkxtOw==",
- "cpu": [
- "arm"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "linux"
- ],
- "engines": {
- "node": ">=18"
- }
- },
- "node_modules/@esbuild/linux-arm64": {
- "version": "0.25.12",
- "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.25.12.tgz",
- "integrity": "sha512-8bwX7a8FghIgrupcxb4aUmYDLp8pX06rGh5HqDT7bB+8Rdells6mHvrFHHW2JAOPZUbnjUpKTLg6ECyzvas2AQ==",
- "cpu": [
- "arm64"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "linux"
- ],
- "engines": {
- "node": ">=18"
- }
- },
- "node_modules/@esbuild/linux-ia32": {
- "version": "0.25.12",
- "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.25.12.tgz",
- "integrity": "sha512-0y9KrdVnbMM2/vG8KfU0byhUN+EFCny9+8g202gYqSSVMonbsCfLjUO+rCci7pM0WBEtz+oK/PIwHkzxkyharA==",
- "cpu": [
- "ia32"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "linux"
- ],
- "engines": {
- "node": ">=18"
- }
- },
- "node_modules/@esbuild/linux-loong64": {
- "version": "0.25.12",
- "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.25.12.tgz",
- "integrity": "sha512-h///Lr5a9rib/v1GGqXVGzjL4TMvVTv+s1DPoxQdz7l/AYv6LDSxdIwzxkrPW438oUXiDtwM10o9PmwS/6Z0Ng==",
- "cpu": [
- "loong64"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "linux"
- ],
- "engines": {
- "node": ">=18"
- }
- },
- "node_modules/@esbuild/linux-mips64el": {
- "version": "0.25.12",
- "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.25.12.tgz",
- "integrity": "sha512-iyRrM1Pzy9GFMDLsXn1iHUm18nhKnNMWscjmp4+hpafcZjrr2WbT//d20xaGljXDBYHqRcl8HnxbX6uaA/eGVw==",
- "cpu": [
- "mips64el"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "linux"
- ],
- "engines": {
- "node": ">=18"
- }
- },
- "node_modules/@esbuild/linux-ppc64": {
- "version": "0.25.12",
- "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.25.12.tgz",
- "integrity": "sha512-9meM/lRXxMi5PSUqEXRCtVjEZBGwB7P/D4yT8UG/mwIdze2aV4Vo6U5gD3+RsoHXKkHCfSxZKzmDssVlRj1QQA==",
- "cpu": [
- "ppc64"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "linux"
- ],
- "engines": {
- "node": ">=18"
- }
- },
- "node_modules/@esbuild/linux-riscv64": {
- "version": "0.25.12",
- "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.25.12.tgz",
- "integrity": "sha512-Zr7KR4hgKUpWAwb1f3o5ygT04MzqVrGEGXGLnj15YQDJErYu/BGg+wmFlIDOdJp0PmB0lLvxFIOXZgFRrdjR0w==",
- "cpu": [
- "riscv64"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "linux"
- ],
- "engines": {
- "node": ">=18"
- }
- },
- "node_modules/@esbuild/linux-s390x": {
- "version": "0.25.12",
- "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.25.12.tgz",
- "integrity": "sha512-MsKncOcgTNvdtiISc/jZs/Zf8d0cl/t3gYWX8J9ubBnVOwlk65UIEEvgBORTiljloIWnBzLs4qhzPkJcitIzIg==",
- "cpu": [
- "s390x"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "linux"
- ],
- "engines": {
- "node": ">=18"
- }
- },
- "node_modules/@esbuild/linux-x64": {
- "version": "0.25.12",
- "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.25.12.tgz",
- "integrity": "sha512-uqZMTLr/zR/ed4jIGnwSLkaHmPjOjJvnm6TVVitAa08SLS9Z0VM8wIRx7gWbJB5/J54YuIMInDquWyYvQLZkgw==",
- "cpu": [
- "x64"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "linux"
- ],
- "engines": {
- "node": ">=18"
- }
- },
- "node_modules/@esbuild/netbsd-arm64": {
- "version": "0.25.12",
- "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.25.12.tgz",
- "integrity": "sha512-xXwcTq4GhRM7J9A8Gv5boanHhRa/Q9KLVmcyXHCTaM4wKfIpWkdXiMog/KsnxzJ0A1+nD+zoecuzqPmCRyBGjg==",
- "cpu": [
- "arm64"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "netbsd"
- ],
- "engines": {
- "node": ">=18"
- }
- },
- "node_modules/@esbuild/netbsd-x64": {
- "version": "0.25.12",
- "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.25.12.tgz",
- "integrity": "sha512-Ld5pTlzPy3YwGec4OuHh1aCVCRvOXdH8DgRjfDy/oumVovmuSzWfnSJg+VtakB9Cm0gxNO9BzWkj6mtO1FMXkQ==",
- "cpu": [
- "x64"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "netbsd"
- ],
- "engines": {
- "node": ">=18"
- }
- },
- "node_modules/@esbuild/openbsd-arm64": {
- "version": "0.25.12",
- "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.25.12.tgz",
- "integrity": "sha512-fF96T6KsBo/pkQI950FARU9apGNTSlZGsv1jZBAlcLL1MLjLNIWPBkj5NlSz8aAzYKg+eNqknrUJ24QBybeR5A==",
- "cpu": [
- "arm64"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "openbsd"
- ],
- "engines": {
- "node": ">=18"
- }
- },
- "node_modules/@esbuild/openbsd-x64": {
- "version": "0.25.12",
- "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.25.12.tgz",
- "integrity": "sha512-MZyXUkZHjQxUvzK7rN8DJ3SRmrVrke8ZyRusHlP+kuwqTcfWLyqMOE3sScPPyeIXN/mDJIfGXvcMqCgYKekoQw==",
- "cpu": [
- "x64"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "openbsd"
- ],
- "engines": {
- "node": ">=18"
- }
- },
- "node_modules/@esbuild/openharmony-arm64": {
- "version": "0.25.12",
- "resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.25.12.tgz",
- "integrity": "sha512-rm0YWsqUSRrjncSXGA7Zv78Nbnw4XL6/dzr20cyrQf7ZmRcsovpcRBdhD43Nuk3y7XIoW2OxMVvwuRvk9XdASg==",
- "cpu": [
- "arm64"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "openharmony"
- ],
- "engines": {
- "node": ">=18"
- }
- },
- "node_modules/@esbuild/sunos-x64": {
- "version": "0.25.12",
- "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.25.12.tgz",
- "integrity": "sha512-3wGSCDyuTHQUzt0nV7bocDy72r2lI33QL3gkDNGkod22EsYl04sMf0qLb8luNKTOmgF/eDEDP5BFNwoBKH441w==",
- "cpu": [
- "x64"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "sunos"
- ],
- "engines": {
- "node": ">=18"
- }
- },
- "node_modules/@esbuild/win32-arm64": {
- "version": "0.25.12",
- "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.25.12.tgz",
- "integrity": "sha512-rMmLrur64A7+DKlnSuwqUdRKyd3UE7oPJZmnljqEptesKM8wx9J8gx5u0+9Pq0fQQW8vqeKebwNXdfOyP+8Bsg==",
- "cpu": [
- "arm64"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "win32"
- ],
- "engines": {
- "node": ">=18"
- }
- },
- "node_modules/@esbuild/win32-ia32": {
- "version": "0.25.12",
- "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.25.12.tgz",
- "integrity": "sha512-HkqnmmBoCbCwxUKKNPBixiWDGCpQGVsrQfJoVGYLPT41XWF8lHuE5N6WhVia2n4o5QK5M4tYr21827fNhi4byQ==",
- "cpu": [
- "ia32"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "win32"
- ],
- "engines": {
- "node": ">=18"
- }
- },
- "node_modules/@esbuild/win32-x64": {
- "version": "0.25.12",
- "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.25.12.tgz",
- "integrity": "sha512-alJC0uCZpTFrSL0CCDjcgleBXPnCrEAhTBILpeAp7M/OFgoqtAetfBzX0xM00MUsVVPpVjlPuMbREqnZCXaTnA==",
- "cpu": [
- "x64"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "win32"
- ],
- "engines": {
- "node": ">=18"
- }
- },
- "node_modules/@iconify-json/simple-icons": {
- "version": "1.2.65",
- "resolved": "https://registry.npmjs.org/@iconify-json/simple-icons/-/simple-icons-1.2.65.tgz",
- "integrity": "sha512-v/O0UeqrDz6ASuRVE5g2Puo5aWyej4M/CxX6WYDBARgswwxK0mp3VQbGgPFEAAUU9QN02IjTgjMuO021gpWf2w==",
- "dev": true,
- "license": "CC0-1.0",
- "dependencies": {
- "@iconify/types": "*"
- }
- },
- "node_modules/@iconify/types": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/@iconify/types/-/types-2.0.0.tgz",
- "integrity": "sha512-+wluvCrRhXrhyOmRDJ3q8mux9JkKy5SJ/v8ol2tu4FVjyYvtEzkc/3pK15ET6RKg4b4w4BmTk1+gsCUhf21Ykg==",
- "dev": true,
- "license": "MIT"
- },
- "node_modules/@jridgewell/sourcemap-codec": {
- "version": "1.5.5",
- "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz",
- "integrity": "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==",
- "dev": true,
- "license": "MIT"
- },
- "node_modules/@rollup/rollup-android-arm-eabi": {
- "version": "4.55.1",
- "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.55.1.tgz",
- "integrity": "sha512-9R0DM/ykwfGIlNu6+2U09ga0WXeZ9MRC2Ter8jnz8415VbuIykVuc6bhdrbORFZANDmTDvq26mJrEVTl8TdnDg==",
- "cpu": [
- "arm"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "android"
- ]
- },
- "node_modules/@rollup/rollup-android-arm64": {
- "version": "4.55.1",
- "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.55.1.tgz",
- "integrity": "sha512-eFZCb1YUqhTysgW3sj/55du5cG57S7UTNtdMjCW7LwVcj3dTTcowCsC8p7uBdzKsZYa8J7IDE8lhMI+HX1vQvg==",
- "cpu": [
- "arm64"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "android"
- ]
- },
- "node_modules/@rollup/rollup-darwin-arm64": {
- "version": "4.55.1",
- "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.55.1.tgz",
- "integrity": "sha512-p3grE2PHcQm2e8PSGZdzIhCKbMCw/xi9XvMPErPhwO17vxtvCN5FEA2mSLgmKlCjHGMQTP6phuQTYWUnKewwGg==",
- "cpu": [
- "arm64"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "darwin"
- ]
- },
- "node_modules/@rollup/rollup-darwin-x64": {
- "version": "4.55.1",
- "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.55.1.tgz",
- "integrity": "sha512-rDUjG25C9qoTm+e02Esi+aqTKSBYwVTaoS1wxcN47/Luqef57Vgp96xNANwt5npq9GDxsH7kXxNkJVEsWEOEaQ==",
- "cpu": [
- "x64"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "darwin"
- ]
- },
- "node_modules/@rollup/rollup-freebsd-arm64": {
- "version": "4.55.1",
- "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.55.1.tgz",
- "integrity": "sha512-+JiU7Jbp5cdxekIgdte0jfcu5oqw4GCKr6i3PJTlXTCU5H5Fvtkpbs4XJHRmWNXF+hKmn4v7ogI5OQPaupJgOg==",
- "cpu": [
- "arm64"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "freebsd"
- ]
- },
- "node_modules/@rollup/rollup-freebsd-x64": {
- "version": "4.55.1",
- "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.55.1.tgz",
- "integrity": "sha512-V5xC1tOVWtLLmr3YUk2f6EJK4qksksOYiz/TCsFHu/R+woubcLWdC9nZQmwjOAbmExBIVKsm1/wKmEy4z4u4Bw==",
- "cpu": [
- "x64"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "freebsd"
- ]
- },
- "node_modules/@rollup/rollup-linux-arm-gnueabihf": {
- "version": "4.55.1",
- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.55.1.tgz",
- "integrity": "sha512-Rn3n+FUk2J5VWx+ywrG/HGPTD9jXNbicRtTM11e/uorplArnXZYsVifnPPqNNP5BsO3roI4n8332ukpY/zN7rQ==",
- "cpu": [
- "arm"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "linux"
- ]
- },
- "node_modules/@rollup/rollup-linux-arm-musleabihf": {
- "version": "4.55.1",
- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.55.1.tgz",
- "integrity": "sha512-grPNWydeKtc1aEdrJDWk4opD7nFtQbMmV7769hiAaYyUKCT1faPRm2av8CX1YJsZ4TLAZcg9gTR1KvEzoLjXkg==",
- "cpu": [
- "arm"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "linux"
- ]
- },
- "node_modules/@rollup/rollup-linux-arm64-gnu": {
- "version": "4.55.1",
- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.55.1.tgz",
- "integrity": "sha512-a59mwd1k6x8tXKcUxSyISiquLwB5pX+fJW9TkWU46lCqD/GRDe9uDN31jrMmVP3feI3mhAdvcCClhV8V5MhJFQ==",
- "cpu": [
- "arm64"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "linux"
- ]
- },
- "node_modules/@rollup/rollup-linux-arm64-musl": {
- "version": "4.55.1",
- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.55.1.tgz",
- "integrity": "sha512-puS1MEgWX5GsHSoiAsF0TYrpomdvkaXm0CofIMG5uVkP6IBV+ZO9xhC5YEN49nsgYo1DuuMquF9+7EDBVYu4uA==",
- "cpu": [
- "arm64"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "linux"
- ]
- },
- "node_modules/@rollup/rollup-linux-loong64-gnu": {
- "version": "4.55.1",
- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-gnu/-/rollup-linux-loong64-gnu-4.55.1.tgz",
- "integrity": "sha512-r3Wv40in+lTsULSb6nnoudVbARdOwb2u5fpeoOAZjFLznp6tDU8kd+GTHmJoqZ9lt6/Sys33KdIHUaQihFcu7g==",
- "cpu": [
- "loong64"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "linux"
- ]
- },
- "node_modules/@rollup/rollup-linux-loong64-musl": {
- "version": "4.55.1",
- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-musl/-/rollup-linux-loong64-musl-4.55.1.tgz",
- "integrity": "sha512-MR8c0+UxAlB22Fq4R+aQSPBayvYa3+9DrwG/i1TKQXFYEaoW3B5b/rkSRIypcZDdWjWnpcvxbNaAJDcSbJU3Lw==",
- "cpu": [
- "loong64"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "linux"
- ]
- },
- "node_modules/@rollup/rollup-linux-ppc64-gnu": {
- "version": "4.55.1",
- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-gnu/-/rollup-linux-ppc64-gnu-4.55.1.tgz",
- "integrity": "sha512-3KhoECe1BRlSYpMTeVrD4sh2Pw2xgt4jzNSZIIPLFEsnQn9gAnZagW9+VqDqAHgm1Xc77LzJOo2LdigS5qZ+gw==",
- "cpu": [
- "ppc64"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "linux"
- ]
- },
- "node_modules/@rollup/rollup-linux-ppc64-musl": {
- "version": "4.55.1",
- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-musl/-/rollup-linux-ppc64-musl-4.55.1.tgz",
- "integrity": "sha512-ziR1OuZx0vdYZZ30vueNZTg73alF59DicYrPViG0NEgDVN8/Jl87zkAPu4u6VjZST2llgEUjaiNl9JM6HH1Vdw==",
- "cpu": [
- "ppc64"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "linux"
- ]
- },
- "node_modules/@rollup/rollup-linux-riscv64-gnu": {
- "version": "4.55.1",
- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.55.1.tgz",
- "integrity": "sha512-uW0Y12ih2XJRERZ4jAfKamTyIHVMPQnTZcQjme2HMVDAHY4amf5u414OqNYC+x+LzRdRcnIG1YodLrrtA8xsxw==",
- "cpu": [
- "riscv64"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "linux"
- ]
- },
- "node_modules/@rollup/rollup-linux-riscv64-musl": {
- "version": "4.55.1",
- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.55.1.tgz",
- "integrity": "sha512-u9yZ0jUkOED1BFrqu3BwMQoixvGHGZ+JhJNkNKY/hyoEgOwlqKb62qu+7UjbPSHYjiVy8kKJHvXKv5coH4wDeg==",
- "cpu": [
- "riscv64"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "linux"
- ]
- },
- "node_modules/@rollup/rollup-linux-s390x-gnu": {
- "version": "4.55.1",
- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.55.1.tgz",
- "integrity": "sha512-/0PenBCmqM4ZUd0190j7J0UsQ/1nsi735iPRakO8iPciE7BQ495Y6msPzaOmvx0/pn+eJVVlZrNrSh4WSYLxNg==",
- "cpu": [
- "s390x"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "linux"
- ]
- },
- "node_modules/@rollup/rollup-linux-x64-gnu": {
- "version": "4.55.1",
- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.55.1.tgz",
- "integrity": "sha512-a8G4wiQxQG2BAvo+gU6XrReRRqj+pLS2NGXKm8io19goR+K8lw269eTrPkSdDTALwMmJp4th2Uh0D8J9bEV1vg==",
- "cpu": [
- "x64"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "linux"
- ]
- },
- "node_modules/@rollup/rollup-linux-x64-musl": {
- "version": "4.55.1",
- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.55.1.tgz",
- "integrity": "sha512-bD+zjpFrMpP/hqkfEcnjXWHMw5BIghGisOKPj+2NaNDuVT+8Ds4mPf3XcPHuat1tz89WRL+1wbcxKY3WSbiT7w==",
- "cpu": [
- "x64"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "linux"
- ]
- },
- "node_modules/@rollup/rollup-openbsd-x64": {
- "version": "4.55.1",
- "resolved": "https://registry.npmjs.org/@rollup/rollup-openbsd-x64/-/rollup-openbsd-x64-4.55.1.tgz",
- "integrity": "sha512-eLXw0dOiqE4QmvikfQ6yjgkg/xDM+MdU9YJuP4ySTibXU0oAvnEWXt7UDJmD4UkYialMfOGFPJnIHSe/kdzPxg==",
- "cpu": [
- "x64"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "openbsd"
- ]
- },
- "node_modules/@rollup/rollup-openharmony-arm64": {
- "version": "4.55.1",
- "resolved": "https://registry.npmjs.org/@rollup/rollup-openharmony-arm64/-/rollup-openharmony-arm64-4.55.1.tgz",
- "integrity": "sha512-xzm44KgEP11te3S2HCSyYf5zIzWmx3n8HDCc7EE59+lTcswEWNpvMLfd9uJvVX8LCg9QWG67Xt75AuHn4vgsXw==",
- "cpu": [
- "arm64"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "openharmony"
- ]
- },
- "node_modules/@rollup/rollup-win32-arm64-msvc": {
- "version": "4.55.1",
- "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.55.1.tgz",
- "integrity": "sha512-yR6Bl3tMC/gBok5cz/Qi0xYnVbIxGx5Fcf/ca0eB6/6JwOY+SRUcJfI0OpeTpPls7f194as62thCt/2BjxYN8g==",
- "cpu": [
- "arm64"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "win32"
- ]
- },
- "node_modules/@rollup/rollup-win32-ia32-msvc": {
- "version": "4.55.1",
- "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.55.1.tgz",
- "integrity": "sha512-3fZBidchE0eY0oFZBnekYCfg+5wAB0mbpCBuofh5mZuzIU/4jIVkbESmd2dOsFNS78b53CYv3OAtwqkZZmU5nA==",
- "cpu": [
- "ia32"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "win32"
- ]
- },
- "node_modules/@rollup/rollup-win32-x64-gnu": {
- "version": "4.55.1",
- "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-gnu/-/rollup-win32-x64-gnu-4.55.1.tgz",
- "integrity": "sha512-xGGY5pXj69IxKb4yv/POoocPy/qmEGhimy/FoTpTSVju3FYXUQQMFCaZZXJVidsmGxRioZAwpThl/4zX41gRKg==",
- "cpu": [
- "x64"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "win32"
- ]
- },
- "node_modules/@rollup/rollup-win32-x64-msvc": {
- "version": "4.55.1",
- "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.55.1.tgz",
- "integrity": "sha512-SPEpaL6DX4rmcXtnhdrQYgzQ5W2uW3SCJch88lB2zImhJRhIIK44fkUrgIV/Q8yUNfw5oyZ5vkeQsZLhCb06lw==",
- "cpu": [
- "x64"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "win32"
- ]
- },
- "node_modules/@shikijs/core": {
- "version": "2.5.0",
- "resolved": "https://registry.npmjs.org/@shikijs/core/-/core-2.5.0.tgz",
- "integrity": "sha512-uu/8RExTKtavlpH7XqnVYBrfBkUc20ngXiX9NSrBhOVZYv/7XQRKUyhtkeflY5QsxC0GbJThCerruZfsUaSldg==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "@shikijs/engine-javascript": "2.5.0",
- "@shikijs/engine-oniguruma": "2.5.0",
- "@shikijs/types": "2.5.0",
- "@shikijs/vscode-textmate": "^10.0.2",
- "@types/hast": "^3.0.4",
- "hast-util-to-html": "^9.0.4"
- }
- },
- "node_modules/@shikijs/engine-javascript": {
- "version": "2.5.0",
- "resolved": "https://registry.npmjs.org/@shikijs/engine-javascript/-/engine-javascript-2.5.0.tgz",
- "integrity": "sha512-VjnOpnQf8WuCEZtNUdjjwGUbtAVKuZkVQ/5cHy/tojVVRIRtlWMYVjyWhxOmIq05AlSOv72z7hRNRGVBgQOl0w==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "@shikijs/types": "2.5.0",
- "@shikijs/vscode-textmate": "^10.0.2",
- "oniguruma-to-es": "^3.1.0"
- }
- },
- "node_modules/@shikijs/engine-oniguruma": {
- "version": "2.5.0",
- "resolved": "https://registry.npmjs.org/@shikijs/engine-oniguruma/-/engine-oniguruma-2.5.0.tgz",
- "integrity": "sha512-pGd1wRATzbo/uatrCIILlAdFVKdxImWJGQ5rFiB5VZi2ve5xj3Ax9jny8QvkaV93btQEwR/rSz5ERFpC5mKNIw==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "@shikijs/types": "2.5.0",
- "@shikijs/vscode-textmate": "^10.0.2"
- }
- },
- "node_modules/@shikijs/langs": {
- "version": "2.5.0",
- "resolved": "https://registry.npmjs.org/@shikijs/langs/-/langs-2.5.0.tgz",
- "integrity": "sha512-Qfrrt5OsNH5R+5tJ/3uYBBZv3SuGmnRPejV9IlIbFH3HTGLDlkqgHymAlzklVmKBjAaVmkPkyikAV/sQ1wSL+w==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "@shikijs/types": "2.5.0"
- }
- },
- "node_modules/@shikijs/themes": {
- "version": "2.5.0",
- "resolved": "https://registry.npmjs.org/@shikijs/themes/-/themes-2.5.0.tgz",
- "integrity": "sha512-wGrk+R8tJnO0VMzmUExHR+QdSaPUl/NKs+a4cQQRWyoc3YFbUzuLEi/KWK1hj+8BfHRKm2jNhhJck1dfstJpiw==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "@shikijs/types": "2.5.0"
- }
- },
- "node_modules/@shikijs/transformers": {
- "version": "2.5.0",
- "resolved": "https://registry.npmjs.org/@shikijs/transformers/-/transformers-2.5.0.tgz",
- "integrity": "sha512-SI494W5X60CaUwgi8u4q4m4s3YAFSxln3tzNjOSYqq54wlVgz0/NbbXEb3mdLbqMBztcmS7bVTaEd2w0qMmfeg==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "@shikijs/core": "2.5.0",
- "@shikijs/types": "2.5.0"
- }
- },
- "node_modules/@shikijs/types": {
- "version": "2.5.0",
- "resolved": "https://registry.npmjs.org/@shikijs/types/-/types-2.5.0.tgz",
- "integrity": "sha512-ygl5yhxki9ZLNuNpPitBWvcy9fsSKKaRuO4BAlMyagszQidxcpLAr0qiW/q43DtSIDxO6hEbtYLiFZNXO/hdGw==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "@shikijs/vscode-textmate": "^10.0.2",
- "@types/hast": "^3.0.4"
- }
- },
- "node_modules/@shikijs/vscode-textmate": {
- "version": "10.0.2",
- "resolved": "https://registry.npmjs.org/@shikijs/vscode-textmate/-/vscode-textmate-10.0.2.tgz",
- "integrity": "sha512-83yeghZ2xxin3Nj8z1NMd/NCuca+gsYXswywDy5bHvwlWL8tpTQmzGeUuHd9FC3E/SBEMvzJRwWEOz5gGes9Qg==",
- "dev": true,
- "license": "MIT"
- },
- "node_modules/@types/estree": {
- "version": "1.0.8",
- "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.8.tgz",
- "integrity": "sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w==",
- "dev": true,
- "license": "MIT"
- },
- "node_modules/@types/hast": {
- "version": "3.0.4",
- "resolved": "https://registry.npmjs.org/@types/hast/-/hast-3.0.4.tgz",
- "integrity": "sha512-WPs+bbQw5aCj+x6laNGWLH3wviHtoCv/P3+otBhbOhJgG8qtpdAMlTCxLtsTWA7LH1Oh/bFCHsBn0TPS5m30EQ==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "@types/unist": "*"
- }
- },
- "node_modules/@types/linkify-it": {
- "version": "5.0.0",
- "resolved": "https://registry.npmjs.org/@types/linkify-it/-/linkify-it-5.0.0.tgz",
- "integrity": "sha512-sVDA58zAw4eWAffKOaQH5/5j3XeayukzDk+ewSsnv3p4yJEZHCCzMDiZM8e0OUrRvmpGZ85jf4yDHkHsgBNr9Q==",
- "dev": true,
- "license": "MIT"
- },
- "node_modules/@types/markdown-it": {
- "version": "14.1.2",
- "resolved": "https://registry.npmjs.org/@types/markdown-it/-/markdown-it-14.1.2.tgz",
- "integrity": "sha512-promo4eFwuiW+TfGxhi+0x3czqTYJkG8qB17ZUJiVF10Xm7NLVRSLUsfRTU/6h1e24VvRnXCx+hG7li58lkzog==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "@types/linkify-it": "^5",
- "@types/mdurl": "^2"
- }
- },
- "node_modules/@types/mdast": {
- "version": "4.0.4",
- "resolved": "https://registry.npmjs.org/@types/mdast/-/mdast-4.0.4.tgz",
- "integrity": "sha512-kGaNbPh1k7AFzgpud/gMdvIm5xuECykRR+JnWKQno9TAXVa6WIVCGTPvYGekIDL4uwCZQSYbUxNBSb1aUo79oA==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "@types/unist": "*"
- }
- },
- "node_modules/@types/mdurl": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/@types/mdurl/-/mdurl-2.0.0.tgz",
- "integrity": "sha512-RGdgjQUZba5p6QEFAVx2OGb8rQDL/cPRG7GiedRzMcJ1tYnUANBncjbSB1NRGwbvjcPeikRABz2nshyPk1bhWg==",
- "dev": true,
- "license": "MIT"
- },
- "node_modules/@types/unist": {
- "version": "3.0.3",
- "resolved": "https://registry.npmjs.org/@types/unist/-/unist-3.0.3.tgz",
- "integrity": "sha512-ko/gIFJRv177XgZsZcBwnqJN5x/Gien8qNOn0D5bQU/zAzVf9Zt3BlcUiLqhV9y4ARk0GbT3tnUiPNgnTXzc/Q==",
- "dev": true,
- "license": "MIT"
- },
- "node_modules/@types/web-bluetooth": {
- "version": "0.0.21",
- "resolved": "https://registry.npmjs.org/@types/web-bluetooth/-/web-bluetooth-0.0.21.tgz",
- "integrity": "sha512-oIQLCGWtcFZy2JW77j9k8nHzAOpqMHLQejDA48XXMWH6tjCQHz5RCFz1bzsmROyL6PUm+LLnUiI4BCn221inxA==",
- "dev": true,
- "license": "MIT"
- },
- "node_modules/@ungap/structured-clone": {
- "version": "1.3.0",
- "resolved": "https://registry.npmjs.org/@ungap/structured-clone/-/structured-clone-1.3.0.tgz",
- "integrity": "sha512-WmoN8qaIAo7WTYWbAZuG8PYEhn5fkz7dZrqTBZ7dtt//lL2Gwms1IcnQ5yHqjDfX8Ft5j4YzDM23f87zBfDe9g==",
- "dev": true,
- "license": "ISC"
- },
- "node_modules/@vitejs/plugin-vue": {
- "version": "5.2.4",
- "resolved": "https://registry.npmjs.org/@vitejs/plugin-vue/-/plugin-vue-5.2.4.tgz",
- "integrity": "sha512-7Yx/SXSOcQq5HiiV3orevHUFn+pmMB4cgbEkDYgnkUWb0WfeQ/wa2yFv6D5ICiCQOVpjA7vYDXrC7AGO8yjDHA==",
- "dev": true,
- "license": "MIT",
- "engines": {
- "node": "^18.0.0 || >=20.0.0"
- },
- "peerDependencies": {
- "vite": "^5.0.0 || ^6.0.0",
- "vue": "^3.2.25"
- }
- },
- "node_modules/@vue/compiler-core": {
- "version": "3.5.26",
- "resolved": "https://registry.npmjs.org/@vue/compiler-core/-/compiler-core-3.5.26.tgz",
- "integrity": "sha512-vXyI5GMfuoBCnv5ucIT7jhHKl55Y477yxP6fc4eUswjP8FG3FFVFd41eNDArR+Uk3QKn2Z85NavjaxLxOC19/w==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "@babel/parser": "^7.28.5",
- "@vue/shared": "3.5.26",
- "entities": "^7.0.0",
- "estree-walker": "^2.0.2",
- "source-map-js": "^1.2.1"
- }
- },
- "node_modules/@vue/compiler-dom": {
- "version": "3.5.26",
- "resolved": "https://registry.npmjs.org/@vue/compiler-dom/-/compiler-dom-3.5.26.tgz",
- "integrity": "sha512-y1Tcd3eXs834QjswshSilCBnKGeQjQXB6PqFn/1nxcQw4pmG42G8lwz+FZPAZAby6gZeHSt/8LMPfZ4Rb+Bd/A==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "@vue/compiler-core": "3.5.26",
- "@vue/shared": "3.5.26"
- }
- },
- "node_modules/@vue/compiler-sfc": {
- "version": "3.5.26",
- "resolved": "https://registry.npmjs.org/@vue/compiler-sfc/-/compiler-sfc-3.5.26.tgz",
- "integrity": "sha512-egp69qDTSEZcf4bGOSsprUr4xI73wfrY5oRs6GSgXFTiHrWj4Y3X5Ydtip9QMqiCMCPVwLglB9GBxXtTadJ3mA==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "@babel/parser": "^7.28.5",
- "@vue/compiler-core": "3.5.26",
- "@vue/compiler-dom": "3.5.26",
- "@vue/compiler-ssr": "3.5.26",
- "@vue/shared": "3.5.26",
- "estree-walker": "^2.0.2",
- "magic-string": "^0.30.21",
- "postcss": "^8.5.6",
- "source-map-js": "^1.2.1"
- }
- },
- "node_modules/@vue/compiler-ssr": {
- "version": "3.5.26",
- "resolved": "https://registry.npmjs.org/@vue/compiler-ssr/-/compiler-ssr-3.5.26.tgz",
- "integrity": "sha512-lZT9/Y0nSIRUPVvapFJEVDbEXruZh2IYHMk2zTtEgJSlP5gVOqeWXH54xDKAaFS4rTnDeDBQUYDtxKyoW9FwDw==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "@vue/compiler-dom": "3.5.26",
- "@vue/shared": "3.5.26"
- }
- },
- "node_modules/@vue/devtools-api": {
- "version": "7.7.9",
- "resolved": "https://registry.npmjs.org/@vue/devtools-api/-/devtools-api-7.7.9.tgz",
- "integrity": "sha512-kIE8wvwlcZ6TJTbNeU2HQNtaxLx3a84aotTITUuL/4bzfPxzajGBOoqjMhwZJ8L9qFYDU/lAYMEEm11dnZOD6g==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "@vue/devtools-kit": "^7.7.9"
- }
- },
- "node_modules/@vue/devtools-kit": {
- "version": "7.7.9",
- "resolved": "https://registry.npmjs.org/@vue/devtools-kit/-/devtools-kit-7.7.9.tgz",
- "integrity": "sha512-PyQ6odHSgiDVd4hnTP+aDk2X4gl2HmLDfiyEnn3/oV+ckFDuswRs4IbBT7vacMuGdwY/XemxBoh302ctbsptuA==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "@vue/devtools-shared": "^7.7.9",
- "birpc": "^2.3.0",
- "hookable": "^5.5.3",
- "mitt": "^3.0.1",
- "perfect-debounce": "^1.0.0",
- "speakingurl": "^14.0.1",
- "superjson": "^2.2.2"
- }
- },
- "node_modules/@vue/devtools-shared": {
- "version": "7.7.9",
- "resolved": "https://registry.npmjs.org/@vue/devtools-shared/-/devtools-shared-7.7.9.tgz",
- "integrity": "sha512-iWAb0v2WYf0QWmxCGy0seZNDPdO3Sp5+u78ORnyeonS6MT4PC7VPrryX2BpMJrwlDeaZ6BD4vP4XKjK0SZqaeA==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "rfdc": "^1.4.1"
- }
- },
- "node_modules/@vue/reactivity": {
- "version": "3.5.26",
- "resolved": "https://registry.npmjs.org/@vue/reactivity/-/reactivity-3.5.26.tgz",
- "integrity": "sha512-9EnYB1/DIiUYYnzlnUBgwU32NNvLp/nhxLXeWRhHUEeWNTn1ECxX8aGO7RTXeX6PPcxe3LLuNBFoJbV4QZ+CFQ==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "@vue/shared": "3.5.26"
- }
- },
- "node_modules/@vue/runtime-core": {
- "version": "3.5.26",
- "resolved": "https://registry.npmjs.org/@vue/runtime-core/-/runtime-core-3.5.26.tgz",
- "integrity": "sha512-xJWM9KH1kd201w5DvMDOwDHYhrdPTrAatn56oB/LRG4plEQeZRQLw0Bpwih9KYoqmzaxF0OKSn6swzYi84e1/Q==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "@vue/reactivity": "3.5.26",
- "@vue/shared": "3.5.26"
- }
- },
- "node_modules/@vue/runtime-dom": {
- "version": "3.5.26",
- "resolved": "https://registry.npmjs.org/@vue/runtime-dom/-/runtime-dom-3.5.26.tgz",
- "integrity": "sha512-XLLd/+4sPC2ZkN/6+V4O4gjJu6kSDbHAChvsyWgm1oGbdSO3efvGYnm25yCjtFm/K7rrSDvSfPDgN1pHgS4VNQ==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "@vue/reactivity": "3.5.26",
- "@vue/runtime-core": "3.5.26",
- "@vue/shared": "3.5.26",
- "csstype": "^3.2.3"
- }
- },
- "node_modules/@vue/server-renderer": {
- "version": "3.5.26",
- "resolved": "https://registry.npmjs.org/@vue/server-renderer/-/server-renderer-3.5.26.tgz",
- "integrity": "sha512-TYKLXmrwWKSodyVuO1WAubucd+1XlLg4set0YoV+Hu8Lo79mp/YMwWV5mC5FgtsDxX3qo1ONrxFaTP1OQgy1uA==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "@vue/compiler-ssr": "3.5.26",
- "@vue/shared": "3.5.26"
- },
- "peerDependencies": {
- "vue": "3.5.26"
- }
- },
- "node_modules/@vue/shared": {
- "version": "3.5.26",
- "resolved": "https://registry.npmjs.org/@vue/shared/-/shared-3.5.26.tgz",
- "integrity": "sha512-7Z6/y3uFI5PRoKeorTOSXKcDj0MSasfNNltcslbFrPpcw6aXRUALq4IfJlaTRspiWIUOEZbrpM+iQGmCOiWe4A==",
- "dev": true,
- "license": "MIT"
- },
- "node_modules/@vueuse/core": {
- "version": "12.8.2",
- "resolved": "https://registry.npmjs.org/@vueuse/core/-/core-12.8.2.tgz",
- "integrity": "sha512-HbvCmZdzAu3VGi/pWYm5Ut+Kd9mn1ZHnn4L5G8kOQTPs/IwIAmJoBrmYk2ckLArgMXZj0AW3n5CAejLUO+PhdQ==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "@types/web-bluetooth": "^0.0.21",
- "@vueuse/metadata": "12.8.2",
- "@vueuse/shared": "12.8.2",
- "vue": "^3.5.13"
- },
- "funding": {
- "url": "https://github.com/sponsors/antfu"
- }
- },
- "node_modules/@vueuse/integrations": {
- "version": "12.8.2",
- "resolved": "https://registry.npmjs.org/@vueuse/integrations/-/integrations-12.8.2.tgz",
- "integrity": "sha512-fbGYivgK5uBTRt7p5F3zy6VrETlV9RtZjBqd1/HxGdjdckBgBM4ugP8LHpjolqTj14TXTxSK1ZfgPbHYyGuH7g==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "@vueuse/core": "12.8.2",
- "@vueuse/shared": "12.8.2",
- "vue": "^3.5.13"
- },
- "funding": {
- "url": "https://github.com/sponsors/antfu"
- },
- "peerDependencies": {
- "async-validator": "^4",
- "axios": "^1",
- "change-case": "^5",
- "drauu": "^0.4",
- "focus-trap": "^7",
- "fuse.js": "^7",
- "idb-keyval": "^6",
- "jwt-decode": "^4",
- "nprogress": "^0.2",
- "qrcode": "^1.5",
- "sortablejs": "^1",
- "universal-cookie": "^7"
- },
- "peerDependenciesMeta": {
- "async-validator": {
- "optional": true
- },
- "axios": {
- "optional": true
- },
- "change-case": {
- "optional": true
- },
- "drauu": {
- "optional": true
- },
- "focus-trap": {
- "optional": true
- },
- "fuse.js": {
- "optional": true
- },
- "idb-keyval": {
- "optional": true
- },
- "jwt-decode": {
- "optional": true
- },
- "nprogress": {
- "optional": true
- },
- "qrcode": {
- "optional": true
- },
- "sortablejs": {
- "optional": true
- },
- "universal-cookie": {
- "optional": true
- }
- }
- },
- "node_modules/@vueuse/metadata": {
- "version": "12.8.2",
- "resolved": "https://registry.npmjs.org/@vueuse/metadata/-/metadata-12.8.2.tgz",
- "integrity": "sha512-rAyLGEuoBJ/Il5AmFHiziCPdQzRt88VxR+Y/A/QhJ1EWtWqPBBAxTAFaSkviwEuOEZNtW8pvkPgoCZQ+HxqW1A==",
- "dev": true,
- "license": "MIT",
- "funding": {
- "url": "https://github.com/sponsors/antfu"
- }
- },
- "node_modules/@vueuse/shared": {
- "version": "12.8.2",
- "resolved": "https://registry.npmjs.org/@vueuse/shared/-/shared-12.8.2.tgz",
- "integrity": "sha512-dznP38YzxZoNloI0qpEfpkms8knDtaoQ6Y/sfS0L7Yki4zh40LFHEhur0odJC6xTHG5dxWVPiUWBXn+wCG2s5w==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "vue": "^3.5.13"
- },
- "funding": {
- "url": "https://github.com/sponsors/antfu"
- }
- },
- "node_modules/algoliasearch": {
- "version": "5.46.2",
- "resolved": "https://registry.npmjs.org/algoliasearch/-/algoliasearch-5.46.2.tgz",
- "integrity": "sha512-qqAXW9QvKf2tTyhpDA4qXv1IfBwD2eduSW6tUEBFIfCeE9gn9HQ9I5+MaKoenRuHrzk5sQoNh1/iof8mY7uD6Q==",
- "dev": true,
- "license": "MIT",
- "peer": true,
- "dependencies": {
- "@algolia/abtesting": "1.12.2",
- "@algolia/client-abtesting": "5.46.2",
- "@algolia/client-analytics": "5.46.2",
- "@algolia/client-common": "5.46.2",
- "@algolia/client-insights": "5.46.2",
- "@algolia/client-personalization": "5.46.2",
- "@algolia/client-query-suggestions": "5.46.2",
- "@algolia/client-search": "5.46.2",
- "@algolia/ingestion": "1.46.2",
- "@algolia/monitoring": "1.46.2",
- "@algolia/recommend": "5.46.2",
- "@algolia/requester-browser-xhr": "5.46.2",
- "@algolia/requester-fetch": "5.46.2",
- "@algolia/requester-node-http": "5.46.2"
- },
- "engines": {
- "node": ">= 14.0.0"
- }
- },
- "node_modules/birpc": {
- "version": "2.9.0",
- "resolved": "https://registry.npmjs.org/birpc/-/birpc-2.9.0.tgz",
- "integrity": "sha512-KrayHS5pBi69Xi9JmvoqrIgYGDkD6mcSe/i6YKi3w5kekCLzrX4+nawcXqrj2tIp50Kw/mT/s3p+GVK0A0sKxw==",
- "dev": true,
- "license": "MIT",
- "funding": {
- "url": "https://github.com/sponsors/antfu"
- }
- },
- "node_modules/ccount": {
- "version": "2.0.1",
- "resolved": "https://registry.npmjs.org/ccount/-/ccount-2.0.1.tgz",
- "integrity": "sha512-eyrF0jiFpY+3drT6383f1qhkbGsLSifNAjA61IUjZjmLCWjItY6LB9ft9YhoDgwfmclB2zhu51Lc7+95b8NRAg==",
- "dev": true,
- "license": "MIT",
- "funding": {
- "type": "github",
- "url": "https://github.com/sponsors/wooorm"
- }
- },
- "node_modules/character-entities-html4": {
- "version": "2.1.0",
- "resolved": "https://registry.npmjs.org/character-entities-html4/-/character-entities-html4-2.1.0.tgz",
- "integrity": "sha512-1v7fgQRj6hnSwFpq1Eu0ynr/CDEw0rXo2B61qXrLNdHZmPKgb7fqS1a2JwF0rISo9q77jDI8VMEHoApn8qDoZA==",
- "dev": true,
- "license": "MIT",
- "funding": {
- "type": "github",
- "url": "https://github.com/sponsors/wooorm"
- }
- },
- "node_modules/character-entities-legacy": {
- "version": "3.0.0",
- "resolved": "https://registry.npmjs.org/character-entities-legacy/-/character-entities-legacy-3.0.0.tgz",
- "integrity": "sha512-RpPp0asT/6ufRm//AJVwpViZbGM/MkjQFxJccQRHmISF/22NBtsHqAWmL+/pmkPWoIUJdWyeVleTl1wydHATVQ==",
- "dev": true,
- "license": "MIT",
- "funding": {
- "type": "github",
- "url": "https://github.com/sponsors/wooorm"
- }
- },
- "node_modules/comma-separated-tokens": {
- "version": "2.0.3",
- "resolved": "https://registry.npmjs.org/comma-separated-tokens/-/comma-separated-tokens-2.0.3.tgz",
- "integrity": "sha512-Fu4hJdvzeylCfQPp9SGWidpzrMs7tTrlu6Vb8XGaRGck8QSNZJJp538Wrb60Lax4fPwR64ViY468OIUTbRlGZg==",
- "dev": true,
- "license": "MIT",
- "funding": {
- "type": "github",
- "url": "https://github.com/sponsors/wooorm"
- }
- },
- "node_modules/copy-anything": {
- "version": "4.0.5",
- "resolved": "https://registry.npmjs.org/copy-anything/-/copy-anything-4.0.5.tgz",
- "integrity": "sha512-7Vv6asjS4gMOuILabD3l739tsaxFQmC+a7pLZm02zyvs8p977bL3zEgq3yDk5rn9B0PbYgIv++jmHcuUab4RhA==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "is-what": "^5.2.0"
- },
- "engines": {
- "node": ">=18"
- },
- "funding": {
- "url": "https://github.com/sponsors/mesqueeb"
- }
- },
- "node_modules/csstype": {
- "version": "3.2.3",
- "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.2.3.tgz",
- "integrity": "sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==",
- "dev": true,
- "license": "MIT"
- },
- "node_modules/dequal": {
- "version": "2.0.3",
- "resolved": "https://registry.npmjs.org/dequal/-/dequal-2.0.3.tgz",
- "integrity": "sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==",
- "dev": true,
- "license": "MIT",
- "engines": {
- "node": ">=6"
- }
- },
- "node_modules/devlop": {
- "version": "1.1.0",
- "resolved": "https://registry.npmjs.org/devlop/-/devlop-1.1.0.tgz",
- "integrity": "sha512-RWmIqhcFf1lRYBvNmr7qTNuyCt/7/ns2jbpp1+PalgE/rDQcBT0fioSMUpJ93irlUhC5hrg4cYqe6U+0ImW0rA==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "dequal": "^2.0.0"
- },
- "funding": {
- "type": "github",
- "url": "https://github.com/sponsors/wooorm"
- }
- },
- "node_modules/emoji-regex-xs": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/emoji-regex-xs/-/emoji-regex-xs-1.0.0.tgz",
- "integrity": "sha512-LRlerrMYoIDrT6jgpeZ2YYl/L8EulRTt5hQcYjy5AInh7HWXKimpqx68aknBFpGL2+/IcogTcaydJEgaTmOpDg==",
- "dev": true,
- "license": "MIT"
- },
- "node_modules/entities": {
- "version": "7.0.0",
- "resolved": "https://registry.npmjs.org/entities/-/entities-7.0.0.tgz",
- "integrity": "sha512-FDWG5cmEYf2Z00IkYRhbFrwIwvdFKH07uV8dvNy0omp/Qb1xcyCWp2UDtcwJF4QZZvk0sLudP6/hAu42TaqVhQ==",
- "dev": true,
- "license": "BSD-2-Clause",
- "engines": {
- "node": ">=0.12"
- },
- "funding": {
- "url": "https://github.com/fb55/entities?sponsor=1"
- }
- },
- "node_modules/esbuild": {
- "version": "0.25.12",
- "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.25.12.tgz",
- "integrity": "sha512-bbPBYYrtZbkt6Os6FiTLCTFxvq4tt3JKall1vRwshA3fdVztsLAatFaZobhkBC8/BrPetoa0oksYoKXoG4ryJg==",
- "dev": true,
- "hasInstallScript": true,
- "license": "MIT",
- "bin": {
- "esbuild": "bin/esbuild"
- },
- "engines": {
- "node": ">=18"
- },
- "optionalDependencies": {
- "@esbuild/aix-ppc64": "0.25.12",
- "@esbuild/android-arm": "0.25.12",
- "@esbuild/android-arm64": "0.25.12",
- "@esbuild/android-x64": "0.25.12",
- "@esbuild/darwin-arm64": "0.25.12",
- "@esbuild/darwin-x64": "0.25.12",
- "@esbuild/freebsd-arm64": "0.25.12",
- "@esbuild/freebsd-x64": "0.25.12",
- "@esbuild/linux-arm": "0.25.12",
- "@esbuild/linux-arm64": "0.25.12",
- "@esbuild/linux-ia32": "0.25.12",
- "@esbuild/linux-loong64": "0.25.12",
- "@esbuild/linux-mips64el": "0.25.12",
- "@esbuild/linux-ppc64": "0.25.12",
- "@esbuild/linux-riscv64": "0.25.12",
- "@esbuild/linux-s390x": "0.25.12",
- "@esbuild/linux-x64": "0.25.12",
- "@esbuild/netbsd-arm64": "0.25.12",
- "@esbuild/netbsd-x64": "0.25.12",
- "@esbuild/openbsd-arm64": "0.25.12",
- "@esbuild/openbsd-x64": "0.25.12",
- "@esbuild/openharmony-arm64": "0.25.12",
- "@esbuild/sunos-x64": "0.25.12",
- "@esbuild/win32-arm64": "0.25.12",
- "@esbuild/win32-ia32": "0.25.12",
- "@esbuild/win32-x64": "0.25.12"
- }
- },
- "node_modules/estree-walker": {
- "version": "2.0.2",
- "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-2.0.2.tgz",
- "integrity": "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==",
- "dev": true,
- "license": "MIT"
- },
- "node_modules/focus-trap": {
- "version": "7.7.1",
- "resolved": "https://registry.npmjs.org/focus-trap/-/focus-trap-7.7.1.tgz",
- "integrity": "sha512-Pkp8m55GjxBLnhBoT6OXdMvfRr4TjMAKLvFM566zlIryq5plbhaTmLAJWTGR0EkRwLjEte1lCOG9MxF1ipJrOg==",
- "dev": true,
- "license": "MIT",
- "peer": true,
- "dependencies": {
- "tabbable": "^6.4.0"
- }
- },
- "node_modules/fsevents": {
- "version": "2.3.3",
- "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz",
- "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==",
- "dev": true,
- "hasInstallScript": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "darwin"
- ],
- "engines": {
- "node": "^8.16.0 || ^10.6.0 || >=11.0.0"
- }
- },
- "node_modules/hast-util-to-html": {
- "version": "9.0.5",
- "resolved": "https://registry.npmjs.org/hast-util-to-html/-/hast-util-to-html-9.0.5.tgz",
- "integrity": "sha512-OguPdidb+fbHQSU4Q4ZiLKnzWo8Wwsf5bZfbvu7//a9oTYoqD/fWpe96NuHkoS9h0ccGOTe0C4NGXdtS0iObOw==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "@types/hast": "^3.0.0",
- "@types/unist": "^3.0.0",
- "ccount": "^2.0.0",
- "comma-separated-tokens": "^2.0.0",
- "hast-util-whitespace": "^3.0.0",
- "html-void-elements": "^3.0.0",
- "mdast-util-to-hast": "^13.0.0",
- "property-information": "^7.0.0",
- "space-separated-tokens": "^2.0.0",
- "stringify-entities": "^4.0.0",
- "zwitch": "^2.0.4"
- },
- "funding": {
- "type": "opencollective",
- "url": "https://opencollective.com/unified"
- }
- },
- "node_modules/hast-util-whitespace": {
- "version": "3.0.0",
- "resolved": "https://registry.npmjs.org/hast-util-whitespace/-/hast-util-whitespace-3.0.0.tgz",
- "integrity": "sha512-88JUN06ipLwsnv+dVn+OIYOvAuvBMy/Qoi6O7mQHxdPXpjy+Cd6xRkWwux7DKO+4sYILtLBRIKgsdpS2gQc7qw==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "@types/hast": "^3.0.0"
- },
- "funding": {
- "type": "opencollective",
- "url": "https://opencollective.com/unified"
- }
- },
- "node_modules/hookable": {
- "version": "5.5.3",
- "resolved": "https://registry.npmjs.org/hookable/-/hookable-5.5.3.tgz",
- "integrity": "sha512-Yc+BQe8SvoXH1643Qez1zqLRmbA5rCL+sSmk6TVos0LWVfNIB7PGncdlId77WzLGSIB5KaWgTaNTs2lNVEI6VQ==",
- "dev": true,
- "license": "MIT"
- },
- "node_modules/html-void-elements": {
- "version": "3.0.0",
- "resolved": "https://registry.npmjs.org/html-void-elements/-/html-void-elements-3.0.0.tgz",
- "integrity": "sha512-bEqo66MRXsUGxWHV5IP0PUiAWwoEjba4VCzg0LjFJBpchPaTfyfCKTG6bc5F8ucKec3q5y6qOdGyYTSBEvhCrg==",
- "dev": true,
- "license": "MIT",
- "funding": {
- "type": "github",
- "url": "https://github.com/sponsors/wooorm"
- }
- },
- "node_modules/is-what": {
- "version": "5.5.0",
- "resolved": "https://registry.npmjs.org/is-what/-/is-what-5.5.0.tgz",
- "integrity": "sha512-oG7cgbmg5kLYae2N5IVd3jm2s+vldjxJzK1pcu9LfpGuQ93MQSzo0okvRna+7y5ifrD+20FE8FvjusyGaz14fw==",
- "dev": true,
- "license": "MIT",
- "engines": {
- "node": ">=18"
- },
- "funding": {
- "url": "https://github.com/sponsors/mesqueeb"
- }
- },
- "node_modules/magic-string": {
- "version": "0.30.21",
- "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.21.tgz",
- "integrity": "sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "@jridgewell/sourcemap-codec": "^1.5.5"
- }
- },
- "node_modules/mark.js": {
- "version": "8.11.1",
- "resolved": "https://registry.npmjs.org/mark.js/-/mark.js-8.11.1.tgz",
- "integrity": "sha512-1I+1qpDt4idfgLQG+BNWmrqku+7/2bi5nLf4YwF8y8zXvmfiTBY3PV3ZibfrjBueCByROpuBjLLFCajqkgYoLQ==",
- "dev": true,
- "license": "MIT"
- },
- "node_modules/mdast-util-to-hast": {
- "version": "13.2.1",
- "resolved": "https://registry.npmjs.org/mdast-util-to-hast/-/mdast-util-to-hast-13.2.1.tgz",
- "integrity": "sha512-cctsq2wp5vTsLIcaymblUriiTcZd0CwWtCbLvrOzYCDZoWyMNV8sZ7krj09FSnsiJi3WVsHLM4k6Dq/yaPyCXA==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "@types/hast": "^3.0.0",
- "@types/mdast": "^4.0.0",
- "@ungap/structured-clone": "^1.0.0",
- "devlop": "^1.0.0",
- "micromark-util-sanitize-uri": "^2.0.0",
- "trim-lines": "^3.0.0",
- "unist-util-position": "^5.0.0",
- "unist-util-visit": "^5.0.0",
- "vfile": "^6.0.0"
- },
- "funding": {
- "type": "opencollective",
- "url": "https://opencollective.com/unified"
- }
- },
- "node_modules/micromark-util-character": {
- "version": "2.1.1",
- "resolved": "https://registry.npmjs.org/micromark-util-character/-/micromark-util-character-2.1.1.tgz",
- "integrity": "sha512-wv8tdUTJ3thSFFFJKtpYKOYiGP2+v96Hvk4Tu8KpCAsTMs6yi+nVmGh1syvSCsaxz45J6Jbw+9DD6g97+NV67Q==",
- "dev": true,
- "funding": [
- {
- "type": "GitHub Sponsors",
- "url": "https://github.com/sponsors/unifiedjs"
- },
- {
- "type": "OpenCollective",
- "url": "https://opencollective.com/unified"
- }
- ],
- "license": "MIT",
- "dependencies": {
- "micromark-util-symbol": "^2.0.0",
- "micromark-util-types": "^2.0.0"
- }
- },
- "node_modules/micromark-util-encode": {
- "version": "2.0.1",
- "resolved": "https://registry.npmjs.org/micromark-util-encode/-/micromark-util-encode-2.0.1.tgz",
- "integrity": "sha512-c3cVx2y4KqUnwopcO9b/SCdo2O67LwJJ/UyqGfbigahfegL9myoEFoDYZgkT7f36T0bLrM9hZTAaAyH+PCAXjw==",
- "dev": true,
- "funding": [
- {
- "type": "GitHub Sponsors",
- "url": "https://github.com/sponsors/unifiedjs"
- },
- {
- "type": "OpenCollective",
- "url": "https://opencollective.com/unified"
- }
- ],
- "license": "MIT"
- },
- "node_modules/micromark-util-sanitize-uri": {
- "version": "2.0.1",
- "resolved": "https://registry.npmjs.org/micromark-util-sanitize-uri/-/micromark-util-sanitize-uri-2.0.1.tgz",
- "integrity": "sha512-9N9IomZ/YuGGZZmQec1MbgxtlgougxTodVwDzzEouPKo3qFWvymFHWcnDi2vzV1ff6kas9ucW+o3yzJK9YB1AQ==",
- "dev": true,
- "funding": [
- {
- "type": "GitHub Sponsors",
- "url": "https://github.com/sponsors/unifiedjs"
- },
- {
- "type": "OpenCollective",
- "url": "https://opencollective.com/unified"
- }
- ],
- "license": "MIT",
- "dependencies": {
- "micromark-util-character": "^2.0.0",
- "micromark-util-encode": "^2.0.0",
- "micromark-util-symbol": "^2.0.0"
- }
- },
- "node_modules/micromark-util-symbol": {
- "version": "2.0.1",
- "resolved": "https://registry.npmjs.org/micromark-util-symbol/-/micromark-util-symbol-2.0.1.tgz",
- "integrity": "sha512-vs5t8Apaud9N28kgCrRUdEed4UJ+wWNvicHLPxCa9ENlYuAY31M0ETy5y1vA33YoNPDFTghEbnh6efaE8h4x0Q==",
- "dev": true,
- "funding": [
- {
- "type": "GitHub Sponsors",
- "url": "https://github.com/sponsors/unifiedjs"
- },
- {
- "type": "OpenCollective",
- "url": "https://opencollective.com/unified"
- }
- ],
- "license": "MIT"
- },
- "node_modules/micromark-util-types": {
- "version": "2.0.2",
- "resolved": "https://registry.npmjs.org/micromark-util-types/-/micromark-util-types-2.0.2.tgz",
- "integrity": "sha512-Yw0ECSpJoViF1qTU4DC6NwtC4aWGt1EkzaQB8KPPyCRR8z9TWeV0HbEFGTO+ZY1wB22zmxnJqhPyTpOVCpeHTA==",
- "dev": true,
- "funding": [
- {
- "type": "GitHub Sponsors",
- "url": "https://github.com/sponsors/unifiedjs"
- },
- {
- "type": "OpenCollective",
- "url": "https://opencollective.com/unified"
- }
- ],
- "license": "MIT"
- },
- "node_modules/minisearch": {
- "version": "7.2.0",
- "resolved": "https://registry.npmjs.org/minisearch/-/minisearch-7.2.0.tgz",
- "integrity": "sha512-dqT2XBYUOZOiC5t2HRnwADjhNS2cecp9u+TJRiJ1Qp/f5qjkeT5APcGPjHw+bz89Ms8Jp+cG4AlE+QZ/QnDglg==",
- "dev": true,
- "license": "MIT"
- },
- "node_modules/mitt": {
- "version": "3.0.1",
- "resolved": "https://registry.npmjs.org/mitt/-/mitt-3.0.1.tgz",
- "integrity": "sha512-vKivATfr97l2/QBCYAkXYDbrIWPM2IIKEl7YPhjCvKlG3kE2gm+uBo6nEXK3M5/Ffh/FLpKExzOQ3JJoJGFKBw==",
- "dev": true,
- "license": "MIT"
- },
- "node_modules/nanoid": {
- "version": "3.3.11",
- "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.11.tgz",
- "integrity": "sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w==",
- "dev": true,
- "funding": [
- {
- "type": "github",
- "url": "https://github.com/sponsors/ai"
- }
- ],
- "license": "MIT",
- "bin": {
- "nanoid": "bin/nanoid.cjs"
- },
- "engines": {
- "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1"
- }
- },
- "node_modules/oniguruma-to-es": {
- "version": "3.1.1",
- "resolved": "https://registry.npmjs.org/oniguruma-to-es/-/oniguruma-to-es-3.1.1.tgz",
- "integrity": "sha512-bUH8SDvPkH3ho3dvwJwfonjlQ4R80vjyvrU8YpxuROddv55vAEJrTuCuCVUhhsHbtlD9tGGbaNApGQckXhS8iQ==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "emoji-regex-xs": "^1.0.0",
- "regex": "^6.0.1",
- "regex-recursion": "^6.0.2"
- }
- },
- "node_modules/perfect-debounce": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/perfect-debounce/-/perfect-debounce-1.0.0.tgz",
- "integrity": "sha512-xCy9V055GLEqoFaHoC1SoLIaLmWctgCUaBaWxDZ7/Zx4CTyX7cJQLJOok/orfjZAh9kEYpjJa4d0KcJmCbctZA==",
- "dev": true,
- "license": "MIT"
- },
- "node_modules/picocolors": {
- "version": "1.1.1",
- "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz",
- "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==",
- "dev": true,
- "license": "ISC"
- },
- "node_modules/postcss": {
- "version": "8.5.6",
- "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.6.tgz",
- "integrity": "sha512-3Ybi1tAuwAP9s0r1UQ2J4n5Y0G05bJkpUIO0/bI9MhwmD70S5aTWbXGBwxHrelT+XM1k6dM0pk+SwNkpTRN7Pg==",
- "dev": true,
- "funding": [
- {
- "type": "opencollective",
- "url": "https://opencollective.com/postcss/"
- },
- {
- "type": "tidelift",
- "url": "https://tidelift.com/funding/github/npm/postcss"
- },
- {
- "type": "github",
- "url": "https://github.com/sponsors/ai"
- }
- ],
- "license": "MIT",
- "dependencies": {
- "nanoid": "^3.3.11",
- "picocolors": "^1.1.1",
- "source-map-js": "^1.2.1"
- },
- "engines": {
- "node": "^10 || ^12 || >=14"
- }
- },
- "node_modules/preact": {
- "version": "10.28.2",
- "resolved": "https://registry.npmjs.org/preact/-/preact-10.28.2.tgz",
- "integrity": "sha512-lbteaWGzGHdlIuiJ0l2Jq454m6kcpI1zNje6d8MlGAFlYvP2GO4ibnat7P74Esfz4sPTdM6UxtTwh/d3pwM9JA==",
- "dev": true,
- "license": "MIT",
- "funding": {
- "type": "opencollective",
- "url": "https://opencollective.com/preact"
- }
- },
- "node_modules/property-information": {
- "version": "7.1.0",
- "resolved": "https://registry.npmjs.org/property-information/-/property-information-7.1.0.tgz",
- "integrity": "sha512-TwEZ+X+yCJmYfL7TPUOcvBZ4QfoT5YenQiJuX//0th53DE6w0xxLEtfK3iyryQFddXuvkIk51EEgrJQ0WJkOmQ==",
- "dev": true,
- "license": "MIT",
- "funding": {
- "type": "github",
- "url": "https://github.com/sponsors/wooorm"
- }
- },
- "node_modules/regex": {
- "version": "6.1.0",
- "resolved": "https://registry.npmjs.org/regex/-/regex-6.1.0.tgz",
- "integrity": "sha512-6VwtthbV4o/7+OaAF9I5L5V3llLEsoPyq9P1JVXkedTP33c7MfCG0/5NOPcSJn0TzXcG9YUrR0gQSWioew3LDg==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "regex-utilities": "^2.3.0"
- }
- },
- "node_modules/regex-recursion": {
- "version": "6.0.2",
- "resolved": "https://registry.npmjs.org/regex-recursion/-/regex-recursion-6.0.2.tgz",
- "integrity": "sha512-0YCaSCq2VRIebiaUviZNs0cBz1kg5kVS2UKUfNIx8YVs1cN3AV7NTctO5FOKBA+UT2BPJIWZauYHPqJODG50cg==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "regex-utilities": "^2.3.0"
- }
- },
- "node_modules/regex-utilities": {
- "version": "2.3.0",
- "resolved": "https://registry.npmjs.org/regex-utilities/-/regex-utilities-2.3.0.tgz",
- "integrity": "sha512-8VhliFJAWRaUiVvREIiW2NXXTmHs4vMNnSzuJVhscgmGav3g9VDxLrQndI3dZZVVdp0ZO/5v0xmX516/7M9cng==",
- "dev": true,
- "license": "MIT"
- },
- "node_modules/rfdc": {
- "version": "1.4.1",
- "resolved": "https://registry.npmjs.org/rfdc/-/rfdc-1.4.1.tgz",
- "integrity": "sha512-q1b3N5QkRUWUl7iyylaaj3kOpIT0N2i9MqIEQXP73GVsN9cw3fdx8X63cEmWhJGi2PPCF23Ijp7ktmd39rawIA==",
- "dev": true,
- "license": "MIT"
- },
- "node_modules/rollup": {
- "version": "4.55.1",
- "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.55.1.tgz",
- "integrity": "sha512-wDv/Ht1BNHB4upNbK74s9usvl7hObDnvVzknxqY/E/O3X6rW1U1rV1aENEfJ54eFZDTNo7zv1f5N4edCluH7+A==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "@types/estree": "1.0.8"
- },
- "bin": {
- "rollup": "dist/bin/rollup"
- },
- "engines": {
- "node": ">=18.0.0",
- "npm": ">=8.0.0"
- },
- "optionalDependencies": {
- "@rollup/rollup-android-arm-eabi": "4.55.1",
- "@rollup/rollup-android-arm64": "4.55.1",
- "@rollup/rollup-darwin-arm64": "4.55.1",
- "@rollup/rollup-darwin-x64": "4.55.1",
- "@rollup/rollup-freebsd-arm64": "4.55.1",
- "@rollup/rollup-freebsd-x64": "4.55.1",
- "@rollup/rollup-linux-arm-gnueabihf": "4.55.1",
- "@rollup/rollup-linux-arm-musleabihf": "4.55.1",
- "@rollup/rollup-linux-arm64-gnu": "4.55.1",
- "@rollup/rollup-linux-arm64-musl": "4.55.1",
- "@rollup/rollup-linux-loong64-gnu": "4.55.1",
- "@rollup/rollup-linux-loong64-musl": "4.55.1",
- "@rollup/rollup-linux-ppc64-gnu": "4.55.1",
- "@rollup/rollup-linux-ppc64-musl": "4.55.1",
- "@rollup/rollup-linux-riscv64-gnu": "4.55.1",
- "@rollup/rollup-linux-riscv64-musl": "4.55.1",
- "@rollup/rollup-linux-s390x-gnu": "4.55.1",
- "@rollup/rollup-linux-x64-gnu": "4.55.1",
- "@rollup/rollup-linux-x64-musl": "4.55.1",
- "@rollup/rollup-openbsd-x64": "4.55.1",
- "@rollup/rollup-openharmony-arm64": "4.55.1",
- "@rollup/rollup-win32-arm64-msvc": "4.55.1",
- "@rollup/rollup-win32-ia32-msvc": "4.55.1",
- "@rollup/rollup-win32-x64-gnu": "4.55.1",
- "@rollup/rollup-win32-x64-msvc": "4.55.1",
- "fsevents": "~2.3.2"
- }
- },
- "node_modules/search-insights": {
- "version": "2.17.3",
- "resolved": "https://registry.npmjs.org/search-insights/-/search-insights-2.17.3.tgz",
- "integrity": "sha512-RQPdCYTa8A68uM2jwxoY842xDhvx3E5LFL1LxvxCNMev4o5mLuokczhzjAgGwUZBAmOKZknArSxLKmXtIi2AxQ==",
- "dev": true,
- "license": "MIT",
- "peer": true
- },
- "node_modules/shiki": {
- "version": "2.5.0",
- "resolved": "https://registry.npmjs.org/shiki/-/shiki-2.5.0.tgz",
- "integrity": "sha512-mI//trrsaiCIPsja5CNfsyNOqgAZUb6VpJA+340toL42UpzQlXpwRV9nch69X6gaUxrr9kaOOa6e3y3uAkGFxQ==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "@shikijs/core": "2.5.0",
- "@shikijs/engine-javascript": "2.5.0",
- "@shikijs/engine-oniguruma": "2.5.0",
- "@shikijs/langs": "2.5.0",
- "@shikijs/themes": "2.5.0",
- "@shikijs/types": "2.5.0",
- "@shikijs/vscode-textmate": "^10.0.2",
- "@types/hast": "^3.0.4"
- }
- },
- "node_modules/source-map-js": {
- "version": "1.2.1",
- "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz",
- "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==",
- "dev": true,
- "license": "BSD-3-Clause",
- "engines": {
- "node": ">=0.10.0"
- }
- },
- "node_modules/space-separated-tokens": {
- "version": "2.0.2",
- "resolved": "https://registry.npmjs.org/space-separated-tokens/-/space-separated-tokens-2.0.2.tgz",
- "integrity": "sha512-PEGlAwrG8yXGXRjW32fGbg66JAlOAwbObuqVoJpv/mRgoWDQfgH1wDPvtzWyUSNAXBGSk8h755YDbbcEy3SH2Q==",
- "dev": true,
- "license": "MIT",
- "funding": {
- "type": "github",
- "url": "https://github.com/sponsors/wooorm"
- }
- },
- "node_modules/speakingurl": {
- "version": "14.0.1",
- "resolved": "https://registry.npmjs.org/speakingurl/-/speakingurl-14.0.1.tgz",
- "integrity": "sha512-1POYv7uv2gXoyGFpBCmpDVSNV74IfsWlDW216UPjbWufNf+bSU6GdbDsxdcxtfwb4xlI3yxzOTKClUosxARYrQ==",
- "dev": true,
- "license": "BSD-3-Clause",
- "engines": {
- "node": ">=0.10.0"
- }
- },
- "node_modules/stringify-entities": {
- "version": "4.0.4",
- "resolved": "https://registry.npmjs.org/stringify-entities/-/stringify-entities-4.0.4.tgz",
- "integrity": "sha512-IwfBptatlO+QCJUo19AqvrPNqlVMpW9YEL2LIVY+Rpv2qsjCGxaDLNRgeGsQWJhfItebuJhsGSLjaBbNSQ+ieg==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "character-entities-html4": "^2.0.0",
- "character-entities-legacy": "^3.0.0"
- },
- "funding": {
- "type": "github",
- "url": "https://github.com/sponsors/wooorm"
- }
- },
- "node_modules/superjson": {
- "version": "2.2.6",
- "resolved": "https://registry.npmjs.org/superjson/-/superjson-2.2.6.tgz",
- "integrity": "sha512-H+ue8Zo4vJmV2nRjpx86P35lzwDT3nItnIsocgumgr0hHMQ+ZGq5vrERg9kJBo5AWGmxZDhzDo+WVIJqkB0cGA==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "copy-anything": "^4"
- },
- "engines": {
- "node": ">=16"
- }
- },
- "node_modules/tabbable": {
- "version": "6.4.0",
- "resolved": "https://registry.npmjs.org/tabbable/-/tabbable-6.4.0.tgz",
- "integrity": "sha512-05PUHKSNE8ou2dwIxTngl4EzcnsCDZGJ/iCLtDflR/SHB/ny14rXc+qU5P4mG9JkusiV7EivzY9Mhm55AzAvCg==",
- "dev": true,
- "license": "MIT"
- },
- "node_modules/trim-lines": {
- "version": "3.0.1",
- "resolved": "https://registry.npmjs.org/trim-lines/-/trim-lines-3.0.1.tgz",
- "integrity": "sha512-kRj8B+YHZCc9kQYdWfJB2/oUl9rA99qbowYYBtr4ui4mZyAQ2JpvVBd/6U2YloATfqBhBTSMhTpgBHtU0Mf3Rg==",
- "dev": true,
- "license": "MIT",
- "funding": {
- "type": "github",
- "url": "https://github.com/sponsors/wooorm"
- }
- },
- "node_modules/unist-util-is": {
- "version": "6.0.1",
- "resolved": "https://registry.npmjs.org/unist-util-is/-/unist-util-is-6.0.1.tgz",
- "integrity": "sha512-LsiILbtBETkDz8I9p1dQ0uyRUWuaQzd/cuEeS1hoRSyW5E5XGmTzlwY1OrNzzakGowI9Dr/I8HVaw4hTtnxy8g==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "@types/unist": "^3.0.0"
- },
- "funding": {
- "type": "opencollective",
- "url": "https://opencollective.com/unified"
- }
- },
- "node_modules/unist-util-position": {
- "version": "5.0.0",
- "resolved": "https://registry.npmjs.org/unist-util-position/-/unist-util-position-5.0.0.tgz",
- "integrity": "sha512-fucsC7HjXvkB5R3kTCO7kUjRdrS0BJt3M/FPxmHMBOm8JQi2BsHAHFsy27E0EolP8rp0NzXsJ+jNPyDWvOJZPA==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "@types/unist": "^3.0.0"
- },
- "funding": {
- "type": "opencollective",
- "url": "https://opencollective.com/unified"
- }
- },
- "node_modules/unist-util-stringify-position": {
- "version": "4.0.0",
- "resolved": "https://registry.npmjs.org/unist-util-stringify-position/-/unist-util-stringify-position-4.0.0.tgz",
- "integrity": "sha512-0ASV06AAoKCDkS2+xw5RXJywruurpbC4JZSm7nr7MOt1ojAzvyyaO+UxZf18j8FCF6kmzCZKcAgN/yu2gm2XgQ==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "@types/unist": "^3.0.0"
- },
- "funding": {
- "type": "opencollective",
- "url": "https://opencollective.com/unified"
- }
- },
- "node_modules/unist-util-visit": {
- "version": "5.0.0",
- "resolved": "https://registry.npmjs.org/unist-util-visit/-/unist-util-visit-5.0.0.tgz",
- "integrity": "sha512-MR04uvD+07cwl/yhVuVWAtw+3GOR/knlL55Nd/wAdblk27GCVt3lqpTivy/tkJcZoNPzTwS1Y+KMojlLDhoTzg==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "@types/unist": "^3.0.0",
- "unist-util-is": "^6.0.0",
- "unist-util-visit-parents": "^6.0.0"
- },
- "funding": {
- "type": "opencollective",
- "url": "https://opencollective.com/unified"
- }
- },
- "node_modules/unist-util-visit-parents": {
- "version": "6.0.2",
- "resolved": "https://registry.npmjs.org/unist-util-visit-parents/-/unist-util-visit-parents-6.0.2.tgz",
- "integrity": "sha512-goh1s1TBrqSqukSc8wrjwWhL0hiJxgA8m4kFxGlQ+8FYQ3C/m11FcTs4YYem7V664AhHVvgoQLk890Ssdsr2IQ==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "@types/unist": "^3.0.0",
- "unist-util-is": "^6.0.0"
- },
- "funding": {
- "type": "opencollective",
- "url": "https://opencollective.com/unified"
- }
- },
- "node_modules/vfile": {
- "version": "6.0.3",
- "resolved": "https://registry.npmjs.org/vfile/-/vfile-6.0.3.tgz",
- "integrity": "sha512-KzIbH/9tXat2u30jf+smMwFCsno4wHVdNmzFyL+T/L3UGqqk6JKfVqOFOZEpZSHADH1k40ab6NUIXZq422ov3Q==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "@types/unist": "^3.0.0",
- "vfile-message": "^4.0.0"
- },
- "funding": {
- "type": "opencollective",
- "url": "https://opencollective.com/unified"
- }
- },
- "node_modules/vfile-message": {
- "version": "4.0.3",
- "resolved": "https://registry.npmjs.org/vfile-message/-/vfile-message-4.0.3.tgz",
- "integrity": "sha512-QTHzsGd1EhbZs4AsQ20JX1rC3cOlt/IWJruk893DfLRr57lcnOeMaWG4K0JrRta4mIJZKth2Au3mM3u03/JWKw==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "@types/unist": "^3.0.0",
- "unist-util-stringify-position": "^4.0.0"
- },
- "funding": {
- "type": "opencollective",
- "url": "https://opencollective.com/unified"
- }
- },
- "node_modules/vite": {
- "version": "5.4.21",
- "resolved": "https://registry.npmjs.org/vite/-/vite-5.4.21.tgz",
- "integrity": "sha512-o5a9xKjbtuhY6Bi5S3+HvbRERmouabWbyUcpXXUA1u+GNUKoROi9byOJ8M0nHbHYHkYICiMlqxkg1KkYmm25Sw==",
- "dev": true,
- "license": "MIT",
- "peer": true,
- "dependencies": {
- "esbuild": "^0.21.3",
- "postcss": "^8.4.43",
- "rollup": "^4.20.0"
- },
- "bin": {
- "vite": "bin/vite.js"
- },
- "engines": {
- "node": "^18.0.0 || >=20.0.0"
- },
- "funding": {
- "url": "https://github.com/vitejs/vite?sponsor=1"
- },
- "optionalDependencies": {
- "fsevents": "~2.3.3"
- },
- "peerDependencies": {
- "@types/node": "^18.0.0 || >=20.0.0",
- "less": "*",
- "lightningcss": "^1.21.0",
- "sass": "*",
- "sass-embedded": "*",
- "stylus": "*",
- "sugarss": "*",
- "terser": "^5.4.0"
- },
- "peerDependenciesMeta": {
- "@types/node": {
- "optional": true
- },
- "less": {
- "optional": true
- },
- "lightningcss": {
- "optional": true
- },
- "sass": {
- "optional": true
- },
- "sass-embedded": {
- "optional": true
- },
- "stylus": {
- "optional": true
- },
- "sugarss": {
- "optional": true
- },
- "terser": {
- "optional": true
- }
- }
- },
- "node_modules/vitepress": {
- "version": "1.6.4",
- "resolved": "https://registry.npmjs.org/vitepress/-/vitepress-1.6.4.tgz",
- "integrity": "sha512-+2ym1/+0VVrbhNyRoFFesVvBvHAVMZMK0rw60E3X/5349M1GuVdKeazuksqopEdvkKwKGs21Q729jX81/bkBJg==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "@docsearch/css": "3.8.2",
- "@docsearch/js": "3.8.2",
- "@iconify-json/simple-icons": "^1.2.21",
- "@shikijs/core": "^2.1.0",
- "@shikijs/transformers": "^2.1.0",
- "@shikijs/types": "^2.1.0",
- "@types/markdown-it": "^14.1.2",
- "@vitejs/plugin-vue": "^5.2.1",
- "@vue/devtools-api": "^7.7.0",
- "@vue/shared": "^3.5.13",
- "@vueuse/core": "^12.4.0",
- "@vueuse/integrations": "^12.4.0",
- "focus-trap": "^7.6.4",
- "mark.js": "8.11.1",
- "minisearch": "^7.1.1",
- "shiki": "^2.1.0",
- "vite": "^5.4.14",
- "vue": "^3.5.13"
- },
- "bin": {
- "vitepress": "bin/vitepress.js"
- },
- "peerDependencies": {
- "markdown-it-mathjax3": "^4",
- "postcss": "^8"
- },
- "peerDependenciesMeta": {
- "markdown-it-mathjax3": {
- "optional": true
- },
- "postcss": {
- "optional": true
- }
- }
- },
- "node_modules/vue": {
- "version": "3.5.26",
- "resolved": "https://registry.npmjs.org/vue/-/vue-3.5.26.tgz",
- "integrity": "sha512-SJ/NTccVyAoNUJmkM9KUqPcYlY+u8OVL1X5EW9RIs3ch5H2uERxyyIUI4MRxVCSOiEcupX9xNGde1tL9ZKpimA==",
- "dev": true,
- "license": "MIT",
- "peer": true,
- "dependencies": {
- "@vue/compiler-dom": "3.5.26",
- "@vue/compiler-sfc": "3.5.26",
- "@vue/runtime-dom": "3.5.26",
- "@vue/server-renderer": "3.5.26",
- "@vue/shared": "3.5.26"
- },
- "peerDependencies": {
- "typescript": "*"
- },
- "peerDependenciesMeta": {
- "typescript": {
- "optional": true
- }
- }
- },
- "node_modules/zwitch": {
- "version": "2.0.4",
- "resolved": "https://registry.npmjs.org/zwitch/-/zwitch-2.0.4.tgz",
- "integrity": "sha512-bXE4cR/kVZhKZX/RjPEflHaKVhUVl85noU3v6b8apfQEc1x4A+zBxjZ4lN8LqGd6WZ3dl98pY4o717VFmoPp+A==",
- "dev": true,
- "license": "MIT",
- "funding": {
- "type": "github",
- "url": "https://github.com/sponsors/wooorm"
- }
- }
- }
-}
diff --git a/docs/package.json b/docs/package.json
deleted file mode 100644
index 724f8513e..000000000
--- a/docs/package.json
+++ /dev/null
@@ -1,16 +0,0 @@
-{
- "name": "opentutor-docs",
- "version": "1.0.0",
- "private": true,
- "scripts": {
- "dev": "vitepress dev",
- "build": "vitepress build",
- "preview": "vitepress preview"
- },
- "devDependencies": {
- "vitepress": "^1.6.4"
- },
- "overrides": {
- "esbuild": "^0.25.0"
- }
-}
diff --git a/docs/public/co-writer.gif b/docs/public/co-writer.gif
deleted file mode 100644
index 2389ad8bd..000000000
Binary files a/docs/public/co-writer.gif and /dev/null differ
diff --git a/docs/public/deepresearch.gif b/docs/public/deepresearch.gif
deleted file mode 100644
index b64c22d30..000000000
Binary files a/docs/public/deepresearch.gif and /dev/null differ
diff --git a/docs/public/full-pipe.png b/docs/public/full-pipe.png
deleted file mode 100644
index 5e0de9da0..000000000
Binary files a/docs/public/full-pipe.png and /dev/null differ
diff --git a/docs/public/guided-learning.gif b/docs/public/guided-learning.gif
deleted file mode 100644
index 1ef1ff740..000000000
Binary files a/docs/public/guided-learning.gif and /dev/null differ
diff --git a/docs/public/ideagen.gif b/docs/public/ideagen.gif
deleted file mode 100644
index e9319ce2d..000000000
Binary files a/docs/public/ideagen.gif and /dev/null differ
diff --git a/docs/public/knowledge_bases.png b/docs/public/knowledge_bases.png
deleted file mode 100644
index d1f2be1a3..000000000
Binary files a/docs/public/knowledge_bases.png and /dev/null differ
diff --git a/docs/public/logo.png b/docs/public/logo.png
deleted file mode 100644
index 856aee98b..000000000
Binary files a/docs/public/logo.png and /dev/null differ
diff --git a/docs/public/notebooks.png b/docs/public/notebooks.png
deleted file mode 100644
index ddab9d17b..000000000
Binary files a/docs/public/notebooks.png and /dev/null differ
diff --git a/docs/public/question-1.gif b/docs/public/question-1.gif
deleted file mode 100644
index 28821fbef..000000000
Binary files a/docs/public/question-1.gif and /dev/null differ
diff --git a/docs/public/question-2.gif b/docs/public/question-2.gif
deleted file mode 100644
index eeccc51c4..000000000
Binary files a/docs/public/question-2.gif and /dev/null differ
diff --git a/docs/public/solve.gif b/docs/public/solve.gif
deleted file mode 100644
index 35051199a..000000000
Binary files a/docs/public/solve.gif and /dev/null differ
diff --git "a/docs/ref/wiki/ GeoGebra\344\275\277\347\224\250\346\214\207\345\215\227.md" "b/docs/ref/wiki/ GeoGebra\344\275\277\347\224\250\346\214\207\345\215\227.md"
deleted file mode 100644
index e11291373..000000000
--- "a/docs/ref/wiki/ GeoGebra\344\275\277\347\224\250\346\214\207\345\215\227.md"
+++ /dev/null
@@ -1,2408 +0,0 @@
-# ๅŠจๆ€ๆ•ฐๅญฆ่ฝฏไปถ
-
-![](images/98a0b381a893010bf30759b96da4417e1cceae8c23176ace4854e2cce4cac36e.jpg)
-
-# GeoGebraไฝฟ็”จๆŒ‡ๅ—
-
-ๅŒ—ไบฌๅธˆ่Œƒๅคงๅญฆ GeoGebra ๅญฆ้™ข๏ผˆไธญๅ›ฝๆ€ป้ƒจ๏ผ‰
-
-GeoGebra Institute of Beijing Normal University
-
-(BNU), China Network
-
-# ๅ‰่จ€
-
-ๆœฌไฝฟ็”จๆŒ‡ๅ—ๅŸบไบŽGeoGebra Help 3.2ๅนถๆ นๆฎไธญๅ›ฝ็”จๆˆท็š„ไฝฟ็”จไน ๆƒฏๅฏน็ซ ่Š‚ๅ’Œๅ†…ๅฎนๅšไบ†่ฐƒๆ•ดๅ’Œไฟฎๆ”นใ€‚ๆ–‡ไธญๆ‰€ๆœ‰็š„ๆ“ไฝœๅ’Œๆˆชๅ›พๅ‡ไฝฟ็”จGeoGebra 3.2ๅœจwindows็Žฏๅขƒไธ‹ๅฎŒๆˆใ€‚
-
-GeoGebra Help 3.2 ไฝœ่€…๏ผš
-
-Markus Hohenwarter, [email protected]
-
-Judith Hohenwarter, [email protected]
-
-ใ€ŠๅŠจๆ€ๆ•ฐๅญฆ่ฝฏไปถ GeoGebra ไฝฟ็”จๆŒ‡ๅ—ใ€‹็ผ–่ฏ‘๏ผš
-
-้ƒญ่ก๏ผŒ[email protected]
-
-GeoGebra Institute of Beijing Normal University(BNU), China Network ไบŽ 2011 ๅนด 5 ๆœˆ 25 ๆ—ฅ็”ณ่ฏทๆˆ็ซ‹๏ผŒไฝœไธบ GeoGebra ๅœจไธญๅ›ฝ็š„้ฆ–ๅธญๅญฆ้™ข๏ผŒGeoGebra Institute BNU, China Network ๅฐ†้ข†ๅฏผๅๅŠฉๅ…ถไป–ไธญๅ›ฝๅ…ถไป–ๅœฐๆ–นๅญฆ้™ข็š„ๅปบ่ฎพไธŽๅ‘ๅฑ•๏ผŒ่‡ดๅŠ›ไบŽ GeoGebra ็›ธๅ…ณ็š„ๆ•ฐๅญฆๆ•™ๅญฆๅ’Œๅญฆไน ็š„็ ”็ฉถๅทฅไฝœ๏ผŒ้ขๅ‘ไธญๅ›ฝ GeoGebra ็”จๆˆทๆฐดๅนณ่ฎค่ฏ๏ผŒๆไพ›ๅธˆ่Œƒ็”Ÿๅ’Œไธ€็บฟๆ•™ๅธˆ็š„ไธ“ไธšๅŸน่ฎญ๏ผŒๅˆ†ไบซๆ•ฐๅญฆๅญฆไน ไธŽๆ•™ๅญฆ็š„ๆˆๅŠŸๆกˆไพ‹ๅ’Œๅ…ˆ่ฟ›็ป้ชŒ๏ผŒไฟƒ่ฟ›ไธญๅ›ฝ GeoGebra ๅ„ๅœฐๆ–นๅญฆ้™ข้—ด็š„ๅˆไฝœใ€‚
-
-็ป„็ป‡ๆˆๅ‘˜๏ผš
-
-ใ€ไธปๅธญใ€‘
-
-ๆ›นไธ€้ธฃ๏ผŒๅŒ—ไบฌๅธˆ่Œƒๅคงๅญฆๆ•ฐๅญฆ็ง‘ๅญฆๅญฆ้™ขๆ•™ๆŽˆ๏ผŒๅšๅฃซ็”Ÿๅฏผๅธˆ๏ผŒไธญๅ›ฝๆ•ฐๅญฆไผšๆ•™่‚ฒๅทฅไฝœๅง”ๅ‘˜ไผšๅ‰ฏไธปไปป๏ผŒๅ…จๅ›ฝๆ•ฐๅญฆๆ•™่‚ฒ็ ”็ฉถไผš็ง˜ไนฆ้•ฟใ€‚
-
-ใ€ๅ…ถไป–ๆˆๅ‘˜ใ€‘
-
-็Ž‹ๅ…‰ๆ˜Ž๏ผŒๅคฉๆดฅๅธˆ่Œƒๅคงๅญฆๆ•ฐๅญฆ็ง‘ๅญฆๅญฆ้™ขๆ•™ๆŽˆ๏ผŒใ€Šๆ•ฐๅญฆๆ•™่‚ฒๅญฆๆŠฅใ€‹็ผ–่พ‘้ƒจไธปไปปใ€‚
-
-ๅฎ่ฟžๅŽ๏ผŒๅ—ไบฌๅธˆ่Œƒๅคงๅญฆๆ•ฐๅญฆ็ง‘ๅญฆๅญฆ้™ขๅ‰ฏๆ•™ๆŽˆ๏ผŒ็ก•ๅฃซ็”Ÿๅฏผๅธˆใ€‚
-
-้ฉฌๆณข๏ผŒๅŒ—ไบฌๅธˆ่Œƒๅคงๅญฆๆ•ฐๅญฆ็ง‘ๅญฆๅญฆ้™ขๅ‰ฏๆ•™ๆŽˆ๏ผŒ็ก•ๅฃซ็”Ÿๅฏผๅธˆใ€‚
-
-่‘ฃ่ฟžๆ˜ฅ๏ผŒๅŒ—ไบฌๅธˆ่Œƒๅคงๅญฆ็ ”็ฉถ็”Ÿ๏ผŒๆ•ฐๅญฆๆ•™่‚ฒๆ–นๅ‘ใ€‚
-
-้ƒญ ่ก๏ผŒๅŒ—ไบฌๅธˆ่Œƒๅคงๅญฆ็ ”็ฉถ็”Ÿ๏ผŒๆ•ฐๅญฆๆ•™่‚ฒๆ–นๅ‘ใ€‚
-
-ๅฆ‚ๅ‘็Žฐไนฆๅ†™ๆœ‰่ฏฏๆˆ–ๅ†…ๅฎนไธๅฝ“ไน‹ๅค„่ฏทๅ‘้€้‚ฎไปถ่‡ณ๏ผš[email protected]
-
-# ็›ฎๅฝ•
-
-# ็ฌฌไธ€็ซ  GEOGEBRA็ฎ€ไป‹
-
-1. ไป€ไนˆๆ˜ฏ GEOGEBRA?
-2. ๅฆ‚ไฝ•ๅฎ‰่ฃ… GEOGEBRA? 3
-3. ่ฎค่ฏ† GEOGEBRA 4
-
-# ็ฌฌไบŒ็ซ  GEOGEBRA ็š„็”จ้€” 6
-
-1. ๅญฆไน ๆ—ถไฝฟ็”จ 6
-2. ๆผ”็คบๆ—ถไฝฟ็”จ
-3.็ผ–่พ‘ๆ—ถไฝฟ็”จ 9
-
-# ็ฌฌไธ‰็ซ  ็ป˜ๅ›พๅทฅๅ…ท. 11
-
-1.ๅŸบๆœฌๆ“ไฝœ 11
-2. ไธ€่ˆฌๅทฅๅ…ท ..... 11
-3.็‚น 13
-4. ็บฟ ..... 13
-5. ๅ‘้‡ ..... 14
-6. ๅœ†้”ฅๆ›ฒ็บฟ ..... 15
-7. ๅœ†ไธŽๅคš่พนๅฝข ..... 15
-8. ๆ•ฐๅ€ผไธŽ่ง’ๅบฆ 16
-9. ๅ‡ ไฝ•ๅ˜ๆข ..... 17
-10. ๆ–‡ๅญ— ..... 18
-11. ๅ›พ็‰‡ ..... 19
-
-# ็ฌฌๅ››็ซ  ไปฃๆ•ฐ่พ“ๅ…ฅ ..... 20
-
-1. ๅŸบๆœฌๆ“ไฝœ ..... 20
-2. ๆ•ฐๅญ—ๅ’Œ่ง’ ..... 21
-3. ็‚นๅ’Œๅ‘้‡ ..... 22
-4. ็›ด็บฟๅ’Œๅๆ ‡่ฝด ..... 22
-5. ๅœ†้”ฅๆ›ฒ็บฟ ..... 23
-6. ๅ‡ฝๆ•ฐๅ’Œ่ฟ็ฎ— ..... 23
-7. ๅฏน่ฑกๅˆ—่กจๅ’Œ่ฟ็ฎ— ..... 24
-8. ็Ÿฉ้˜ตไธŽ่ฟ็ฎ— ..... 25
-9. ๅคๆ•ฐไธŽ่ฟ็ฎ— ..... 26
-
-# ็ฌฌไบ”็ซ  ๅ‘ฝไปค่พ“ๅ…ฅ ..... 28
-
-1. ไธ€่ˆฌๅ‘ฝไปค ..... 28
-2.ๆ•ฐๅ€ผ 28
-
-3.่ง’ 30
-4.็‚น 31
-5. ็บฟ 32
-6. ๅคš่พนๅฝข 33
-7. ๅ‘้‡ 33
-8. ๅ‡ฝๆ•ฐ 33
-9. ๅœ†้”ฅๆ›ฒ็บฟ 34
-10. ๅ‚ๆ•ฐๆ›ฒ็บฟ 35
-11. ๅœ†ๅผงๅ’Œๆ‰‡ๅฝข 35
-12. ๆ–‡ๅญ— 36
-13. ่ฝจ่ฟน 37
-14.ๅˆ—่กจ 37
-15. ๅ‡ ไฝ•ๅ˜ๆข 39
-16. ็ปŸ่ฎก 40
-17. ็”ตๅญ่กจๆ ผ 42
-18. ้€ป่พ‘ๅ‘ฝไปค 43
-
-# ็ฌฌๅ…ญ็ซ  ่œๅ• 44
-
-1.ๆ–‡ไปถ 44
-2.็ผ–่พ‘ 45
-3. ๆŸฅ็œ‹ 45
-4. ้€‰้กน ..... 46
-5.ๅทฅๅ…ท 47
-6.็ช—ๅฃ 47
-7. ๅธฎๅŠฉ ..... 47
-
-# ็ฌฌไธƒ็ซ  GEOGEBRA ็š„็‰นๆ€ง ..... 49
-
-1. ๅŠจ็”ป ..... 49
-2. ๆ˜พ็คบๆกไปถ 49
-3.่‡ชๅฎšไน‰ๅทฅๅ…ท 50
-4.ๅŠจๆ€้ขœ่‰ฒ 52
-5.JAVAsCRPT 52
-6.ๅฏน่ฑกๅ็งฐไธŽๆ ‡็ญพ 52
-7. ๅ›พๅฑ‚ 53
-8. ้‡ๆ–ฐๅฎšไน‰ ..... 53
-9. ็—•่ฟนไธŽ่ฝจ่ฟน ..... 54
-
-# ็ฌฌไธ€็ซ  GeoGebra็ฎ€ไป‹
-
-# 1. ไป€ไนˆๆ˜ฏ GeoGebra?
-
-GeoGebra ่ฟ™ๆฌพ่ฝฏไปถ็š„ๅ็งฐๆ‹†ๅผ€ๆฅๅฐฑๆ˜ฏโ€œGeoโ€+โ€œGebraโ€๏ผŒๆ„ๆ€ๆ˜ฏ็ป“ๅˆไบ†ๅ‡ ไฝ•(Geometry)ไธŽไปฃๆ•ฐ(Algebra)ใ€‚GeoGebra ๆ˜ฏไธ€ไธช็ป“ๅˆๅ‡ ไฝ•ใ€ไปฃๆ•ฐใ€ๅพฎ็งฏๅˆ†ๅ’Œ็ปŸ่ฎกๅŠŸ่ƒฝ็š„ๅŠจๆ€ๆ•ฐๅญฆ่ฝฏไปถ๏ผŒๅฏๅบ”็”จไบŽๅคšๅนณๅฐ๏ผˆWindowใ€Macใ€Linux ็ญ‰๏ผ‰๏ผŒๆไพ› 56 ็ง่ฏญ่จ€ๆ”ฏๆŒ๏ผŒๅทฒๅœจๆฌงๆดฒๅ’Œ็พŽๅ›ฝ่ฃ่Žทๅคš้กนๆ•™่‚ฒ็ฑป่ฝฏไปถๅฅ–้กนใ€‚
-
-่ฟ™ๆ˜ฏไธ€ๆฌพๅ…่ดน็š„ๅผ€ๆบ่ฝฏไปถ๏ผŒๆ—จๅœจๅธฎๅŠฉ่€ๅธˆ่ฎพ่ฎกๆœ‰่ถฃ็š„ๆ•™ๅญฆๆ–นๆณ•๏ผŒไธบๅญฆๆ กๆไพ›ๅ……ๆปกๆดปๅŠ›็š„ๆ•ฐๅญฆๆ•™ๅญฆใ€‚
-
-# 1.1. ไธŽโ€œๅ‡ ไฝ•็”ปๆฟโ€็š„ๆฏ”่พƒ
-
-ๆฆ‚ๆ‹ฌ่ฏดๆฅ๏ผŒGeoGebra ๅ‡ ไนŽๅ…ทๅค‡โ€œๅ‡ ไฝ•็”ปๆฟโ€็š„ๅ…จ้ƒจๅŠŸ่ƒฝ๏ผŒๅœจ็ป˜ๅ›พ็•Œ้ข็”š่‡ณๆฏ”โ€œๅ‡ ไฝ•็”ปๆฟโ€ๆ›ดๅŠ ๅ‹ๅฅฝใ€ๆ˜“ๆ“ไฝœ๏ผŒๅŒๆ—ถๅ…ทๅค‡โ€œๅ‡ ไฝ•็”ปๆฟโ€ๆฒกๆœ‰็š„็ฌฆๅท่ฎก็ฎ—ใ€ๅพฎ็งฏๅˆ†ใ€็ปŸ่ฎก็ญ‰ๅŠŸ่ƒฝใ€‚ๅฆๅค–๏ผŒGeoGebra ๅ…ทๅค‡ๅผ€ๆบ็š„็ฒพ็ฅž๏ผŒๅœจไฝฟ็”จใ€ไบคๆตใ€ๅˆ†ไบซๆ–น้ข้ƒฝ็ป™ไฝฟ็”จ่€…ๆไพ›ไบ†ๆœ€ๅคงไพฟๅˆฉใ€‚
-
-็›ฎๅ‰ๅคงๅคšๆ•ฐไธปๆตๆ•™ๅญฆ่ฝฏไปถๆ˜ฏๅ•†ไธšๅŒ–็š„๏ผŒ่ฟ™ๆ„ๅ‘ณ่ฝฏไปถ็š„ๅฏๅพ—ๆ€งๆ˜ฏๅ—ๅญฆๆ กๆˆ–ๅญฆ็”Ÿ็š„่ดขๅŠก่ƒฝๅŠ›ๅฝฑๅ“็š„ใ€‚ๆ‰€ไปฅ๏ผŒๆ— ๆณ•ไนฐๅ•†ไธš่ฝฏไปถ็š„ไธ€ไบ›่€ๅธˆๆˆ–ๅญฆ็”ŸไธŠ็ฝ‘ๆŸฅๅฏปๅ…่ดน่ฝฏไปถ๏ผŒๅนถๆ นๆฎไป–ไปฌ็š„็›ฎ็š„ไธ‹่ฝฝๅนถไฝฟ็”จ่ฟ™ไบ›่ฝฏไปถใ€‚ๅผ€ๆบ่ฝฏไปถๆ˜ฏๆŒ‡ๅ…ฌๅผ€็š„่ฝฏไปถ็š„ๆบไปฃ็ ๏ผŒไฝฟ็”จ่€…ๅฏไปฅ่‡ช็”ฑไฝฟ็”จใ€ไธ‹่ฝฝใ€ไฟฎๆ”นไธŽๅ‘ๅธƒ่ฝฏไปถ็š„ๅฏๆ‰ง่กŒ็จ‹ๅบๅŠ็จ‹ๅบๆบไปฃ็ ใ€‚่ฟ™้ผ“ๅŠฑไบ†ๅผ€ๅ‘ใ€ๆ›ดๆ–ฐใ€็ปดๆŠคๅผ€ๆบ่ฝฏไปถ็š„็”จๆˆทๅŠๅ›ขไฝ“ๅ’Œ่ต„ๅŠฉๅผ€ๅ‘่ฝฏไปถ็š„ๅผ€ๅ‘ๅ•†ๅนถๅฝขๆˆไธ€ไธชๅˆไฝœ็š„ๅ›ข้˜Ÿ๏ผŒไฝฟๅพ—่ฝฏไปถๆ—ฅ่‡ปๅฎŒๅ–„๏ผŒ่€Œ่ฟ™็ง่ฟ›ๆญฅๆ˜ฏๅ•†ไธš่ฝฏไปถ่ฟœไธ่ƒฝๅŠ็š„ใ€‚ๆ•™่‚ฒๆŠ€ๆœฏไนŸ้€ๆธๅŠ ๅ…ฅไบ†่ฟ™ไธช่ถ‹ๅŠฟ๏ผŒๅšๅˆฐ่ฟ™็งโ€œ่‡ช็”ฑ่ฝฏไปถโ€็š„GeoGebraๅฐฑๆ˜ฏๅ…ถไธญ็š„ไธ€ไธชใ€‚่ฝฏไปถไฝœ่€…Hohenwarter่ฏด๏ผšโ€œGeoGebraๆ˜ฏๅ…่ดน่ฝฏไปถ๏ผŒๅ› ไธบๆˆ‘็›ธไฟกๆ•™่‚ฒๅบ”่ฏฅๆ˜ฏๅ…่ดน็š„ใ€‚โ€
-
-่ฟ™ๆฌพ่ฝฏไปถๅพˆไผ˜็ง€๏ผŒไฝ† GeoCebra ่ฝฏไปถ่ƒŒๅŽ็š„่ฟ™็งโ€œๅผ€ๆ”พไธŽๅˆไฝœโ€็š„็ฒพ็ฅžๆฏ”่ฝฏไปถๆœฌ่บซๆ›ดๅŠ ๅฏ่ดตใ€‚
-
-# ใ€่ฝฏไปถไฝฟ็”จ่ดน็”จใ€‘
-
-โ€œๅ‡ ไฝ•็”ปๆฟโ€่ฝฏไปถๆ˜ฏ็”ฑ็พŽๅ›ฝKey Curriculum Pressๅ…ฌๅธๅˆถไฝœๅนถๅ‡บ็‰ˆ็š„ไผ˜็ง€ๆ•™่‚ฒ่ฝฏไปถ๏ผŒ1996ๅนด่ฏฅๅ…ฌๅธๆŽˆๆƒไบบๆฐ‘ๆ•™่‚ฒๅ‡บ็‰ˆ็คพๅœจไธญๅ›ฝๅ‘่กŒ่ฏฅ่ฝฏไปถ็š„ไธญๆ–‡็‰ˆใ€‚ๅœจโ€œๅ‡ ไฝ•็”ปๆฟโ€็š„ๅฎ˜ๆ–น็ฝ‘็ซ™็ป™ๅ‡บ็š„ๅ‡ ไฝ•็”ปๆฟ5.0็‰ˆ๏ผˆThe Geometerโ€™s Sketchpad version 5๏ผ‰็š„ๅ”ฎไปทไธบ๏ผšๅคš็”จๆˆท็‰ˆไธบ69.95็พŽๅ…ƒ๏ผŒ่ฎข่ดญ100ๅฅ—ไปฅไธŠไธบๆฏไธช็”จๆˆท15็พŽๅ…ƒ๏ผ›ๆ•™ๅธˆ็‰ˆไธบ69.95็พŽๅ…ƒ๏ผ›ๅญฆ็”Ÿ็‰ˆไธบ29.95็พŽๅ…ƒใ€‚ไฝ†ๆ˜ฏๅœจ็ฝ‘ไธŠๆœ็ดขไบ†ๅพˆไน…ไนŸๆฒกๆœ‰ๆ‰พๅˆฐโ€œๅ‡ ไฝ•็”ปๆฟโ€ๅœจไธญๅ›ฝๅคง้™†ๅœฐๅŒบ็š„ๅ”ฎไปท๏ผŒๅœจไบบๆฐ‘ๆ•™่‚ฒๅ‡บ็‰ˆ็คพ็š„็ฝ‘็ซ™ไธŠไนŸๆฒก็”จๆ‰พๅˆฐโ€œๅ‡ ไฝ•็”ปๆฟโ€็š„็›ธๅ…ณ่ดญไนฐไฟกๆฏใ€‚ๆ‰€ไปฅไนŸๆ— ๆณ•ๅพ—็Ÿฅ่ฏฅ่ฝฏไปถๅœจๅคง้™†ๅœฐ
-
-ๅŒบ็š„ๅ”ฎไปทไบ†ใ€‚
-
-่€ŒGeoGebraๆ˜ฏๅผ€ๆบ่ฝฏไปถ๏ผŒๆไพ›ๅ…่ดนๅœจ็บฟๅฎ‰่ฃ…ๅ’Œไธ‹่ฝฝ็ฆป็บฟๅฎ‰่ฃ…ๅŒ…ใ€‚
-
-# ใ€่ฝฏไปถ่ฟ่กŒๆƒ…ๅ†ตใ€‘
-
-โ€œๅ‡ ไฝ•็”ปๆฟโ€ๅฎ‰่ฃ…ๅŽๅฏ็›ดๆŽฅ่ฟ่กŒ๏ผŒ่ฟ่กŒๆ•ˆๆžœๆต็•…ใ€‚
-
-GeoGebra้œ€ๅœจjava็Žฏๅขƒไธ‹่ฟ่กŒ๏ผŒๆ‰€ไปฅๅ…ˆ่ฆๅœจ็”ต่„‘ไธญๅฎ‰่ฃ…java่™šๆ‹Ÿๆœบ๏ผŒ้œ€็”จๆˆท่‡ชๅทฑไธ‹่ฝฝๅฎ‰่ฃ…ใ€‚็›ฎๅ‰็š„็‰ˆๆœฌๅทฒ็ปไผšๆ็คบๅฎ‰่ฃ…๏ผŒๅœจ็ฝ‘็ปœ็Žฏๅขƒไธ‹ๅฏไปฅ่‡ชๅŠจไธ‹่ฝฝjavaๅนถๅฎ‰่ฃ…ใ€‚
-
-ๅ› ไธบๆ˜ฏๅœจjavaไธ‹ๅ†™็š„๏ผŒๆ‰€ไปฅGeoGebraไนŸๆœ‰็€java็š„ไผ˜็‚น๏ผš่ทจๅนณๅฐใ€็ฝ‘้กตๆ”ฏๆŒๅฅฝใ€‚ๆญคๅค–๏ผŒGeoGebra่ฟ˜ๆ”ฏๆŒLaTex่ฏญๆณ•๏ผŒๅฏๅœจ็”ป้ขไธŠๆ˜พ็คบๆ นๅทใ€ๆฌกๆ–นๅŠๅˆ†ๆ•ฐ๏ผŒ่ฟ™้ƒฝๆ˜ฏโ€œๅ‡ ไฝ•็”ปๆฟโ€ๆœ›ๅฐ˜่ŽซๅŠ็š„๏ผŒๅ› ๆญคๅœจ็ฝ‘็ปœไธŠ่ฆ่ฎจ่ฎบๆ•ฐๅญฆ้—ฎ้ข˜ๆ—ถ๏ผŒ็”จGeoGebraๆฅ็ป˜ๅ›พๆ˜ฏไธ€ไธชๅพˆๅฅฝ็š„้€‰ๆ‹ฉใ€‚
-
-# ใ€ๅ›ฝๅ†…ๆ™ฎๅŠๆƒ…ๅ†ตใ€‘
-
-ๅ‡ ไฝ•็”ปๆฟๅœจๆˆ‘ๅ›ฝๅทฒๆตไผ ไฝฟ็”จๅๅ‡ ๅนดไบ†๏ผŒๆทฑๅ—ๅนฟๅคง็†็ง‘ๆ•™ๅธˆ็‰นๅˆซๆ˜ฏๆ•ฐๅญฆๆ•™ๅธˆ็š„ๅ–œ็ˆฑใ€‚็›ธๅฏนไน‹ไธ‹ GeoGebra ไผผไนŽๅฐ‘ๆœ‰ไบบ้—ฎๆดฅ๏ผŒ่ฟ™ๆ˜ฏ็™พๅบฆๆœ็ดข็ป“ๆžœ็š„ๆฏ”่พƒใ€‚
-
-ไฝ†ๅ€˜่‹ฅไฝฟ็”จgoogle็š„ๅค–ๆ–‡ๆœ็ดข๏ผŒGeoGebraๅ’ŒGeometer's Sketchpad๏ผˆๅ‡ ไฝ•็”ปๆฟ๏ผ‰็š„ๆก็›ฎๅˆ†ๅˆซๆ˜ฏ672,000ๅ’Œ98,500ใ€‚่ฟ™่ฏดๆ˜Ž๏ผŒGeoGebraๅœจๅ›ฝ้™…ไธŠ็š„ๅฝฑๅ“ๅŠ›ๆ˜ฏ่ฆๅคงไบŽๅ‡ ไฝ•็”ปๆฟ็š„ใ€‚๏ผˆๆฌง็พŽๅ›ฝๅฎถๅผ€ๆบ่ฝฏไปถ็š„ไฝฟ็”จ็އๆ˜ฏ่ฆ้ซ˜ไบŽๅ›ฝๅ†…็š„๏ผŒๅ…่ดน่ฝฏไปถๅพˆๅฎนๆ˜“ๆ™ฎๅŠ๏ผ‰ๅŠ ไธŠGeoGebraๅผ€ๆบ็š„ๅฅฝๅค„๏ผŒ้€‚ๅบ”ๅคš่ฏญ่จ€็š„ๆ”ฏๆŒ๏ผŒไฝฟ็”จ่ฏฅ่ฝฏไปถๆ›ดๆ–นไพฟๅ›ฝ้™…้—ด็š„ไบคๆตใ€‚
-
-# ใ€ๆ“ไฝœ้šพๆ˜“็จ‹ๅบฆใ€‘
-
-ๅญฆไน  GeoGebra ่ฝฏไปถๅนถไธ้šพ๏ผŒไธป่ฆๆ˜ฏ็”จ้ผ ๆ ‡ๆฅๆจกๆ‹Ÿๅฐบ่ง„ไฝœๅ›พ๏ผŒๅ‡ ไฝ•็”ปๆฟๅ’Œ GeoGebra ็š„ไฝฟ็”จๆ–นๆณ•ๅ…ถๅฎžๅคงๅŒๅฐๅผ‚๏ผŒ่‹ฅๆ˜ฏๆœ‰ๆ“ไฝœ่ฟ‡ๅ‡ ไฝ•็”ปๆฟ็š„็ป้ชŒ๏ผŒๅญฆไน  GeoGebra ๅบ”ๅพˆๅฟซๅฐฑๅฏ็†Ÿๆ‚‰ใ€‚
-
-่‹ฅๅฏน GeoGebra ็š„ไฝฟ็”จๆœ‰ไปปไฝ•้—ฎ้ข˜๏ผŒๅฏไธŠ GeoGebra ็š„่ฎจ่ฎบๅŒบๅ’Œไธ–็•Œๅ„ๅœฐ็š„ไฝฟ็”จ่€…่ฏทๆ•™่งฃๅ†ณๆ–นๆณ•๏ผŒไนŸๅฏๅฏน GeoGebra ็š„ๆœชๆฅๅ‘ๅฑ•ๆๅ‡บๅปบ่ฎฎ๏ผŒๆ˜ฏ่ฆๅคšๅŠ ไบ›ไป€ไนˆๅŠŸ่ƒฝๆˆ–ๆŒ‡ไปค๏ผŒ็จ‹ๅบ่ฎพ่ฎก่€… Markus Hohenwarter ่ฟ˜ไผšไบฒ่‡ชๅ›ž็ญ”ใ€‚
-
-ๆญคๅค–๏ผŒGeoGebra ่ฟ˜ๆฏ”ๅ‡ ไฝ•็”ปๆฟๅคšไบ†็ปŸ่ฎกๅ’Œๅพฎ็งฏๅˆ†็š„็›ธๅ…ณๅŠŸ่ƒฝใ€‚
-
-# 1.2. ๅ›ฝ้™… GeoGebra ๅญฆ้™ข
-
-ๅ›ฝ้™… GeoGebra ๅญฆ้™ข๏ผˆInternational GeoGebra Institute๏ผŒIGI๏ผ‰ๆไพ›ๅ…่ดน็š„ๅŠจๆ€ๆ•ฐๅญฆ่ฝฏไปถๅ’Œไธ“ไธš็Ÿฅ่ฏ†็š„ๅŸน่ฎญ๏ผŒๆ”ฏๆŒๅ‘ๅฑ•้ขๅ‘ๅ…จไฝ“ๅญฆ็”Ÿๅ’Œๆ•™ๅธˆ็š„ๆ•™ๅญฆ่ต„ๆบๅˆ†ไบซ๏ผŒไปฅๆ”นๅ–„ไธ–็•Œๅ„ๅœฐ็š„ๆ•ฐๅญฆใ€็ง‘ๅญฆๅ’ŒๆŠ€ๆœฏๆ•™่‚ฒใ€‚ๅฎƒๅŸน่‚ฒๅ’Œไฟƒ่ฟ›ไธ€็บฟๆ•™ๅธˆๅ’Œ็ ”็ฉถไบบๅ‘˜ไน‹้—ด็š„ๅไฝœ๏ผŒๅŠชๅŠ›ๅปบ็ซ‹่‡ชๆˆ‘็ปดๆŒๅ‘ๅฑ•็š„็”จๆˆท็พคไฝ“ใ€‚
-
-ๅ›ฝ้™… GeoGebra ๅญฆ้™ขๆ˜ฏไธ€ไธช้ž่ฅๅˆฉ็ป„็ป‡๏ผŒ่ฎพ็ซ‹ไบ†ไปฅไธ‹ไธ‰ไธช็›ฎๆ ‡๏ผš
-
-ไธ€๏ผŽๅŸน่ฎญๅ’Œๆ”ฏๆŒ๏ผšๆไพ›ไธ“ไธšๅ‘ๅฑ•ๆœบไผš๏ผŒๆœๅŠกๅธฎๅŠฉ่Œๅ‰ๆ•™ๅธˆๅ’Œๅœจ่Œๆ•™ๅธˆใ€‚
-ไบŒ๏ผŽๅ‘ๅฑ•ๅ’Œๅ…ฑไบซ๏ผšๅˆ†ไบซ็ ”็ฉถ็ด ๆใ€ๆ•™ๅญฆ่ต„ๆบ๏ผŒไธๆ–ญๆ”นๅ–„ๅ’Œๅ‘ๅฑ•ๅŠจๆ€ๆ•ฐๅญฆ่ฝฏไปถGeoGebraใ€‚
-
-ไธ‰๏ผŽ็ ”็ฉถไธŽๅˆไฝœ๏ผšๆ”ฏๆŒไธŽGeoGebra็›ธๅ…ณ็š„ๆ•ฐๅญฆๆ•™ๅญฆๅ’Œๅญฆไน ็š„็ ”็ฉถๅทฅไฝœ๏ผŒไฟƒ่ฟ›ๅ›ฝ้™…GeoGebraๅ’Œๅœฐๆ–นGeoGebraๅญฆ้™ข้—ด็š„ๅ›ฝ้™…ๅˆไฝœใ€‚
-
-# 2. ๅฆ‚ไฝ•ๅฎ‰่ฃ… GeoGebra?
-
-ไธ‹้ขไป‹็ปๅœจwindowsไธ‹GeoGebra่ฝฏไปถ็š„ๅฎ‰่ฃ…ๆ–นๆณ•ใ€‚
-
-# 2.1. ๅœจ็บฟๅฎ‰่ฃ…
-
-้ฆ–ๅ…ˆๆ‰“ๅผ€ GeoGebra ็š„ๅฎ˜ๆ–น็ฝ‘็ซ™๏ผšhttp://www.geogebra.org/cms/
-
-็‚นๅ‡ปๅฏผ่ˆชๆ ไธญ็š„โ€œDownloadโ€๏ผŒๆŒ‰ไธ‹โ€œWebstartโ€ๅณๅฏๅœจ็บฟๅฎ‰่ฃ…ใ€‚
-
-็”ฑไบŽ GeoGebra ๆ˜ฏๅœจ Java ็Žฏๅขƒไธ‹่ฟ่กŒ็š„่ฝฏไปถ๏ผŒๆ‰€ไปฅ่‹ฅๆ‚จ็š„็”ต่„‘ๆฒกๆœ‰ๅฎ‰่ฃ… Java๏ผŒๅฎ‰่ฃ…่ฟ‡็จ‹ไธญไผš่ฟ›่กŒ Java ็Žฏๅขƒ็š„ๅฎ‰่ฃ…ใ€‚็ป“ๆŸ Java ็š„ๅฎ‰่ฃ…ๅŽ๏ผŒๅฐฑๅฏไปฅๅฎ‰่ฃ… GeoGebra ่ฝฏไปถไบ†ใ€‚
-
-# 2.2. ็ฆป็บฟๅฎ‰่ฃ…
-
-ๅฆ‚ๆžœๆ‚จ็š„็”ต่„‘ๆฒกๆœ‰็ฝ‘็ปœ็Žฏๅขƒ๏ผŒๅฏไปฅไฝฟ็”จ็ฆป็บฟๅฎ‰่ฃ…ๅŒ…ๅฎ‰่ฃ… GeoGebra ่ฝฏไปถใ€‚
-
-้ฆ–ๅ…ˆๆ‰พๅˆฐไธ€ๅฐๅ…ทๅค‡็ฝ‘็ปœๆกไปถ็š„็”ต่„‘๏ผŒๅœจ็‚นๅ‡ปโ€œDownloadโ€ๅŽ็‚นๅ‡ปโ€œOffline Installersโ€้“พๆŽฅ๏ผŒๅœจๆ–ฐๆ‰“ๅผ€็š„้กต้ขไธญ้€‰ๆ‹ฉโ€œWindowsโ€ไธ‹่ฝฝ็ฆป็บฟๅฎ‰่ฃ…ๅŒ…ใ€‚
-
-ๅŒๅ‡ป่ฟ่กŒ็ฆป็บฟๅฎ‰่ฃ…ๅŒ…๏ผŒๅœจๅฎ‰่ฃ…็•Œ้ขไธญ้€‰ๆ‹ฉโ€œChinese๏ผˆSimplified๏ผ‰โ€ๅณๅฏๅฎ‰่ฃ…็ฎ€ไฝ“ไธญๆ–‡็‰ˆ็š„GeoGebra่ฝฏไปถใ€‚
-
-![](images/dc91ffd7f047021fdd4b43ce2c3c348d90d0330155428c6d3bbbe32eeaab4c42.jpg)
-
-GeoGebra ็š„ๅฎ‰่ฃ…ๆ–‡ไปถๅพˆๅฐ๏ผŒๅฏไปฅๆ–นไพฟ็š„ๆ”พๅœจ็งปๅŠจๅญ˜ๅ‚จ่ฎพๅค‡ไธญๅคๅˆถๅˆฐๆฒกๆœ‰ๆฒกๆœ‰็ฝ‘็ปœ็Žฏๅขƒ็š„็”ต่„‘ไธŠ๏ผŒ่ฟ›่กŒ็ฆป็บฟๅฎ‰่ฃ…ใ€‚
-
-# 3. ่ฎค่ฏ† GeoGebra
-
-ไธบไบ†้…ๅˆๅคš็งๆ•ฐๅญฆๅŠŸ่ƒฝ็š„ๅฎž็Žฐ๏ผŒGeoGebra ๆไพ›ไธ‰็งๆ“ไฝœๅŒบๅŸŸ๏ผšไปฃๆ•ฐๅŒบใ€็ป˜ๅ›พๅŒบๅ’Œ็”ตๅญ่กจๆ ผใ€‚่ฟ™ไบ›ๆ“ไฝœๅŒบๅŸŸๅˆ†ๅˆซๅฏนๅบ”ๅฎž็ŽฐไธๅŒ็š„ๆ•ฐๅญฆ้œ€ๆฑ‚๏ผŒๅฆ‚ไปฃๆ•ฐๅŠŸ่ƒฝ๏ผˆๆ–น็จ‹ใ€ๅ‡ฝๆ•ฐ๏ผ‰ใ€ๅ‡ ไฝ•ๅŠŸ่ƒฝ๏ผˆ็”ปๅ›พใ€ๆ็‚นใ€ๅ‡ฝๆ•ฐๅ›พๅƒ๏ผ‰ๅ’Œ็ปŸ่ฎกๅŠŸ่ƒฝใ€‚
-
-![](images/c8431229ad86f2a4fcc080a4cb200a6f14118fb11241f3ae49d0e375888954a8.jpg)
-
-# 3.1. ไปฃๆ•ฐๅŒบ
-
-GeoGebra ๆ”ฏๆŒๅœจๅ‘ฝไปคๆก†ไธญ็›ดๆŽฅ่พ“ๅ…ฅไปฃๆ•ฐ่กจ่พพๅผ๏ผŒ่พ“ๅ…ฅๅฎŒๆˆๅŽๅ›ž่ฝฆ๏ผŒๆ‰€่พ“ๅ…ฅ็š„ไปฃๆ•ฐ่กจ่พพๅผๅณๅฏๅœจไปฃๆ•ฐๅŒบไธญๆ˜พ็คบ๏ผŒๅŒๆ—ถ็›ธๅบ”็š„ๅ‡ ไฝ•ๅ›พๅฝขไนŸไผšๅœจ็ป˜ๅ›พๅŒบๅ‡บ็Žฐใ€‚GeoGebra ๆไพ›ไบ†ๅพˆๅคšๅ‘ฝไปค๏ผŒๅฏไปฅๅœจๅ‘ฝไปคๆก†ๅณไพง็š„โ€œCommandโ€ไธญ้€‰ๆ‹ฉ้œ€่ฆ็š„ๅ‘ฝไปค๏ผŒ้€‰ๆ‹ฉๅ‘ฝไปคๅŽๅฏไปฅๆŒ‰ F1 ้”ฎ่Žทๅพ—็›ธๅบ”็š„่ฏญๆณ•ๅธฎๅŠฉใ€‚
-
-ๅœจไปฃๆ•ฐๅŒบไธญ๏ผŒๆ•ฐๅญฆๅฏน่ฑก่ขซๅˆ†ๆˆโ€œ่‡ช็”ฑๅฏน่ฑกโ€ๅ’Œโ€œๆดพ็”Ÿๅฏน่ฑกโ€๏ผŒๅฆ‚ๆžœ็”Ÿๆˆ็š„ไธ€ไธชๅฏน่ฑกๆฒกๆœ‰ไฝฟ็”จไปปไฝ•ๅทฒๆœ‰็š„ๅฏน่ฑก๏ผŒ้‚ฃไนˆ่ฟ™ไธชๅฏน่ฑกๅณ็งฐไธบโ€œ่‡ช็”ฑๅฏน่ฑกโ€๏ผŒ็›ธๅ๏ผŒๅฆ‚ๆžœๆ–ฐ็”Ÿๆˆ็š„ๅฏน่ฑกๆ˜ฏไพ่ต–ๅทฒๆœ‰็š„ๅฏน่ฑก๏ผŒๅˆ™่ขซ็งฐไธบโ€œๆดพ็”Ÿๅฏน่ฑกโ€ใ€‚
-
-่ฟ˜ๆœ‰ไธ€็ฑปๅฏน่ฑก็งฐไธบโ€œ่พ…ๅŠฉๅฏน่ฑกโ€ใ€‚ๅœจไปฃๆ•ฐๅŒบไธญ๏ผŒ้€‰ไธญๆŸไธชๅฏน่ฑก๏ผŒ็‚นๅ‡ปๅณ้”ฎ้€‰ๆ‹ฉโ€œๅฑžๆ€งโ€๏ผŒๅœจๅฑžๆ€งๅฏน่ฏๆก†็š„โ€œๅŸบๆœฌโ€้€‰้กนๅกไธญ๏ผŒๅ‹พ้€‰โ€œ่พ…ๅŠฉๅฏน่ฑกโ€๏ผŒ่ฏฅๅฏน่ฑกไพฟไผšๆˆไธบโ€œ่พ…ๅŠฉๅฏน่ฑกโ€๏ผŒๅœจ้ป˜่ฎค่ฎพ็ฝฎไธ‹โ€œ่พ…ๅŠฉๅฏน่ฑกโ€ๅœจไปฃๆ•ฐๅŒบไธญไธๆ˜พ็คบใ€‚
-
-# 3.2. ็ป˜ๅ›พๅŒบ
-
-ๅฏไปฅไฝฟ็”จๅทฅๅ…ทๆ ไธญ็š„็ป˜ๅ›พๅทฅๅ…ทๅœจ็ป˜ๅ›พๅŒบไธญๅˆฉ็”จ้ผ ๆ ‡่ฟ›่กŒๅ‡ ไฝ•ไฝœๅ›พใ€‚ไปŽๅทฅๅ…ทๆ ไธญ้€‰ๆ‹ฉไธ€็ง็ป˜ๅ›พๅทฅๅ…ท๏ผŒๅฏ็”ฑๅœจๅทฅๅ…ทๆ ๅณไพงๆ˜พ็คบ็š„ๅทฅๅ…ท่ฏดๆ˜Žๆฅไบ†่งฃ็ป˜ๅ›พๅทฅๅ…ท็š„ไฝฟ็”จๆ–นๆณ•ใ€‚ๅœจ็ป˜ๅ›พๅŒบๅ†…็”ปๅ‡บ็š„ๅ‡ ไฝ•ๅฏน่ฑก้ƒฝไผšๅœจไปฃๆ•ฐๅŒบไธญไบง็”Ÿไธ€ไธชไปฃๆ•ฐ่กจ่พพๅผใ€‚
-
-็ป˜ๅ›พๅทฅๅ…ทๆ ไธญ็š„ๆฏไธชๅ›พๆ ‡้ƒฝๆ˜ฏไธ€ไธชๅทฅๅ…ท็ฎฑ๏ผŒ้‡Œ้ขๅŒ…ๆ‹ฌไบ†ไธ€็ณปๅˆ—็›ธไผผ็š„็ป˜ๅ›พๅทฅๅ…ท๏ผŒ็‚นๅ‡ปๅ›พ
-
-ๆ ‡ๅณไธ‹ๆ–น็š„็ฎญๅคดๅฐฑๅฏไปฅๆ‰“ๅผ€ๅทฅๅ…ท็ฎฑ๏ผŒๆ˜พ็คบ่ฏฅๅทฅๅ…ท็ฎฑไธญ็š„ๆ‰€ๆœ‰็ป˜ๅ›พๅทฅๅ…ทใ€‚
-
-GeoGebra ไธญ็š„ๆ•ฐๅญฆๅฏน่ฑกๆ˜ฏๅฏไปฅ่ขซไฟฎๆ”น็š„ใ€‚ๅœจไปฃๆ•ฐๅŒบไธญๅŒๅ‡ป่ฆไฟฎๆ”น็š„ๆ•ฐๅญฆๅฏน่ฑก๏ผŒๅณๅฏไฟฎๆ”น่กจ่พพๅผ๏ผŒไฟฎๆ”นๅฎŒๆˆๅŽๅ›ž่ฝฆๅณๅฏ๏ผ›ๆˆ–่€…้€‰ๆ‹ฉ็งปๅŠจๅทฅๅ…ท๏ผŒๅœจ็ป˜ๅ›พๅŒบไธญๅŒๅ‡ป่ฆไฟฎๆ”น็š„ๆ•ฐๅญฆๅฏน่ฑก๏ผŒๅผนๅ‡บโ€œ้‡ๆ–ฐๅฎšไน‰โ€ๅฏน่ฏๆก†๏ผŒไฟฎๆ”น่กจ่พพๅผๅŽ็‚นๅ‡ปโ€œ็กฎๅฎšโ€ๅณๅฏใ€‚
-
-# 3.3. ็”ตๅญ่กจๆ ผ
-
-ๅœจ็”ตๅญ่กจๆ ผไธญ๏ผŒๆฏไธชๅ•ๅ…ƒๆ ผ้ƒฝๆœ‰็›ธๅบ”็š„ๅ็งฐๆฅๆŒ‡ๅฎšไฝ็ฝฎใ€‚ๅฆ‚ๅœจ็ฌฌไธ€่กŒ็ฌฌไธ€ๅˆ—็š„ๅ•ๅ…ƒๆ ผ็งฐไธบA1๏ผŒ่ฟ™ๆœ‰ไบ›็ฑปไผผOfficeExcelใ€‚ๅœจ็›ธๅ…ณ่กจ่พพๅผไธญ๏ผŒๅฏไปฅ็”จๅ•ๅ…ƒๆ ผ็š„ไฝ็ฝฎๅ็งฐๆฅไปฃๆ›ฟๅ•ๅ…ƒๆ ผไธญ็š„ๆ•ฐๆฎใ€‚
-
-ๅœจ็”ตๅญ่กจๆ ผไธญ๏ผŒไธไฝ†ๅฏไปฅ่พ“ๅ…ฅๆ•ฐๅ€ผ๏ผŒ่ฟ˜ๅฏไปฅ่พ“ๅ…ฅ GeoGebra ๅฏๆ‰ง่กŒ็š„ๆ•ฐๅญฆๅฏน่ฑก๏ผˆๅฆ‚ๅๆ ‡ใ€ๅ‡ฝๆ•ฐใ€ๅ‘ฝไปค็ญ‰๏ผ‰ใ€‚ๅœจ็”ตๅญ่กจๆ ผๆฑ‡ๆ€ป่พ“ๅ…ฅ็š„ๆ•ฐๅญฆๅฏน่ฑก GeoGebra ไผšๅœจ็ป˜ๅ›พๅŒบ็”ปๅ‡บ็›ธๅบ”็š„ๅ›พๅƒ๏ผŒๅนถ็”จๅ•ๅ…ƒๆ ผ็š„ไฝ็ฝฎๅ็งฐไธบ่ฏฅๅ›พๅƒๅ‘ฝๅใ€‚
-
-# ็ฌฌไบŒ็ซ  GeoGebra ็š„็”จ้€”
-
-# 1. ๅญฆไน ๆ—ถไฝฟ็”จ
-
-# 1.1. ่‡ชๅฎšไน‰็”จๆˆท็•Œ้ข
-
-GeoGebra ็š„็”จๆˆทๅฏไปฅๆ นๆฎ่‡ชๅทฑ็š„้œ€่ฆๅœจโ€œๆŸฅ็œ‹โ€่œๅ•ไธญ่‡ชๅฎšไน‰่ฝฏไปถ็•Œ้ข๏ผŒ้€‰ๆ‹ฉๆ˜ฏๅฆๆ˜พ็คบๆŸไบ›ๆ“ไฝœๅŒบใ€ๅฏน่ฑกไปฅๅŠๆ›ดๆ”น็ช—ๅฃๅธƒๅฑ€ใ€‚
-
-# u ่‡ชๅฎšไน‰ๆ“ไฝœๅŒบ
-
-็”จๆˆทๅฏไปฅ้€‰ๆ‹ฉๆ˜พ็คบๆˆ–้š่—็ป˜ๅ›พๅŒบไธญ็š„ๅฏน่ฑกใ€‚ๅœจไปฃๆ•ฐๅŒบไธญๆ‰พๅˆฐๅ›พๅƒๆ‰€ๅฏนๅบ”็š„ไปฃๆ•ฐ่กจ่พพๅผ๏ผŒๅ•ๅ‡ป่กจ่พพๅผๅ‰ๆ–น็š„ๅฐๅœ†็‚น๏ผŒๅณๅฏๆ”นๅ˜ๅ‡ ไฝ•ๅฏน่ฑก็š„ๆ˜พ็คบๆˆ–่€…้š่—ใ€‚็ฉบๅฟƒ็‚น่กจ็คบ้š่—ๅฏน่ฑก๏ผŒๅฎžๅฟƒ็‚น่กจ็คบๆ˜พ็คบๅฏน่ฑกใ€‚
-
-ไธบไบ†่ฐƒๆ•ด็ป˜ๅ›พๅŒบ็š„ๅฏ่ง†้ƒจๅˆ†๏ผŒๅฏไปฅไฝฟ็”จ็งปๅŠจ็ป˜ๅ›พๅŒบๅทฅๅ…ท๏ผŒ็„ถๅŽๆŒ‰ไฝ็ป˜ๅ›พๅŒบๆ‹–ๅŠจๅณๅฏๆ”นๅ˜็ป˜ๅ›พๅŒบ็š„ๅฏ่ง†้ƒจๅˆ†ใ€‚
-
-ๆญคๅค–๏ผŒ่ฟ˜ๅฏไปฅ้€š่ฟ‡ไปฅไธ‹ๆ–นๆณ•ๆฅๆ”นๅ˜็ป˜ๅ›พๅŒบ็š„ๆ˜พ็คบๆฏ”ไพ‹๏ผš
-
-1. ไฝฟ็”จๅทฅๅ…ทๆ ไธญ็š„ๆ”พๅคงๅ’Œ็ผฉๅฐๅทฅๅ…ทๆฅๆ”พ็ผฉ็ป˜ๅ›พๅŒบ๏ผ›
-
-2. ไฝฟ็”จ้ผ ๆ ‡็š„ๆปš่ฝฎๆฅๆ”พ็ผฉ็ป˜ๅ›พๅŒบ๏ผ›
-3. ไฝฟ็”จๅฟซๆท้”ฎ Ctrl + ๆ”พๅคงๅ’Œ Ctrl - ๆฅ็ผฉๅฐ๏ผ›
-4. ๅœจ็ป˜ๅ›พๅŒบไธญ็”จ้ผ ๆ ‡ๅณ้”ฎๆ‹–้€‰็ŸฉๅฝขๅŒบๅŸŸ๏ผŒๆพๅผ€้ผ ๆ ‡ๅŽ่ขซ้€‰ไธญๅŒบๅŸŸๅณๅฏๆ”พๅคงใ€‚
-
-# u ่‡ชๅฎšไน‰ๅๆ ‡่ฝดๅ’Œ็ฝ‘ๆ ผ
-
-ๅœจโ€œๆ˜พ็คบโ€่œๅ•ไธญๅฏไปฅ้€‰ๆ‹ฉๆ˜พ็คบๆˆ–้š่—็ป˜ๅ›พๅŒบ็š„ๅๆ ‡่ฝดๅ’Œ็ฝ‘ๆ ผใ€‚ๅœจ็ป˜ๅ›พๅŒบไธญ็‚นๅ‡ปๅณ้”ฎ๏ผŒ้€‰ๆ‹ฉโ€œ็ป˜ๅ›พๅŒบโ€ๅฏไปฅไฟฎๆ”น็ป˜ๅ›พๅŒบๅฑžๆ€ง๏ผš
-
-1. ไฟฎๆ”นๅๆ ‡่ฝดใ€‚ๅœจโ€œๅๆ ‡่ฝดโ€้€‰้กนๅกไธญ๏ผŒๅฏไปฅๆ”นๅ˜ๅๆ ‡็บฟ็š„ๆ ทๅผๅ’Œๅๆ ‡่ฝด็š„ๅ•ไฝๅ’Œ่Œƒๅ›ดๅคงๅฐใ€‚่ฟ˜ๅฏไปฅ้€‰ๆ‹ฉโ€œX่ฝดโ€ๅ’Œโ€œY่ฝดโ€้€‰้กนๅกๅˆ†ๅˆซไฟฎๆ”นๅๆ ‡่ฝดใ€‚
-2. ไฟฎๆ”น็ฝ‘ๆ ผใ€‚ๅœจโ€œ็ฝ‘ๆ ผโ€้€‰้กนๅกไธญ๏ผŒๅฏไปฅไฟฎๆ”น็ฝ‘ๆ ผ็š„้ขœ่‰ฒใ€ๆ ทๅผๅŠ่Œƒๅ›ดๅคงๅฐใ€‚
-
-# u ่‡ชๅฎšไน‰ๅทฅๅ…ทๆ 
-
-ๅœจโ€œๅทฅๅ…ทโ€่œๅ•ไธญ้€‰ๆ‹ฉโ€œ่‡ชๅฎšไน‰ๅทฅๅ…ทๆ โ€ๆฅ่‡ชๅฎšไน‰ๅทฅๅ…ทๆ ๏ผŒๅœจๆ‰“ๅผ€็š„ๅฏน่ฏๆก†ไธญๅทฆไพงๆ˜ฏๅทฅๅ…ทๆ ๅฝ“ๅ‰็š„็Šถๆ€๏ผŒๅณไพงๆ˜ฏๅฏไพ›ๆทปๅŠ ็š„ๅทฅๅ…ท๏ผŒๅฏไปฅไฝฟ็”จโ€œๆ’ๅ…ฅโ€ๆˆ–โ€œ็งป้™คโ€ๆฅไฟฎๆ”นๅฝ“ๅ‰ๅทฅๅ…ท็ฎฑใ€‚
-
-ๅฆ‚ๆžœๆƒณๆขๅคๅŽŸๆฅ็š„่ฎพ็ฝฎ๏ผŒๅฏไปฅ็‚นๅ‡ปๅฏน่ฏๆก†ๅทฆไธ‹่ง’็š„โ€œๆขๅคๅทฅๅ…ทๆ ้ป˜่ฎค่ฎพ็ฝฎโ€ๆŒ‰้’ฎใ€‚
-
-# 1.2. ไฟฎๆ”นๅฏน่ฑกๅฑžๆ€ง
-
-ๅœจ่ฆไฟฎๆ”น็š„ๅฏน่ฑกไธŠ็‚นๅ‡ปๅณ้”ฎ๏ผŒ้€‰ๆ‹ฉโ€œๅฑžๆ€งโ€ๅฏน่ฏๆก†๏ผŒๅณๅฏไฟฎๆ”นๅฏน่ฑกๅฑžๆ€ง๏ผˆ้ขœ่‰ฒใ€้ขœ่‰ฒๅŠๆ˜ฏๅฆๆ˜พ็คบ็ญ‰๏ผ‰ใ€‚
-
-ๅœจๅฑžๆ€งๅฏน่ฏๆก†ไธญ๏ผŒๅฏน่ฑกๆ˜ฏๅˆ†็ฑปๆŽ’ๅˆ—็š„๏ผˆๅฆ‚็‚นใ€็›ด็บฟใ€ๅœ†็ญ‰๏ผ‰๏ผŒๅฝ“ๅฏน่ฑก็š„ๆ•ฐ้‡่พƒๅคšๆ—ถ๏ผŒๅพˆๅฎนๆ˜“ๅœจๆŸไธช็ฑปๅˆซไธญไฟฎๆ”นไธ€ไธชๆˆ–ๅคšไธชๅฏน่ฑกใ€‚ๅฆ‚้€‰ๆ‹ฉ็ฑปๅˆซโ€œ็›ด็บฟโ€๏ผŒๅฏไปฅๅฏนๆ‰€ๆœ‰ๆญค็ฑปๅฏน่ฑก่ฟ›่กŒไฟฎ
-
-ๆ”นใ€‚
-
-ไฟฎๆ”นๆ—ถไฝฟ็”จๅณไพง็š„้€‰้กนๅกๆฅไฟฎๆ”นๅฏน่ฑก็š„้ขœ่‰ฒใ€ๆ ทๅผ็ญ‰ๅฑžๆ€งใ€‚ไฟฎๆ”นๅฎŒๆˆๅŽ็‚นๅ‡ปๅฏน่ฏๆก†ๅณไธ‹่ง’็š„โ€œๅ…ณ้—ญโ€ๆŒ‰้’ฎๅณๅฏใ€‚
-
-# 1.3. ๅฏน่ฑก็š„ๅณ้”ฎ่œๅ•
-
-ๅฏน่ฑก็š„ๅณ้”ฎ่œๅ•ๅฏไปฅ่ฟ›ไธ€ๆญฅไฟฎๆ”นๆ•ฐๅญฆๅฏน่ฑก็š„่กŒไธบๆˆ–ๅฑžๆ€งใ€‚
-
-![](images/92db8d4c0a30d314a102ddda65781beaa07fc69d3a439c238a37aafd29074b3a.jpg)
-
-ๅœจๅฏน่ฑกไธŠ็‚นๅ‡ปๅณ้”ฎ๏ผŒๅณๅฏๆ˜พ็คบๅฏน่ฑก็š„ๅณ้”ฎ่œๅ•ใ€‚ๅฏไปฅไฟฎๆ”นๅฏน่ฑก็š„ไปฃๆ•ฐ่กจ่พพๅผ็š„ๅฝขๅผ๏ผŒๅฏไปฅ้€‰ๆ‹ฉๆ˜ฏๅฆๆ˜พ็คบๅฏน่ฑก๏ผŒ่ฟ˜ๅฏไปฅๆ‰ง่กŒๆ”นๅใ€ๅˆ ้™ค็ญ‰ๆ“ไฝœใ€‚
-
-# 2. ๆผ”็คบๆ—ถไฝฟ็”จ
-
-# 2.1. ไฝœๅ›พ่ฟ‡็จ‹ๅฏผ่ˆชๆก
-
-![](images/ffece1f0d184a74d5602e5e20265a9defc4a2ab3f3716647250ddd1ac6b6e009.jpg)
-
-GeoGebra ๆไพ›ๅนถ่ฟ่กŒ้€š่ฟ‡ๆญคๅŠŸ่ƒฝๅฑ•็คบ GeoGebra ๆ–‡ไปถ็š„็ป˜ๅ›พๆญฅ้ชคใ€‚ๅช้œ€ๅœจโ€œๆŸฅ็œ‹โ€่œๅ•ไธญๅ‹พ้€‰โ€œ็ป„ๅ›พ่ฟ‡็จ‹ๅฏผ่ˆชๆกโ€ๅณๅฏๆ˜พ็คบ่ฏฅๅŠŸ่ƒฝ๏ผŒๅฏผ่ˆชๆกไฝไบŽ็ป˜ๅ›พๅŒบๅบ•้ƒจใ€‚
-
-ๆŒ‰้’ฎ๏ผšๅ›žๅˆฐ็ฌฌไธ€ๆญฅ๏ผ›
-ๆŒ‰้’ฎ๏ผšๅ›žๅˆฐๅ‰ไธ€ๆญฅ๏ผ›
-ๆŒ‰้’ฎ๏ผšๅ‰่ฟ›ๅˆฐไธ‹ไธ€ๆญฅ๏ผ›
-ๆŒ‰้’ฎ๏ผšๅ‰่ฟ›ๅˆฐๆœ€ๅŽไธ€ๆญฅ๏ผ›
-ๆ’ญๆ”พ ๆŒ‰้’ฎ๏ผš่‡ชๅŠจๆ’ญๆ”พ๏ผˆๆ’ญๆ”พ้€Ÿๅบฆๅฏ่ฎพๅฎš๏ผ‰๏ผ›
-ๆš‚ๅœ ๆŒ‰้’ฎ๏ผšๅœๆญข่‡ชๅŠจๆ’ญๆ”พ๏ผ›
-ๆŒ‰้’ฎ๏ผšๆ˜พ็คบไฝœๅ›พ่ฟ‡็จ‹ใ€‚
-
-# 2.2. ไฝœๅ›พ่ฟ‡็จ‹
-
-ๅœจโ€œๆŸฅ็œ‹โ€่œๅ•ไธญ้€‰ๆ‹ฉโ€œไฝœๅ›พ่ฟ‡็จ‹โ€้€‰้กน๏ผŒๅฏๆ˜พ็คบไฝœๅ›พ่ฟ‡็จ‹็ช—ๅฃใ€‚่ฏฅ็ช—ๅฃไปฅ่กจๆ ผ็š„ๅฝขๅผๅ‘ˆ็Žฐใ€‚ๅ€ŸๅŠฉโ€œไฝœๅ›พ่ฟ‡็จ‹โ€ๅฏน่ฏๆก†ๅบ•้ƒจ็š„ๅฏผ่ˆชๆก๏ผŒๅฏไปฅ้€ๆญฅ้‡็Žฐๅทฒ็ปๅฎŒๆˆ็š„ไฝœๅ›พ่ฟ‡็จ‹ใ€‚
-
-# ๅœจโ€œไฝœๅ›พ่ฟ‡็จ‹โ€ๅฏน่ฏๆก†ไธญ๏ผŒๅฏไปฅไฝฟ็”จ้”ฎ็›˜่ฟ›่กŒๆ“ไฝœ๏ผš
-
-1. ไฝฟ็”จ้”ฎ็›˜็š„ $\uparrow$ ้”ฎๅฏไปฅ็งปๅŠจๅˆฐๅ‰ไธ€ไธชๆญฅ้ชค๏ผ›
-2. ไฝฟ็”จ้”ฎ็›˜็š„ $\downarrow$ ้”ฎๅฏไปฅ็งปๅŠจๅˆฐไธ‹ไธ€ไธชๆญฅ้ชค๏ผ›
-3. ไฝฟ็”จ้”ฎ็›˜็š„ Home ้”ฎๅฏไปฅ็งปๅŠจๅˆฐ็ฌฌไธ€ไธชๆญฅ้ชค๏ผ›
-4. ไฝฟ็”จ้”ฎ็›˜็š„ End ้”ฎๅฏไปฅ็งปๅŠจๅˆฐๆœ€ๅŽไธ€ไธชๆญฅ้ชค๏ผ›
-5. ไฝฟ็”จ้”ฎ็›˜็š„ Delete ้”ฎๅฏไปฅๅˆ ้™คๆ‰€้€‰ๆ‹ฉ็š„ๆญฅ้ชคใ€‚
-
-# ๅœจโ€œไฝœๅ›พ่ฟ‡็จ‹โ€ๅฏน่ฏๆก†ไธญ๏ผŒไนŸๅฏไปฅไฝฟ็”จ้ผ ๆ ‡่ฟ›่กŒๆ“ไฝœ๏ผš
-
-1. ๅŒๅ‡ป้ผ ๆ ‡ๅทฆ้”ฎ้€‰ๅ–ๆƒณ่ฆ้€‰ๆ‹ฉ็š„ๆญฅ้ชค๏ผ›
-2. ๆƒณ่ฆ็งปๅŠจไฝœๅ›พๆญฅ้ชคๅฏไปฅไฝฟ็”จ้ผ ๆ ‡่ฟ›่กŒๆ‹–ๆ‹ฝ๏ผŒไฝ†ๅฆ‚ๆžœ่ฏฅๆญฅ้ชคๆœ‰ไพ่ต–็š„ๅ…ถไป–ๆญฅ้ชค๏ผŒๅˆ™่ฟ™ไธชๆ“ไฝœไธไธ€ๅฎšๅฏไปฅๅฎž็Žฐ๏ผ›
-3. ๅœจไปปไฝ•ไธ€่กŒไธŠ็‚นๅ‡ป้ผ ๆ ‡ๅณ้”ฎๅฏไปฅๆ‰“ๅผ€่ฏฅๆญฅ้ชค็š„ๅณ้”ฎ่œๅ•๏ผŒๅฏไปฅไฟฎๆ”น็›ธๅ…ณๅฑžๆ€งใ€‚
-
-ๅœจโ€œไฝœๅ›พ่ฟ‡็จ‹โ€ๅฏน่ฏๆก†ไธญๅฏไปฅๅœจไปปๆ„ไฝ็ฝฎๆ’ๅ…ฅไฝœๅ›พๆญฅ้ชค๏ผšไฝฟ็”จ้ผ ๆ ‡ๅทฆ้”ฎ้€‰ๅ–่ฆๆ’ๅ…ฅ็š„ๆญฅ้ชค็š„ๅ‰ไธ€ๆญฅ๏ผŒๅ…ณ้—ญไฝœๅ›พ่ฟ‡็จ‹ๅฏน่ฏๆก†ๅŽๆ–ฐๅปบๅฏน่ฑก๏ผŒ่ฟ™ๆ ทๆ–ฐ็š„ไฝœๅ›พๆญฅ้ชคๅฐฑไผš่ขซๆ’ๅ…ฅโ€œไฝœๅ›พ่ฟ‡็จ‹โ€ไธญไบ†ใ€‚
-
-# โ€œไฝœๅ›พ่ฟ‡็จ‹โ€ๅฏผๅ‡บไธบ็ฝ‘้กต๏ผš
-
-GeoGebra ๅฏไปฅๅฐ†โ€œไฝœๅ›พ่ฟ‡็จ‹โ€ๅฏผๅ‡บไธบ็ฝ‘้กตใ€‚้ฆ–ๅ…ˆๅœจโ€œๆŸฅ็œ‹โ€ไธญๆ‰“ๅผ€โ€œไฝœๅ›พ่ฟ‡็จ‹โ€ๅฏน่ฏๆก†๏ผŒ็„ถๅŽๅœจ่ฏฅๅฏน่ฏๆก†็š„โ€œๆ–‡ไปถโ€่œๅ•ไธญ้€‰ๆ‹ฉโ€œๅฏผๅ‡บไธบ็ฝ‘้กตโ€้€‰้กนใ€‚
-
-![](images/bc8ac77223be3a832cad34cb9243c9d93f3af3bbba5577401c74c2d65d950074.jpg)
-
-ๅœจโ€œๅฏผๅ‡บ๏ผšไฝœๅ›พ่ฟ‡็จ‹โ€ๅฏน่ฏๆก†ไธญ๏ผŒๅฏไปฅ่พ“ๅ…ฅโ€œๆ ‡้ข˜โ€โ€œไฝœ่€…โ€ๅ’Œๆ—ฅๆœŸ๏ผŒไปฅๅŠๆ˜ฏๅฆ่พ“ๅ‡บ็ป˜ๅ›พๅŒบ็š„ๅ›พๅƒ๏ผŒๅฎฝๅบฆๅ’Œ้ซ˜ๅบฆใ€‚ๆญคๅค–๏ผŒ่ฟ˜ๅฏไปฅ้€‰ๆ‹ฉโ€œๅฝฉ่‰ฒๆ˜พ็คบไฝœๅ›พ่ฟ‡็จ‹โ€๏ผŒ่ฟ™ๆ ทๆฏไธ€ไธชไฝœๅ›พๆญฅ้ชคไธŽๆ•ฐๅญฆๅฏน่ฑกๅฐฑไผš็”จ็›ธๅŒ็š„้ขœ่‰ฒๆ˜พ็คบใ€‚
-
-# 2.3. ๆ›ดๆ”นGeoGebra็š„่ฎพๅฎš
-
-ๅฏไปฅๅœจ GeoGebra ็š„้€‰้กน่œๅ•ไธญไฟฎๆ”นๅนถๅญ˜ๅ‚จ็”จๆˆท็š„ๅๅฅฝ่ฎพๅฎšใ€‚
-
-ไพ‹ๅฆ‚๏ผŒๅฏไปฅๆ”นๅ˜โ€œ่ง’็š„ๅ•ไฝโ€๏ผŒๅฏไปฅ้€‰ๆ‹ฉโ€œ่ง’ๅบฆโ€ๆˆ–่€…โ€œๅผงๅบฆโ€ใ€‚่ฟ˜ๅฏไปฅๆ›ดๆ”นโ€œ็‚น็š„ๆ ทๅผโ€โ€œๅค้€‰ๆก†ๅคงๅฐโ€ๅ’Œโ€œ็›ด่ง’ๆ ทๅผโ€็ญ‰็ญ‰ใ€‚
-
-ๆ นๆฎไฝฟ็”จ้œ€่ฆๆ›ดๆ”นๅฅฝ GeoGebra ็š„่ฎพๅฎšๅŽ๏ผŒๅฏไปฅ็‚นๅ‡ปโ€œ้€‰้กนโ€่œๅ•ไธญ็š„โ€œไฟๅญ˜่ฎพๅฎšโ€ใ€‚GeoGebra ๅฐฑไผšไฟๅญ˜็”จๆˆท็š„ไธชไบบๅๅฅฝ่ฎพๅฎš๏ผŒไปฅๅŽๅฐฑไผšไปฅ็”จๆˆทๅๅฅฝไฝœไธบ้ข„่ฎพๆฅๅฏๅŠจ่ฝฏไปถใ€‚
-
-# 3. ็ผ–่พ‘ๆ—ถไฝฟ็”จ
-
-# 3.1. ๆ‰“ๅฐ
-
-# ๆ‰“ๅฐ็ป˜ๅ›พๅŒบ
-
-GeoGebra ๅฏไปฅๆ‰“ๅฐ็ป˜ๅ›พๅŒบ็š„ๅ›พๅฝขใ€‚ๅœจโ€œๆ–‡ไปถโ€่œๅ•ไธญ็‚นๅ‡ปโ€œๆ‰“ๅฐ้ข„่งˆโ€้€‰้กนใ€‚ๅœจๅผนๅ‡บ็š„็ช—ๅฃไธญ๏ผŒๅฏไปฅๅกซๅ†™โ€œๆ ‡้ข˜โ€โ€œไฝœ่€…โ€ๅ’Œโ€œๆ—ฅๆœŸโ€ใ€‚่ฟ˜ๅฏไปฅ่ฎพๅฎšๆ‰“ๅฐ็š„ๆฏ”ไพ‹ๅคงๅฐไปฅๅŠๆ‰“ๅฐๆฟๅผ๏ผˆๆจช็‰ˆๆˆ–็ซ–็‰ˆ๏ผ‰ใ€‚
-
-# ๆ‰“ๅฐไฝœๅ›พ่ฟ‡็จ‹
-
-่ฆๆ‰“ๅฐไฝœๅ›พ่ฟ‡็จ‹๏ผŒ้ฆ–ๅ…ˆ่ฆๅœจโ€œๆ˜พ็คบโ€่œๅ•ไธญ้€‰ๆ‹ฉๆ˜พ็คบโ€œไฝœๅ›พ่ฟ‡็จ‹โ€ใ€‚็„ถๅŽ็‚นๅ‡ปโ€œๆ–‡ไปถโ€ไธญ็š„โ€œๆ‰“ๅฐ้ข„่งˆโ€๏ผŒๅ’Œๆ‰“ๅฐ็ป˜ๅ›พๅŒบ็ฑปไผผ็š„๏ผŒๅฏไปฅ่พ“ๅ…ฅโ€œๆ ‡้ข˜โ€โ€œไฝœ่€…โ€ๅ’Œโ€œๆ—ฅๆœŸโ€ไปฅๅŠ่ฎพๅฎš็›ธๅบ”้€‰้กนใ€‚
-
-# 3.2. ๅฏผๅ‡บ็ป˜ๅ›พๅŒบ
-
-# ็”Ÿๆˆๅ›พๅƒ
-
-ๅœจ GeoGebra ็š„ๆ–‡ไปถ่œๅ•ไธญ๏ผŒๅฏไปฅๅฐ†็ป˜ๅ›พๅŒบไปฅๅ›พ็‰‡็š„ๆ–นๅผๅญ˜ๅ‚จๅœจ็”ต่„‘ไธญใ€‚
-
-ๅœจ็ป˜ๅ›พๅŒบๅฎŒๆˆ็ป˜ๅ›พๅทฅไฝœๅŽ๏ผŒๅ•ๅ‡ปโ€œๆ–‡ไปถโ€้€‰ๆ‹ฉไธ‹ๆ‹‰่œๅ•ไธญ็š„โ€œๅฏผๅ‡บโ€ไธ‹็š„โ€œ็”Ÿๆˆๅ›พๅƒโ€ใ€‚
-
-![](images/1c7cacbf498b19306bf622448ec3d395d7856011d7819cb5781311e8646c76e4.jpg)
-
-ๅœจๆ”น็ช—ๅฃไธญ๏ผŒๅฏไปฅ้€‰ๆ‹ฉๅฏผๅ‡บๅ›พ็‰‡็š„ๆ ผๅผ๏ผŒๅฏไพ›้€‰ๆ‹ฉ็š„ๆ ผๅผๆœ‰pngใ€pdfใ€epsใ€svgๅ’Œemfใ€‚
-
-# ๅคๅˆถๅ›พๅƒ
-
-ๆœ‰ๅคš็งๆ–นๆณ•ๅฏไปฅๅคๅˆถ็ป˜ๅ›พๅŒบๅˆฐ็”ต่„‘็š„ๅ‰ช่ดด็ฐฟ๏ผš
-
-1. ๅ•ๅ‡ปโ€œๆ–‡ไปถโ€้€‰ๆ‹ฉไธ‹ๆ‹‰่œๅ•ไธญ็š„โ€œๅฏผๅ‡บโ€ไธ‹็š„โ€œๅฐ†็ป˜ๅ›พๅŒบๆ”พๅ…ฅๅ‰ช่ดดๆฟโ€
-2. ๅ•ๅ‡ปโ€œ็ผ–่พ‘โ€่œๅ•๏ผŒ็‚นๅ‡ปโ€œๅฐ†็ป˜ๅ›พๅŒบๆ”พๅ…ฅๅ‰ช่ดดๆฟโ€
-
-็ป˜ๅ›พๅŒบ็š„ๆˆชๅ›พๅฐ†ไปฅpngๆ ผๅผ่ขซๅคๅˆถๅˆฐ็ณป็ปŸ็š„ๅ‰ช่ดดๆฟไธญ๏ผŒ่ฏฅๅ›พ็‰‡ๅฏไปฅ่ขซ็ฒ˜่ดดๅˆฐๅ…ถไป–็จ‹ๅบไน‹ไธญ๏ผŒๅฆ‚๏ผšOffice Wordๆˆ–PowerPoint
-
-# 3.3. ็”ŸๆˆๅŠจๆ€็ฝ‘้กต
-
-GeoGebra ๅฏไปฅๅฏผๅ‡บๆˆไธบๅŠจๆ€็ฝ‘้กต๏ผŒๆˆไธบโ€œ็ฝ‘้กตๅฝขๅผ็š„ๅŠจๆ€ๅทฅไฝœ่กจ๏ผˆhtml๏ผ‰โ€ใ€‚ๅœจโ€œๆ–‡ไปถโ€่œๅ•ไธญ๏ผŒ้€‰ๆ‹ฉโ€œๅฏผๅ‡บโ€ๅŽ็‚นๅ‡ปโ€œ็ฝ‘้กตๅฝขๅผ็š„ๅŠจๆ€ๅทฅไฝœ่กจ๏ผˆhtml๏ผ‰โ€๏ผŒๆ‰“ๅผ€โ€œๅฏผๅ‡บ๏ผšๅŠจๆ€็ฝ‘้กตโ€ๅฏน่ฏๆก†ใ€‚
-
-1. ๅœจๅฏน่ฏๆก†ไธญๅฏไปฅ่พ“ๅ…ฅ็ฝ‘้กต็š„โ€œๆ ‡้ข˜โ€โ€œไฝœ่€…โ€ๅ’Œโ€œๆ—ฅๆœŸโ€
-2. ๅœจโ€œไธ€่ˆฌโ€้€‰้กนๅกไธญ๏ผŒๅฏไปฅๅœจๅŠจๆ€ๅ›พๅฝข็š„ๅ‰ๅŽๅŠ ๅ…ฅไธ€ไบ›ๆ–‡ๅญ—๏ผŒไนŸๅฏไปฅๅฐ†็ป˜ๅ›พ็ช—ๅฃ็›ดๆŽฅๆ”พๅœจ็ฝ‘้กตไน‹ไธญ๏ผˆๅœจ็ป˜ๅ›พๅŒบไธญๆ‰“ๅผ€็จ‹ๅบ็ช—ๅฃ็š„ๆŒ‰้’ฎ๏ผ‰
-3. ๅœจโ€œ้ซ˜็บงโ€้€‰้กนๅกไธญ๏ผŒๅฏไปฅ่ฎพๅฎšๅŠจๆ€็ฝ‘้กต็š„ไธ€ไบ›ๅŠŸ่ƒฝ๏ผŒๅฆ‚๏ผšๅ…่ฎธไฝฟ็”จ้ผ ๆ ‡ๅณ้”ฎใ€ๅœจ็ป˜ๅ›พๅŒบไธŠๆŒ‰ไธคไธ‹๏ผŒๅฐฑๅฏไปฅๅฏๅŠจGeoGebra๏ผ›ไปฅๅŠไฟฎๆ”น็”จๆˆท็•Œ้ข๏ผŒๅฆ‚๏ผšๆ˜พ็คบโ€œ่œๅ•ๆ โ€ใ€ๆ˜พ็คบโ€œๅทฅๅ…ทๆ โ€็ญ‰ใ€‚
-
-่ฏดๆ˜Ž๏ผšๅฏผๅ‡บๅŠจๆ€ๅทฅไฝœ่กจๆ—ถไผš็”Ÿไบงไธ‰็งๆ–‡ไปถ๏ผš
-
-1. html ๆ–‡ไปถ๏ผŒๆญคๆ–‡ไปถๆ˜ฏๅทฅไฝœ่กจๆœฌ่บซ
-2. ggb ๆ–‡ไปถ๏ผŒๆญคๆ–‡ไปถๅŒ…ๆ‹ฌ GeoGebra ๅ›พๅฝข
-3. geogebra.jar๏ผŒๆญคๆ–‡ไปถๅŒ…ๅซGeoGebraไปฅไฟ่ฏๅทฅไฝœ่กจ็š„ไบ’ๅŠจๅŠŸ่ƒฝใ€‚
-
-่ฟ™ไบ›ๆ–‡ไปถๅฟ…้กปๆ”พๅœจๅŒไธ€ไธชๆ–‡ไปถๅคนไธ‹๏ผŒๅŠจๆ€็ฝ‘้กตๆ‰่ƒฝๆญฃๅธธ่ฟ่กŒใ€‚
-
-ๅฏผๅ‡บ็š„htmlๆ–‡ไปถๅฏไปฅๅœจ็ฝ‘้กตๆต่งˆๅ™จไธ‹ๆŸฅ็œ‹๏ผˆๅฆ‚๏ผšInternet Explorer๏ผŒChrome๏ผŒFirefox็ญ‰๏ผ‰ใ€‚่ฆๆฑ‚็”ต่„‘ๅฟ…้กปๅฎ‰่ฃ…Javaๆจกๆ‹Ÿๅ™จๆ‰่ƒฝๆญฃๅธธๆŸฅ็œ‹ๅ’Œไฝฟ็”จๅŠจๆ€็ฝ‘้กตใ€‚
-
-# ็ฌฌไธ‰็ซ  ็ป˜ๅ›พๅทฅๅ…ท
-
-ๅฝ“้ผ ๆ ‡็งปๅŠจๅˆฐ็ป˜ๅ›พๅŒบไธญ็š„ๆ•ฐๅญฆๅฏน่ฑก๏ผˆๅฆ‚๏ผš็‚นใ€ๅ‘้‡ใ€็บฟๆฎตใ€ๅคš่พนๅฝขใ€ๆ›ฒ็บฟใ€็›ด็บฟๅŠๅœ†้”ฅๆ›ฒ็บฟ๏ผ‰ไธŠๆ—ถ๏ผŒ่ฏฅๅฏน่ฑกไผšๅ‡บ็Žฐ้€‰ไธญๆ•ˆๆžœ๏ผŒๅนถๅ‡บ็Žฐ่ฏฅๅฏน่ฑก็š„่ฏดๆ˜Žใ€‚
-
-ไธ‹้ขไป‹็ป็š„็ป˜ๅ›พๅทฅๅ…ท๏ผˆๅทฅๅ…ท็ป„๏ผ‰ๅฏไปฅ็”ฑ็‚นๅ‡ปๅทฅๅ…ทๆ ็š„ๆŒ‰้’ฎๆฅๅฏๅŠจ๏ผŒ็‚นๅ‡ปๅทฅๅ…ทๆŒ‰้’ฎๅณไธ‹่ง’็š„ๅฐ็ฎญๅคดๅฏไปฅๅผ€ๅฏๅทฅๅ…ท็ป„๏ผŒๆœ‰็ฑปไผผ็š„ๅทฅๅ…ทๅฏไพ›้€‰ๆ‹ฉใ€‚
-
-# 1. ๅŸบๆœฌๆ“ไฝœ
-
-# 1.1. ้€‰ๅ–ๅฏน่ฑก
-
-่ฆ้€‰ๅ–ๅฏน่ฑก๏ผŒๅ…ˆ็‚นๅ‡ป็งปๅŠจๅทฅๅ…ท๏ผŒ็„ถๅŽไฝฟ็”จ้ผ ๆ ‡้€‰ๅ–ๅฏน่ฑกใ€‚
-
-ๅŠ ๅ…ฅๆƒณ่ฆๅŒๆ—ถ้€‰ๅ–ๅคšไธชๅฏน่ฑก๏ผŒๅฏไปฅไฝฟ็”จ้ผ ๆ ‡ๆ‹–ๆ‹ฝๅ‡บไธ€ไธชๅŒบๅŸŸ๏ผšๅ…ˆ็‚นๅ‡ป็งปๅŠจๅทฅๅ…ท๏ผŒ็„ถๅŽๅ†่ฆ้€‰ๅ–็š„ๅŒบๅŸŸๅทฆไธŠ่ง’ๆŒ‰ไธ‹้ผ ๆ ‡ๅทฆ้”ฎ๏ผŒไธๆพๅผ€็›ดๅˆฐ่ฆ้€‰ๅ–ๅŒบๅŸŸ็š„ๅณไธ‹่ง’๏ผŒๆพๅผ€้ผ ๆ ‡ๅทฆ้”ฎ๏ผŒๆ‰€ๆœ‰ๅœจ่ฏฅๅŒบๅŸŸๅ†…็š„ๅฏน่ฑกๅฐฑ้ƒฝ่ขซ้€‰ๅ–ไบ†ใ€‚
-
-ไนŸๅฏไปฅๆŒ‰ไฝCtrl้”ฎ็‚นๅ‡ปๅคšไธชๅฏน่ฑก๏ผŒไนŸๅฏไปฅ้€‰ๅ–ๅคšไธชๅฏน่ฑกใ€‚
-
-# 1.2. ๅฏน่ฑกๆ”นๅ
-
-ๅฆ‚ๆžœ่ฆๆ›ดๆ”น้€‰ๅ–ๅฏน่ฑกๆˆ–ๆ–ฐๅขžๅฏน่ฑก็š„ๅ็งฐ๏ผŒๅช้œ€ๅœจ่ฏฅๅฏน่ฑกไธŠ็‚นๅ‡ป้ผ ๆ ‡ๅณ้”ฎ๏ผŒ้€‰ๆ‹ฉโ€œๆ”นๅโ€ๆ‰“ๅผ€ๅฏน่ฏๆก†๏ผŒ่พ“ๅ…ฅๆ–ฐ็š„ๅ็งฐ๏ผŒ็‚นๅ‡ปโ€œ็กฎๅฎšโ€ๅณๅฏใ€‚
-
-# 2. ไธ€่ˆฌๅทฅๅ…ท
-
-![](images/141c6a4b0574a479cfb38846d4cb24f9e633d872d60544107801983b61001566.jpg)
-
-# ๅคๅˆถๆ ทๅผ
-
-ๆญคๅทฅๅ…ทๅฏไปฅๅคๅˆถๅฏน่ฑก็š„ๆ ทๅผ๏ผˆๅฆ‚๏ผš้ขœ่‰ฒใ€ๅคงๅฐใ€็บฟๅฎฝ๏ผ‰ใ€‚
-
-ๅ…ˆ้€‰ๅ–ๆƒณ่ฆๅคๅˆถๆ ทๅผ็š„ๅฏน่ฑก๏ผŒ็„ถๅŽ็‚นๅ‡ปๅ…ถไป–ๅฏน่ฑกใ€‚
-
-![](images/bf0a6e0cd5d490b5f1d66b7cc9490eb289915864c6f519c1a8e29cd9bc202db3.jpg)
-
-# ๅˆ ้™ค
-
-็‚นๅ‡ป่ฆๅˆ ้™ค็š„ๅฏน่ฑกใ€‚
-
-![](images/6473d79f9ff2c2b69398caf4a64f8b488acb30f77f6bb6913696a58804327a65.jpg)
-
-# ็งปๅŠจ
-
-ไฝฟ็”จ้ผ ๆ ‡ๆ‹–ๆ‹ฝๅฏน่ฑกใ€‚ๅœจ็งปๅŠจๆจกๅผไธ‹๏ผŒไฝฟ็”จ้ผ ๆ ‡็‚นๅ‡ปไธ€ไธชๅฏน่ฑก๏ผŒๅฏไปฅๆŒ‰ Del ้”ฎๅˆ ้™คๅฏน่ฑก๏ผŒไนŸๅฏไปฅไฝฟ็”จๆ–นๅ‘้”ฎ็งปๅŠจๅฏน่ฑกใ€‚
-
-![](images/02ab2012501d5373139714e64f566043cd64dc261725ea1cccff3cf553e0ea98.jpg)
-
-# ็งปๅŠจ็ป˜ๅ›พๅŒบ
-
-ไฝฟ็”จ้ผ ๆ ‡ๆ‹–ๆ‹ฝ็งปๅŠจ็ป˜ๅ›พๅŒบๆฅๆ”นๅ˜ๅฏ่ง†่Œƒๅ›ดใ€‚
-
-ๅœจๆญคๆจกๅผไธ‹ไฝฟ็”จ้ผ ๆ ‡ๆ‹–ๆ‹ฝๅๆ ‡่ฝด๏ผŒๅฏไปฅๆ”นๅ˜ๅๆ ‡่ฝดๆฏ”ไพ‹ใ€‚
-
-![](images/2bd4facc2e2a243b1d432fd0b3f487bf1b17f0edde66492a4fad7f51d40fdbde.jpg)
-
-# ่ฎฐๅฝ•ๅˆฐ็”ตๅญ่กจๆ ผ
-
-ๆญคๅทฅๅ…ท่ƒฝๅคŸๅœจๅฏน่ฑก็งปๅŠจ็š„ๅŒๆ—ถ๏ผŒๅฐ†่ฏฅๅฏน่ฑก็š„ๅ˜ๅŒ–ๆ•ฐๅ€ผ่ฎฐๅฝ•ๅœจ็”ตๅญ่กจๆ ผไธญใ€‚ๆญคๅทฅๅ…ทไป…ๅฏนๆ•ฐๅ€ผใ€็‚นใ€ๅ‘้‡ๆœ‰ๆ•ˆใ€‚
-
-GeoGebraไผšไฝฟ็”จ็”ตๅญ่กจๆ ผ็š„ๅ‰ไธคไธชๅ•ๅ…ƒๆ ผๆฅ่ฎฐๅฝ•่ขซ้€‰ๅ–ๅฏน่ฑก็š„ๆ•ฐๅ€ผใ€‚ใ€
-
-# a=ๅˆคๆ–ญๅฏน่ฑกๅ…ณ็ณป
-
-้€‰ๅ–ไธคไธชๅฏน่ฑก๏ผŒๅœจๅผนๅ‡บ็š„ Relation ็ช—ๅฃไธญๅณๅฏๆ˜พ็คบไบŒ่€…็š„ๅ…ณ็ณปใ€‚๏ผˆๅฆ‚ไธ‹ๅ›พ๏ผŒไธค็‚นไธ็›ธ็ญ‰๏ผ‰
-
-![](images/d754b1e75b29cbb44f44d3e95b93384ceab01c480efa296e8fca58b2c1b1e362.jpg)
-
-![](images/1bbe99ee41071bfc3a9b61a549814c5b90319c46f1bddcc1fcbdce4ba37fb56d.jpg)
-
-# ็ป•็‚น่ฝฌๅŠจ
-
-ๅ…ˆ้€‰ๅ–ๆ—‹่ฝฌ็š„ไธญๅฟƒ็‚น๏ผŒ็„ถๅŽ็”จ้ผ ๆ ‡ๆ‹–ๆ‹ฝๅฏน่ฑกไปฅๆญคไธญๅฟƒๆ—‹่ฝฌใ€‚
-
-![](images/a3d0f3d64781097bb112942c70aea04736d69ea3dd373d49a6f68d1589294500.jpg)
-
-# ๆ˜พ็คบๆˆ–้š่—ๆ ‡็ญพ
-
-็‚นๅ‡ปๅฏน่ฑกๆ˜พ็คบๆˆ–้š่—ๅ…ถๆ ‡็ญพใ€‚
-
-![](images/913b31094bb0051888cd6a0fbeecf57a9732a10305357334fe8d579a797350c9.jpg)
-
-# ๆ˜พ็คบๆˆ–้š่—ๅฏน่ฑก
-
-็‚น้€‰ๅฏน่ฑกๆฅๅˆ‡ๆขๅ…ถๆ˜พ็คบๆˆ–้š่—็Šถๆ€ใ€‚็‚น้€‰ๅฎŒๅŽ๏ผŒ้œ€่ฆๆŒ‰ Esc ้”ฎใ€‚
-
-![](images/6fcabddf1d60d96a2b4b3fd24a76578baf6c17afd1d74b36d4ae4b7afb54b512.jpg)
-
-# ๆ”พๅคง
-
-ๆŒ‰ไธ€ไธ‹็ป˜ๅ›พๅŒบๅณๅฏๆ”พๅคง๏ผˆๆˆ–ไฝฟ็”จ้ผ ๆ ‡ๆปš่ฝฎ๏ผ‰ใ€‚
-
-![](images/8a724b0720bf024b61469ef843859352c1d872348462bdbe0cf268d6f58f8510.jpg)
-
-# ็ผฉๅฐ
-
-ๆŒ‰ไธ€ไธ‹็ป˜ๅ›พๅŒบๅณๅฏ็ผฉๅฐ๏ผˆๆˆ–ไฝฟ็”จ้ผ ๆ ‡ๆปš่ฝฎ๏ผ‰ใ€‚
-
-![](images/8f90e682f10d84a12e4c4bc888d0c9da3583d26e72a3e43eb48146b45ccb5daf.jpg)
-
-# ๅฏน่ฑก็พค็ป„ๆ˜พ็คบ้š่—ๆŒ‰้’ฎ
-
-็‚นๅ‡ป็ป˜ๅ›พๅŒบ๏ผŒไผš็”Ÿๆˆไธ€ไธชๅฏไปฅๆ˜พ็คบๆˆ–้š่—ๅฏน่ฑก็พค็ป„็š„้€‰ๆ‹ฉๆŒ‰้’ฎ๏ผŒๅฏไปฅๅœจ็ช—ๅฃไธญ่ฎพ็ฝฎๅ“ชไบ›ๅฏน่ฑกๅ—่ฏฅๆŒ‰้’ฎๆŽงๅˆถใ€‚
-
-![](images/33e91eef39c56c64d8956e581c77f3384872a3a128c9a351aa30d9485280b5d0.jpg)
-
-# ่ฝจ่ฟน
-
-็‚น้€‰ไธ€ไธชไผš้š็€็‚นAๅ˜ๅŒ–็š„็‚นB๏ผŒ็„ถๅŽ็‚นๅ‡ป็‚นA๏ผŒๅฐฑไผšไบง็”ŸB็š„่ฝจ่ฟนใ€‚
-
-# 3. ็‚น
-
-![](images/f0f0de9195673c6b290fe3db1cd6aa7312be3ae06ab85ee75bb530dc4b7b2639.jpg)
-
-# ไบค็‚น
-
-ๅˆ†ๅˆซ้€‰ๆ‹ฉไธคไธช็›ธไบค็š„ๅฏน่ฑก๏ผŒๆˆ–่€…็›ดๆŽฅ็”จ้ผ ๆ ‡็‚นๅ‡บไบค็‚นใ€‚
-
-ๅฏนๅ‘€็บฟๆฎตใ€ๅฐ„็บฟๆˆ–่€…ๅผง๏ผŒๅฏไปฅ้€‰ๆ‹ฉๆ˜ฏๅฆ่ฆ่ฝๅœจๅค–้ƒจไบค็‚นใ€‚่ฟ™ๅฏไปฅ็”จไบŽๅšๅ‡บ่ฝๅœจๅฏน่ฑกๅปถ้•ฟ็บฟไธŠ็š„็‚นใ€‚ๅฆ‚๏ผšๅฐ„็บฟๆˆ–็บฟๆฎตๅปถไผธๅฐฑๆ˜ฏไธ€ๆก็›ด็บฟใ€‚
-
-![](images/5669f1193b3cfefb9e2ac2292530454e33a89c7067b789766acb2c414cf1b7f3.jpg)
-
-# ไธญ็‚นๆˆ–ไธญๅฟƒ็‚น
-
-ๅฏไปฅ็‚น้€‰ไธค็‚นๆˆ–ไธ€ๆก็บฟๆฎตไปฅๅพ—ๅˆฐไธญ็‚น๏ผŒไนŸๅฏไปฅ็‚น้€‰ไธ€ๆกๅœ†้”ฅๆ›ฒ็บฟไปฅๅพ—ๅˆฐ่ฏฅๅœ†้”ฅๆ›ฒ็บฟ็š„ไธญๅฟƒ็‚นใ€‚
-
-![](images/4d09d48ecf809dcc2ea065a2603994e029d2bf1090ed2cb713d6a664fd02d844.jpg)
-
-# ๆ–ฐ็‚น
-
-็‚นๅ‡ป็ป˜ๅ›พๅŒบ็ฉบ็™ฝๅค„๏ผŒๆˆ–่€…็‚นๅ‡ปๆŸๅฏน่ฑกใ€‚
-
-ๅฝ“็‚นๅ‡ป็บฟๆฎตใ€็›ด็บฟใ€ๅคš่พนๅฝขใ€ๅœ†้”ฅๆ›ฒ็บฟใ€ๅ‡ฝๆ•ฐๆˆ–ๆ›ฒ็บฟๅฏไปฅๅœจๅฏน่ฑกไธŠๆ–ฐๅขžไธ€็‚นใ€‚
-
-ๅฝ“็‚นๅ‡ปไธคๅฏน่ฑก็›ธไบคๅค„ๆ—ถๅฏๅปบ็ซ‹ไบค็‚นใ€‚
-
-# 4. ็บฟ
-
-# 4.1. ็›ด็บฟ
-
-![](images/b1d54eb7cb883f54e08cc8513ce48b447def2ad4caaca995170506d9e22c5141.jpg)
-
-# ็›ด็บฟ๏ผˆ่ฟ‡ไธค็‚น๏ผ‰
-
-็‚น้€‰ไธค็‚นAๅ’ŒB๏ผŒๅฏไปฅๅปบ็ซ‹่ฟ‡็‚นAๅ’ŒB็š„็›ด็บฟ๏ผŒไปฃๆ•ฐๅŒบไผšๆ˜พ็คบ็›ธๅ…ณ็š„็›ด็บฟๆ–น็จ‹ใ€‚
-
-![](images/d5ec7ce61a98016c90d9be5143097598b42684ec5079f4e8de9e5f6958b2d115.jpg)
-
-# ๅนณ่กŒ็บฟ
-
-็‚น้€‰ไธ€ๆก็›ด็บฟaๅ’Œไธ€็‚นA๏ผŒๅฏไปฅ็”ปๅ‡บไธ€ๆก่ฟ‡็‚นAๅนถๅนณ่กŒไบŽa็š„็›ด็บฟใ€‚
-
-![](images/cc6cdae42435ad6c8f4ae32c5f179717ad03565d18acd794d166fb978327c303.jpg)
-
-# ๅž‚็บฟ
-
-็‚น้€‰ไธ€ๆก็›ด็บฟaๅ’Œไธ€็‚นA๏ผŒๅปบ็ซ‹ไธ€ๆก่ฟ‡็‚นAไธ”ๅž‚็›ดไบŽa็š„็›ด็บฟใ€‚
-
-![](images/27a321d6626b2aee61b1d2a03439e615cd35090ff55c998baca67ed0a18a2f21.jpg)
-
-# ไธญๅž‚็บฟ
-
-็‚น้€‰ไธ€ๆก็บฟๆฎตaๆˆ–ไธค็‚นAๅ’ŒBๅปบ็ซ‹ไธญๅž‚็บฟ๏ผˆๅž‚็›ดๅนณๅˆ†็บฟ๏ผ‰ใ€‚
-
-![](images/424c8eafecc4b9b934ab0d01aef1fdd1bd5227843a31b4016f5ed46f13357fde.jpg)
-
-# ่ง’ๅนณๅˆ†็บฟ
-
-ๆœ‰ไธค็งๆ–นๅผๅฏไปฅไฝœๅ‡บ่ง’ๅนณๅˆ†็บฟ๏ผš
-
-1. ็‚น้€‰ไธ‰็‚น A, B, C, ๅฐ†็”Ÿๆˆไปฅ B ไธบ้กถ็‚น, ไธ‰็‚นๅ›ดๆˆ็š„่ง’็š„่ง’ๅนณๅˆ†็บฟ
-2. ็‚น้€‰ไธคๆก็บฟๆฎต๏ผŒ็”Ÿๆˆๅ…ถ่ง’ๅนณๅˆ†็บฟ
-
-![](images/1af2a470aeda35ad3d7cb6e42a1648fc14bbd204cd8f841bfd0580fb5cb4fea6.jpg)
-
-# ๅˆ‡็บฟ
-
-ๆœ‰ไธ‰็งๆ–นๅผๅฏไปฅไฝœๅ‡บๅˆ‡็บฟ๏ผš
-
-1. ้€‰ๅ–ไธ€็‚นAๅ’Œไธ€ๅœ†้”ฅๆ›ฒ็บฟa๏ผŒๅฏไปฅ็”Ÿๆˆ่ฟ‡็‚นAๅˆ‡ไธŽa็›ธๅˆ‡็š„ๅˆ‡็บฟ
-2. ้€‰ๅ–ไธ€ๆก็บฟ c ๅ’Œไธ€ๅœ†้”ฅๆ›ฒ็บฟ a๏ผŒๅฏไปฅ็”Ÿๆˆๅนณ่กŒไบŽ c ไธŽ a ็›ธๅˆ‡็š„ๅˆ‡็บฟ
-3. ้€‰ๅ–ไธ€็‚นAๅ’Œไธ€ๅ‡ฝๆ•ฐf๏ผŒๅฏไปฅ็”Ÿๆˆfๅœจ $\mathbf{x} = \mathbf{x}$ ๏ผˆA๏ผ‰ๅค„็š„ๅˆ‡็บฟ
-
-![](images/8098771fdcd66ebf060890599220f5c92a540238234a988a8f81b9f8b4870781.jpg)
-
-# ๆž็บฟๆˆ–ๅพ„็บฟ
-
-1. ็‚น้€‰ไธ€็‚นๅ’Œๅœ†้”ฅๆ›ฒ็บฟ๏ผŒๅฏไปฅ็”ปๅ‡บๆž็บฟ
-2. ้€‰ๅ–ไธ€็บฟๅ’Œๅœ†้”ฅๆ›ฒ็บฟ๏ผŒๅฏไปฅ็”ปๅ‡บๅพ„็บฟ
-
-![](images/1aff0f22a290c5574046e29ae1809623e8497ea1071bb7b3ec3402540db3cbd3.jpg)
-
-# ๅ›žๅฝ’็›ด็บฟ
-
-็”จ้ผ ๆ ‡ๆ‹–ๆ‹ฝ้€‰ๅ–ไธ€ไบ›็‚นๅฏไปฅๅพ—ๅˆฐๅฎƒไปฌ็š„ๅ›žๅฝ’็›ด็บฟ๏ผŒไปฃๆ•ฐๅŒบไผšๆ˜พ็คบๅ›žๅฝ’ๆ–น็จ‹ใ€‚
-
-# 4.2. ็บฟๆฎต
-
-![](images/29ec7dca224dbbf89556ad9dce0585ba3337da9990c8faf5498a43e1bc271aea.jpg)
-
-# ็บฟๆฎต๏ผˆ่ฟ‡ไธค็‚น๏ผ‰
-
-้€‰ๅ–็‚นAๅ’Œ็‚นB๏ผŒๅปบ็ซ‹็บฟๆฎตABใ€‚ๅœจไปฃๆ•ฐๅŒบไผšๆ˜พ็คบไปฃๆ•ฐ็š„้•ฟๅบฆใ€‚
-
-![](images/d1fa6980d2e4119aa5fd173f9b9543b52e306fe35ce2b485abbcdefba19fb145.jpg)
-
-# ็บฟๆฎต๏ผˆๆŒ‡ๅฎš่ตท็‚นใ€้•ฟๅบฆ๏ผ‰
-
-็‚น้€‰็‚น A ไฝœไธบ็บฟๆฎต็š„่ตท็‚น๏ผŒๅœจๅ‡บ็Žฐ็š„็ช—ๅฃไธญ่พ“ๅ…ฅ้•ฟๅบฆ๏ผŒ็‚นๅ‡ปโ€œ็กฎๅฎšโ€ใ€‚
-
-# 4.3. ๅฐ„็บฟ
-
-![](images/b221215b6ac3d40bc521e10170c090b06848925c0020dd512653da5a6caceba6.jpg)
-
-# ๅฐ„็บฟ๏ผˆ่ฟ‡ไธค็‚น๏ผ‰
-
-็‚น้€‰ไธค็‚น A ๅ’Œ B๏ผŒๅปบ็ซ‹ไปฅ A ไธบ่ตท็‚น้€š่ฟ‡ B ็š„ๅฐ„็บฟ๏ผŒๅœจไปฃๆ•ฐๅŒบไผšๆ˜พ็คบ็›ธๅ…ณ็š„ๆ–น็จ‹ใ€‚
-
-# 5. ๅ‘้‡
-
-![](images/3a87250b21be7cf1a72fefc39e16c7f1684d832791aed8b5fe70fa0c2dec9ce1.jpg)
-
-# ๅ‘้‡๏ผˆ่ฟ‡ไธค็‚น๏ผ‰
-
-็‚น้€‰ๅ‘้‡็š„่ตท็‚นๆˆ–็ปˆ็‚นใ€‚
-
-![](images/59c60f6dfd482385ff4b129cd514326eb87450f539c59fc2de941f112007245b.jpg)
-
-# ๅ‘้‡๏ผˆๆŒ‡ๅฎš่ตท็‚นใ€ๅ‘้‡๏ผ‰
-
-็‚น้€‰่ตท็‚น A ๅ’Œๅฆไธ€ไธชๅ‘้‡ v ไปฅๅปบ็ซ‹็‚น $\mathrm{B} = \mathrm{A} + \mathrm{v}$ , ๅฏไปฅๅšๅ‡บไปŽ A ๅˆฐ B ็š„ๅ‘้‡ใ€‚
-
-# 6. ๅœ†้”ฅๆ›ฒ็บฟ
-
-![](images/24c722794edf2fe837de8c826de1ee6ca6605e13f8c01f19464b2131b595fd33.jpg)
-
-# ๅœ†๏ผˆๆŒ‡ๅฎšๅœ†ๅฟƒไธŽไธ€็‚น๏ผ‰
-
-็‚น้€‰ไธ€็‚น M ๅ’Œไธ€็‚น P๏ผŒๅฏไปฅ็”ปๅ‡บไปฅ M ไธบๅœ†ๅฟƒ่ฟ‡็‚น P ็š„ๅœ†ใ€‚
-
-![](images/45654885b173f81f48e21f6187c798c7dafd5960e6641deba2c15c97a083ba86.jpg)
-
-# ๅœ†๏ผˆๆŒ‡ๅฎšๅœ†ๅฟƒไธŽๅŠๅพ„๏ผ‰
-
-็‚น้€‰ๅœ†ๅฟƒM๏ผŒๅœจๅ‡บ็Žฐ็š„็ช—ๅฃไธญ่พ“ๅ…ฅๅŠๅพ„๏ผŒ็‚นๅ‡ปโ€œ็กฎๅฎšโ€๏ผŒๅณๅฏ็”ปๅ‡บๆŒ‡ๅฎšๅœ†ๅฟƒไธŽๅŠๅพ„็š„ๅœ†ใ€‚
-
-![](images/dd87f2320d30a2b101b78a614aa5378ed1bcc4f3724756afe0aea98f127032b8.jpg)
-
-# ๅœ†๏ผˆ่ฟ‡ไธ‰็‚น๏ผ‰
-
-็‚น้€‰ไธ‰็‚นA๏ผŒB๏ผŒCๅฏไปฅ็”ปๅ‡บ่ฟ‡ๆญคไธ‰็‚น็š„ๅœ†ใ€‚
-
-![](images/80514e2c87aa7837decdabb3320e842bdfcf2e2bd25925ae3b2c7f7a7320d0f8.jpg)
-
-# ๅœ†๏ผˆๅŠๅพ„้•ฟใ€ๅœ†ๅฟƒ๏ผ‰
-
-ๅ…ˆ้€‰ๆ‹ฉไธ€ๆกไฝœไธบๅŠๅพ„้•ฟ็š„ๅŠๅพ„๏ผŒๅ†ๆŒ‡ๅฎšๅœ†ๅฟƒ็”ปๅœ†ใ€‚
-
-![](images/f26808c2709518db4084c324dafac45e1681701be18ab66c45139ee8aaac4c7d.jpg)
-
-# ๅœ†้”ฅๆ›ฒ็บฟ๏ผˆ่ฟ‡ไบ”็‚น๏ผ‰
-
-็‚น้€‰ไบ”ไธช็‚น๏ผŒ็”Ÿๆˆไธ€ไธช่ฟ‡ๆญคไบ”็‚น็š„ๅœ†้”ฅๆ›ฒ็บฟใ€‚
-
-![](images/f007498656fdba651f1567cdf9df5fe027b22a22e7514eb416153588e496cbfb.jpg)
-
-# ๆคญๅœ†
-
-็‚น้€‰ไธค็‚นไฝœไธบๆคญๅœ†็š„็„ฆ็‚น๏ผŒ็„ถๅŽ้€‰ๅฎšๆคญๅœ†ไธŠไธ€็‚น๏ผŒ็”ปๅ‡บๆคญๅœ†ใ€‚
-
-![](images/85ae0accf2115a8f4f40d4425cd2750415e11818ab81de76e07d343136f9d654.jpg)
-
-# ๅŒๆ›ฒ็บฟ
-
-็‚น้€‰ไธค็‚นไฝœไธบๅŒๆ›ฒ็บฟ็š„็„ฆ็‚น๏ผŒ็„ถๅŽ้€‰ๅฎš่ฝๅœจๅŒๆ›ฒ็บฟไธŠ็š„ไธ€็‚น๏ผŒ็”ปๅ‡บๅŒๆ›ฒ็บฟใ€‚
-
-![](images/8552324548e5f3e05b2bc151f6b208214e43db87348b68a5735c614a1a8c0067.jpg)
-
-# ๆŠ›็‰ฉ็บฟ
-
-็‚น้€‰ไธ€็‚นๅ’ŒๆŠ›็‰ฉ็บฟ็š„ๅ‡†็บฟ๏ผŒ็”ปๅ‡บๆŠ›็‰ฉ็บฟใ€‚
-
-# 7. ๅœ†ไธŽๅคš่พนๅฝข
-
-# 7.1. ๅœ†ๅผงไธŽๆ‰‡ๅฝข
-
-ๅœ†ๅผง็š„ไปฃๆ•ฐๅ€ผๅณไธบๅ…ถ้•ฟๅบฆ๏ผŒๆ‰‡ๅฝข็š„ไปฃๆ•ฐๅ€ผไธบๅ…ถ้ข็งฏใ€‚
-
-![](images/e38e1516763e5abd7e0a9dce2a11fe900786ba8f8655426ccbb1a0ab7d4ae14d.jpg)
-
-# ๅœ†ๅผง๏ผˆๆŒ‡ๅฎšๅœ†ๅฟƒไธŽไธค็‚น๏ผ‰
-
-ๅ…ˆ้€‰ๅ–ๅœ†ๅผง็š„ๅœ†ๅฟƒM๏ผŒ็„ถๅŽ็‚น้€‰่ตท็‚นAๅ’Œ็ปˆ็‚นB๏ผŒ็”ปๅ‡บๅœ†ๅผงABใ€‚
-
-![](images/5be419bd7d41b0819c24e67838ad020259d6967257bf0ddb7efb82fb8e7b26bf.jpg)
-
-# ๆ‰‡ๅฝข๏ผˆๆŒ‡ๅฎšๅœ†ๅฟƒไธŽไธค็‚น๏ผ‰
-
-ๅ…ˆ้€‰ๅ–ๆ‰‡ๅฝข็š„ๅœ†ๅฟƒM๏ผŒ็„ถๅŽ็‚น้€‰่ตท็‚นAๅ’Œ็ปˆ็‚นB๏ผŒ็”ปๅ‡บๆ‰‡ๅฝขใ€‚
-
-![](images/c6ad3b43ce32c6c6698ebd819cb2bd543be0585422627afac753babf3998f5f2.jpg)
-
-# ๅœ†ๅผง๏ผˆ่ฟ‡ไธ‰็‚น๏ผ‰
-
-็‚น้€‰ไธ‰็‚น A, B ๅ’Œ C ๅปบ็ซ‹้€š่ฟ‡ไธ‰็‚น็š„ๅœ†ๅผงใ€‚็‚น A ไธบๅœ†ๅผง่ตท็‚น, ็‚น B ๅœจๅœ†ๅผงไธŠ, ็‚น C ไธบๅœ†ๅผง็š„็ปˆ็‚นใ€‚
-
-![](images/4a433465988fdcf21c2513e7403443cef8b486088b11bdcf6833f181ced2d998.jpg)
-
-# ๆ‰‡ๅฝข๏ผˆ่ฟ‡ไธ‰็‚น๏ผ‰
-
-็‚น้€‰ไธ‰็‚นA๏ผŒBๅ’ŒCๅปบ็ซ‹ๆ‰‡ๅฝขใ€‚็‚นAไธบๆ‰‡ๅฝขๅœ†ๅผง่ตท็‚น๏ผŒ็‚นBๅœจๆ‰‡ๅฝขๅœ†ๅผงไธŠ๏ผŒ็‚นCไธบๆ‰‡ๅฝขๅœ†ๅผง็š„็ปˆ็‚นใ€‚
-
-![](images/1daf11f5ce8ca9e5308e7b6733e6a7d12cec96640ca3971987a57c721442c752.jpg)
-
-# ๅŠๅœ†๏ผˆ่ฟ‡ไธค็‚น๏ผ‰
-
-็‚น้€‰ไธค็‚นAๅ’ŒB๏ผŒๅปบ็ซ‹ไปฅ็บฟๆฎตABไธบ็›ดๅพ„็š„ๅŠๅœ†ใ€‚
-
-# 7.2. ๅคš่พนๅฝข
-
-![](images/d643eb4023d4ca2ae44046867e5dc31b4ce3166fd1662ff3ce8fa23faacd640f.jpg)
-
-# ๅคš่พนๅฝข
-
-่‡ณๅฐ‘็‚น้€‰ไธ‰ไธช็‚นไฝœไธบๅคš่พนๅฝข็š„้กถ็‚น๏ผŒๆœ€ๅŽๅ†็‚นไธ€ไธ‹็ฌฌไธ€ไธช้กถ็‚นไปฅๅปบ็ซ‹ไธ€ไธชๅฐ้—ญ็š„ๅคš่พนๅฝขใ€‚ๅœจไปฃๆ•ฐๅŒบไผšๆ˜พ็คบๅคš่พนๅฝข็š„้ข็งฏใ€‚
-
-![](images/03ed982650da058a892d1d6e9bce36719d9cc42193875b5389245ac457527ff3.jpg)
-
-# ๆญฃๅคš่พนๅฝข
-
-็‚น้€‰ไธค็‚น A ๅ’Œ B ๅนถๅœจๅ‡บ็Žฐ็š„็ช—ๅฃไธญ่พ“ๅ…ฅๆ•ดๆ•ฐ n๏ผŒๅณๅพ—ๅˆฐไธ€ไธชๆœ‰ n ไธช้กถ็‚น๏ผŒ็บฟๆฎต AB ไธบ่พน้•ฟ็š„ๆญฃๅคš่พนๅฝขใ€‚
-
-# 8. ๆ•ฐๅ€ผไธŽ่ง’ๅบฆ
-
-![](images/618496f7324926a52377e377de73df11a4d540a856f733677026a7dc086c4acb.jpg)
-
-# ๆต‹้‡่ง’ๅบฆ
-
-่ฏฅๅทฅๅ…ทๅฏไปฅๆต‹้‡ไธ‰็‚น้—ด็š„่ง’ๅบฆ๏ผŒไธคๆก็บฟๆฎตใ€ไธคๆก็›ด็บฟใ€ไธคๅ‘้‡็š„่ง’ๅบฆๅ’Œๅคš่พนๅฝข็š„ๅ†…่ง’ใ€‚
-
-![](images/54f43745f0fcc6de23e3a9e1e744e7f7e4e2e0c1e69c4f906a28a0a06b6f0197.jpg)
-
-# ็”ปๆŒ‡ๅฎš่ง’
-
-็‚น้€‰ไธค็‚น A ๅ’Œ B, ๅœจ็ช—ๅฃไธญ่พ“ๅ…ฅ่ง’ๅบฆๅคงๅฐ, ๅฐ†ๅปบ็ซ‹็‚น C ๅ’Œ่ง’ๅบฆ $\alpha, \alpha$ ไธบ่ง’ ABCใ€‚
-
-![](images/1c97a5b2e6781f75d1f3f33e046a91404fc86c431a6ced41f32901b410635f8b.jpg)
-
-# ๆต‹้‡้ข็งฏ
-
-ๅฏไปฅๆต‹้‡ๅคš่พนๅฝขใ€ๅœ†ๆˆ–่€…ๆคญๅœ†็š„้ข็งฏ๏ผŒๅฐ†้ข็งฏๅ€ผๆ˜พ็คบๅœจ็ป˜ๅ›พๅŒบไธญใ€‚
-
-![](images/cdb9afb5b2fcda3161721dc2aef45937d32a7e414e5ef5a475e708e5e1938592.jpg)
-
-# ๆต‹้‡่ท็ฆป
-
-ๅฏไปฅๆต‹้‡ไธค็‚นใ€ไธค็›ด็บฟๆˆ–่€…ไธ€็‚นไธŽไธ€็›ด็บฟ้—ด็š„่ท็ฆป๏ผŒๅฐ†่ท็ฆปๅ€ผๆ˜พ็คบๅœจ็ป˜ๅ›พๅŒบไธญใ€‚ไนŸๅฏไปฅๆต‹้‡็บฟๆฎต้•ฟๅบฆใ€ๅœ†็š„ๅ‘จ้•ฟๆˆ–่€…ๅคš่พนๅฝขๅ‘จ้•ฟใ€‚
-
-![](images/d54d4fe498da9afbf49ebe4e0f684971df9118b7dfecbf67c1447bbd317c03bc.jpg)
-
-# ๆ–œ็އ
-
-ๅฏไปฅๆฑ‚ๅ‡บ็›ด็บฟ็š„ๆ–œ็އ๏ผŒๅฐ†ๆ–œ็އๅ€ผๆ˜พ็คบๅœจ็ป˜ๅ›พๅŒบไธญใ€‚
-
-![](images/66a96fc496c949b4b7419cacc62e5f305521640a55f51844c4de5f78d1ed0a9a.jpg)
-
-# ๆป‘ๆ†
-
-็‚นๅ‡ป็ป˜ๅ›พๅŒบ็š„ไปปๆ„ไฝ็ฝฎๅฏไปฅๅปบ็ซ‹ๆ•ฐๅ€ผๆˆ–่ง’ๅบฆๆป‘ๆ†๏ผŒๅœจๅ‡บ็Žฐ็š„็ช—ๅฃไธญ๏ผŒๅฏไปฅๆŒ‡ๅฎšๅ็งฐใ€ๆ•ฐๅ€ผๆˆ–่ง’ๅบฆ็š„ๅ˜ๅŒ–ๅŒบ้—ด๏ผŒ่ง’ๅบฆๆˆ–่€…้•ฟๅบฆ็š„ๅขž้‡๏ผŒ่ฟ˜ๅฏไปฅ่ฎพๅฎšๆป‘ๆ†ๆฐดๅนณๆˆ–ๅž‚็›ดไปฅๅŠๅฎฝๅบฆใ€‚
-
-ๆ•ฐๅ€ผๆป‘ๆ†็š„ไฝ็ฝฎๅœจ็ป˜ๅ›พๅŒบๅฏไปฅๆ˜ฏ็ปๅฏนๅฎšไฝ็š„๏ผˆๆป‘ๆ†ๅ›บๅฎšๅœจ็ป˜ๅ›พๅŒบไธŠ๏ผŒไธไผšๅ› ไธบๆ”พๅคง็ผฉๅฐ่€Œๆ”นๅ˜ๆˆ–ๆ˜ฏๆถˆๆ•ฃ๏ผ‰ไนŸๅฏไปฅๆ˜ฏ็›ธๅฏนไบŽๅๆ ‡็ณป็š„ใ€‚
-
-# 9. ๅ‡ ไฝ•ๅ˜ๆข
-
-ไธ‹ๅˆ—ๅ‡ ไฝ•ๅ˜ๆขๅฏ็”จไบŽ็‚นใ€็›ด็บฟใ€ๅœ†้”ฅๆ›ฒ็บฟใ€ๅคš่พนๅฝขๅ’Œๅ›พ็‰‡ใ€‚
-
-![](images/8ac19a3525e0a13193c2c8f295654366484c9b9a06ef3cb04c19e52fb64fc858.jpg)
-
-# ไปฅๆŸ็‚นไธบไธญๅฟƒไผธ็ผฉๅฏน่ฑก
-
-ๅ…ˆ้€‰ๅ–่ฆ่ฟ›่กŒไผธ็ผฉๅ˜ๆข็š„ๅฏน่ฑก๏ผŒๅœจ็‚น้€‰็ผฉๆ”พไธญๅฟƒ๏ผŒๅœจ็ช—ๅฃไธญ่พ“ๅ…ฅ็ผฉๆ”พๆฏ”ไพ‹ใ€‚
-
-![](images/8e73671cbfb7984fcf22777e1d814db3117499f18542ac1649bf05e76e7fadb2.jpg)
-
-# ๅš่ฝดๅฏน็งฐ
-
-ๅ…ˆ้€‰่ฆๅš่ฝดๅฏน็งฐ็š„ๅฏน่ฑก๏ผŒๅ†้€‰ๅฏน็งฐ่ฝดใ€‚
-
-![](images/a3eb2536e236b0b032ca4689219920b4b7a37ffd1fd3c3ed287e48503fb31ae2.jpg)
-
-# ๅš็‚นๅฏน็งฐ
-
-ๅ…ˆ้€‰่ฆๅšๅฏน็งฐ็š„ๅฏน่ฑก๏ผŒๅ†้€‰ๅฏน็งฐไธญๅฟƒใ€‚
-
-![](images/c18ac65ffe53e5daec52008752403df6f083bf28dc50e7c551e001d0995cd92a.jpg)
-
-# ๅๆผ”
-
-่ฏฅๅทฅๅ…ทๅฏไปฅ่ฎฉไธ€ไธช็‚นๅฏนไธ€ไธชๅœ†่ฟ›่กŒๅๆผ”ใ€‚ๅ…ˆ้€‰ๅ–่ฆ่ฟ›่กŒๅๆผ”็š„็‚น๏ผŒๅ†ๆŒ‡ๅฎšๅœ†ๆŒ‡ๅฎšไธบๅๆผ”ๅœ†ใ€‚
-
-![](images/cae8118cec17fd8cd32f43bb37ee02a91dd5b355cff3b5304d75df0e88809e4a.jpg)
-
-# ๆ—‹่ฝฌ
-
-ๅ…ˆ้€‰ๅ–่ฆ่ฟ›่กŒๆ—‹่ฝฌ็š„ๅฏน่ฑก๏ผŒๅ†็‚น้€‰ๆŸ็‚นไฝœไธบๆ—‹่ฝฌไธญๅฟƒ๏ผŒๅœจ็ช—ๅฃไธญ่พ“ๅ…ฅๆ—‹่ฝฌ่ง’ๅบฆใ€‚
-
-![](images/de324edae4ff7b96f37c2f00431926b514e1fe8ef3da9a8a3ccb20d5b94d427e.jpg)
-
-# ๅนณ็งป
-
-ๅ…ˆ้€‰ๅ–่ฆๅนณ็งป็š„ๅฏน่ฑก๏ผŒๅ†็‚นๅ‡ปๅนณ็งป็š„ๅ‘้‡ใ€‚
-
-# 10. ๆ–‡ๅญ—
-
-# ABC ๆ’ๅ…ฅๆ–‡ๅญ—
-
-ๆญคๅทฅๅ…ทๅฏไปฅๅœจ็ป˜ๅ›พๅŒบไธญ่พ“ๅ…ฅ้™ๆ€ๆ–‡ๅญ—๏ผˆ็บฏๅญ—็ฌฆ๏ผ‰ๅŠจๆ€ๆ–‡ๅญ—๏ผˆๅŒ…ๅซๅ˜้‡๏ผ‰ๆˆ–LaTexๅ…ฌๅผใ€‚้ฆ–ๅ…ˆ๏ผŒ้œ€่ฆๆŒ‡ๅฎšๆ–‡ๅญ—็š„ไฝ็ฝฎ๏ผŒ็„ถๅŽๅœจ็ช—ๅฃไธญ่พ“ๅ…ฅๆ–‡ๅญ—ใ€‚
-
-ๅŠจๆ€ๆ–‡ๅญ—ๅŒ…ๅซๅฏน่ฑก็š„ๆ•ฐๅ€ผใ€‚ๅฏไปฅ็”จ้”ฎ็›˜่พ“ๅ…ฅ้™ๆ€้ƒจๅˆ†๏ผˆๅฆ‚๏ผšPoint A=๏ผ‰็„ถๅŽ็‚นๅ‡ป่ฆๆ˜พ็คบๅ…ถๆ•ฐๅ€ผ็š„ๅฏน่ฑกใ€‚GeoGebra ไผšๅœจๅ˜้‡ๆ–‡ๅญ—ไธญ่‡ชๅŠจๅขžๅŠ ๅฟ…่ฆ็š„่ฏญๆณ•็ป“ๆž„๏ผŒๆ–‡ๅญ—็š„้™ๆ€้ƒจๅˆ†ๅŠ ไธŠๅŒๅผ•ๅทๅ†ๅŠ ไธŠ+่ฟ™ไธชๅญ—็ฌฆๆฅ่ฟžๆŽฅๆ–‡ๅญ—็š„ไธๅŒ้ƒจๅˆ†ใ€‚ๅฆ‚ไธ‹ไพ‹๏ผš
-
-![](images/3e6f8614af54727ebb86fc0e673daa6226ec1b70b5fba7aaf1ad2b058eb74918.jpg)
-
-<table><tr><td>่พ“ๅ…ฅ</td><td>่ฏดๆ˜Ž</td></tr><tr><td>ๆ–‡ๅญ—</td><td>ๆ˜พ็คบโ€œๆ–‡ๅญ—โ€๏ผˆ้™ๆ€ๆ–‡ๅญ—๏ผ‰</td></tr><tr><td>โ€œPoint A=โ€+A</td><td>ๅŠจๆ€ๆ˜พ็คบโ€œPoint A=(1.19,1.47)โ€๏ผˆๅๆ ‡ไผš้š็€A็‚น็š„ไฝ็ฝฎ่€Œๅ˜ๅŒ–๏ผ‰</td></tr><tr><td>โ€œa=โ€+a+โ€œcmโ€</td><td>ๅŠจๆ€ๆ˜พ็คบโ€œa=1cmโ€</td></tr></table>
-
-ๅฆ‚ๆžœๅฏน่ฑก็š„ๅ็งฐๅทฒ็ปๅญ˜ๅœจ๏ผŒๅฏไปฅๅปบ็ซ‹้™ๆ€ๆ–‡ๅญ—ไฝœไธบๅฏน่ฑก็š„ๅ็งฐ๏ผŒไฝ†้œ€่ฆไฝฟ็”จๅŒๅผ•ๅท๏ผŒๅฆๅˆ™GeoGebraไผš่ง†ไธบๅŠจๆ€ๆ–‡ๅญ—๏ผŒๆ˜พ็คบๅฏน่ฑก็š„ๆ•ฐๅ€ผใ€‚ไฝ†ๆ˜ฏๅฆ‚ๆžœ่พ“ๅ…ฅ็š„ๆ–‡ๅญ—ไธๆ˜ฏๅทฒ็ปๅญ˜ๅœจ็š„ๅฏน่ฑกๅ็งฐ๏ผŒๅˆ™ไธ้œ€่ฆๅŠ ๅŒๅผ•ๅทใ€‚
-
-ๅœจGeoGebraไธญๅฏไปฅ่พ“ๅ…ฅLaTexๅ…ฌๅผ๏ผŒๅœจ็ช—ๅฃไธญๅ‹พ้€‰โ€œLaTexๅ…ฌๅผโ€ๅณๅฏ่พ“ๅ…ฅ็ฌฆๅˆLaTex่ฏญๆณ•็š„ๅ…ฌๅผใ€‚ไธ‹้ข้€‚ๅฝ“่ฏดๆ˜Žไธ€ไบ›้‡่ฆ็š„LaTex่ฏญๅฅ๏ผš
-
-<table><tr><td>LaTex ่พ“ๅ…ฅ</td><td>่พ“ๅ‡บ็ป“ๆžœ</td></tr><tr><td>a \cdot b</td><td>a ยท b</td></tr><tr><td>\frac{a}{b}</td><td></td></tr><tr><td>\sqrt{x}</td><td></td></tr><tr><td>\sqrt[n]{x}</td><td></td></tr><tr><td>\vec{v}</td><td></td></tr><tr><td>\overline{overline{1}}</td><td></td></tr><tr><td>x^2</td><td></td></tr><tr><td>a_{1}</td><td>x1</td></tr><tr><td>\sin\alpha\beta + \cos\alpha\beta</td><td>sin a + cos b</td></tr><tr><td>\int_{a}^{b} xdx</td><td>\(\int_{a}^{b}x dx\)</td></tr><tr><td>\sum_{i=1}^{n} i^2</td><td>\(\sum_{i=1}^{n} i^2\)</td></tr></table>
-
-# 11. ๅ›พ็‰‡
-
-![](images/7c305967deada55a68f02daf896ccbb9b2c7fa5b0797fc32c723102d1af4d0b6.jpg)
-
-# ๆ’ๅ…ฅๅ›พ็‰‡
-
-่ฏฅๅทฅๅ…ทๅฏไปฅๅœจ็ป˜ๅ›พๅŒบๆ’ๅ…ฅๅ›พ็‰‡ใ€‚ๅ…ˆๅœจ็ป˜ๅ›พๅŒบ้€‰ๅฎšไฝ็ฝฎ๏ผŒ็„ถๅŽๅ‡บ็Žฐโ€œๆ‰“ๅผ€โ€็ช—ๅฃ๏ผŒ้€‰ๆ‹ฉ่ฆๆ’ๅ…ฅ็š„ๅ›พ็‰‡๏ผŒ็‚นๅ‡ปโ€œๆ‰“ๅผ€โ€ใ€‚
-
-ไฝ็ฝฎ๏ผšๅ›พ็‰‡็š„ไฝ็ฝฎๅฏไปฅๆ˜ฏ็ปๅฏนๅฎšไฝไนŸๅฏไปฅๆ˜ฏ็›ธๅฏนไบŽๅๆ ‡็ณป็š„๏ผŒๅฏไปฅๅœจๅ›พ็‰‡็š„โ€œๅฑžๆ€งโ€ไธญ่ฎพ็ฝฎใ€‚ไนŸๅฏไปฅๅœจโ€œๅฑžๆ€งโ€ไธญๆŒ‡ๅฎšไธ‰ไธช้กถ็‚นๆฅ่ฎพ็ฝฎๅ›พ็‰‡ไฝ็ฝฎ๏ผŒ่ฟ™ๆ ทๅฐฑๅฏไปฅ็ผฉๆ”พใ€้€‰ๆ‹ฉ็”š่‡ณๆ‰ญๆ›ฒๅ›พ็‰‡ไบ†ใ€‚
-
-่ƒŒๆ™ฏๅ›พ๏ผšๅฏไปฅๅœจโ€œๅฑžๆ€งโ€ไธญๅฐ†ๅ›พ็‰‡่ฎพ็ฝฎไธบ่ƒŒๆ™ฏๅ›พ๏ผŒ่ƒŒๆ™ฏๅ›พไผšๆ”พๅœจๅๆ ‡่ฝดๅŽ๏ผŒไธ”ๆ— ๆณ•่ขซ้ผ ๆ ‡้€‰ๅ–ใ€‚
-
-้€ๆ˜Žๅบฆ๏ผšไธบไบ†ไฝฟๅ›พ็‰‡ๅŽ้ข็š„ๅฏน่ฑกๆˆ–ๅๆ ‡่ฝดๅฏ่ง๏ผŒๅ›พ็‰‡ๅฏไปฅ่ฎพๅฎšไธบ้€ๆ˜Ž๏ผŒ้€ๆ˜Žๅบฆๅฏไปฅๅœจโ€œๅฑžๆ€งโ€ไธญ่ฎพๅฎš๏ผŒไปŽ $0\%$ ๅˆฐ $100\%$ ใ€‚
-
-# ็ฌฌๅ››็ซ  ไปฃๆ•ฐ่พ“ๅ…ฅ
-
-ๆ•ฐๅญฆๅฏน่ฑก็š„ไปฃๆ•ฐ็‰นๆ€ง๏ผˆๅฆ‚๏ผšๆ•ฐๅ€ผใ€ๅๆ ‡ใ€ๆ–น็จ‹ๅผ๏ผ‰้ƒฝไผšๅœจๅทฆไพง็š„โ€œไปฃๆ•ฐๅŒบโ€ๆ˜พ็คบใ€‚ๅฆ‚ๆžœ่ฆๅปบ็ซ‹ๆˆ–่€…ไฟฎๆ”นๅฏน่ฑก๏ผŒๅฏไปฅไฝฟ็”จGeoGebraๅบ•้ƒจ็š„โ€œๅ‘ฝไปคๆก†โ€็›ดๆŽฅ่พ“ๅ…ฅไปฃๆ•ฐๅผใ€‚
-
-ๅœจๅ‘ฝไปคๆก†ไธญ่พ“ๅ…ฅไปฃๆ•ฐๅผๅŽ๏ผŒๆŒ‰Enterๅณๅฏใ€‚ๆŒ‰Enter้”ฎๅฏไปฅๅœจๅ‘ฝไปคๆก†ๅ’Œ็ป˜ๅ›พๅŒบไน‹้—ดๅฟซ้€Ÿๅˆ‡ๆข๏ผŒ่€Œไธ้œ€่ฆไฝฟ็”จ้ผ ๆ ‡็‚นๅ‡ปใ€‚
-
-# 1. ๅŸบๆœฌๆ“ไฝœ
-
-# 1.1. ๅฏน่ฑกๅ‘ฝๅ
-
-ไฝฟ็”จๅ‘ฝไปคๆก†ๅปบ็ซ‹ไธ€ไธชๅฏน่ฑกๆ—ถ๏ผŒๅฏไปฅ็ป™ไบˆๅฏน่ฑก็‰นๅฎš็š„ๅ็งฐ๏ผš
-
-ใ€็‚นใ€‘ๅœจ GeoGebra ไธญ๏ผŒ็‚น็š„ๅ‘ฝๅๆ˜ฏ็”จๅคงๅ†™ๅญ—ๆฏ่กจ็คบ็š„๏ผŒๅช่ฆๅœจๅๆ ‡ๅ‰้ขๅŠ ไธŠๅ็งฐไธŽ็ฌฆๅทๅณๅฏใ€‚
-
-ๅฆ‚๏ผš $\mathbf{C} = (2,4)$ ๏ผŒ $\mathrm{P} = (1;180^{\circ})$ ๏ผŒComplex $= 2 + \mathrm{i}$
-
-ใ€ๅ‘้‡ใ€‘ไธบไบ†ๅŒบๅˆซ็‚นๅ’Œๅ‘้‡๏ผŒๅœจGeoGebraไธญไฝฟ็”จๅฐๅ†™ๅญ—ๆฏๅ‘ฝๅๅ‘้‡ใ€‚ๅŒๆ ท๏ผŒๅœจๅ‘้‡ๅๆ ‡ๅ‰ๅŠ ไธŠๅ็งฐๅ’Œ็ญ‰ๅทๅณๅฏใ€‚
-
-ๅฆ‚๏ผš $\mathrm{v} = (1,3)$ ๏ผŒ $\mathbf{u} = (3;90^{\circ})$ ๏ผŒComplex $= 1 - 2\mathrm{i}$
-
-ใ€็›ด็บฟใ€ๅœ†ใ€ๅœ†้”ฅๆ›ฒ็บฟใ€‘่ฟ™ไบ›ๅฏน่ฑก็š„ๅ‘ฝๅๆ˜ฏๅœจๆ–น็จ‹ๅผๅ‰้ขๅŠ ไธŠๅ็งฐไธŽๅ†’ๅทใ€‚
-
-ๅฆ‚๏ผšg: $\mathrm{y} = \mathrm{x} + 3$ ๏ผŒc:(x-1) $\hat{\mathbf{\alpha}} 2+$ (y-2) $\hat{\mathbf{\alpha}} 2 = 4$ ๏ผŒhyp: $\mathrm{x^2 - y^2} = 2$
-
-ใ€ๅ‡ฝๆ•ฐใ€‘ๅœจๅ‡ฝๆ•ฐๅผๅ‰้ขๅŠ ไธŠๅ็งฐๅณๅฏใ€‚
-
-ๅฆ‚๏ผšf๏ผˆx๏ผ‰=2x+4๏ผŒg๏ผˆx๏ผ‰=x^2๏ผŒtrig๏ผˆx๏ผ‰=sin๏ผˆx๏ผ‰
-
-ๅฆ‚ๆžœไธๆ‰‹ๅŠจ่พ“ๅ…ฅๅฏน่ฑกๅ็งฐ๏ผŒGeoGebraไผšๆŒ‰ๅญ—ๆฏ้กบๅบ่‡ชๅŠจๅ‘ฝๅ๏ผ›
-
-ๅฆ‚ๆžœๅฏน่ฑกๅ็งฐๅŒ…ๅซไธ‹ๆ ‡ๅฏไปฅไฝฟ็”จโ€œ_โ€ๆฅๅปบ็ซ‹ไธ‹ๆ ‡๏ผŒๅฆ‚๏ผš่พ“ๅ…ฅA_1ๅฏไปฅๅพ—ๅˆฐ $\mathrm{A}_{1}$
-
-# 1.2. ไฟฎๆ”นๆ•ฐๅ€ผ
-
-ๆœ‰ไธค็งๆ–นๆณ•ๅฏไปฅๆ”นๅ˜่‡ช็”ฑๅฏน่ฑก็š„ๆ•ฐๅ€ผ๏ผš
-
-1. ไฟฎๆ”นๅฏน่ฑก็š„ๆ•ฐๅ€ผ๏ผŒๅฏไปฅๅœจๅ‘ฝไปคๆก†่พ“ๅ…ฅๅ็งฐไธŽๆ–ฐ็š„ๆ•ฐๅ€ผ
-
-ๅฆ‚๏ผšๅฆ‚ๆžœ่ฆไฟฎๆ”น $a = 3$ ๏ผŒๅฏไปฅๅœจๅ‘ฝไปคๆก†่พ“ๅ…ฅ $a = 5$ ๏ผŒ็„ถๅŽๆŒ‰ Enter ้”ฎๅณๅฏใ€‚
-
-2. ็ผ–่พ‘ไปฃๆ•ฐๅผ๏ผŒไฝฟ็”จ็งปๅŠจๅทฅๅ…ทๅœจไปฃๆ•ฐๅŒบๅŒๅ‡ปๅฏน่ฑก๏ผŒๅณๅฏ็ผ–่พ‘ๅฏน่ฑก็š„ๆ•ฐๅ€ผ๏ผŒ็ผ–่พ‘ๅฎŒๆˆๅŽๆŒ‰ Enter ๅณๅฏใ€‚
-
-ๅฆ‚ๆžœ็›ดๆŽฅไฟฎๆ”น่‡ช็”ฑๅฏน่ฑก็š„ๆ•ฐๅ€ผ๏ผŒๅˆ™็›ธๅบ”็š„ๆดพ็”Ÿๅฏน่ฑก็š„ๆ•ฐๅ€ผไนŸไผš่ทŸ็€ๆ”นๅ˜ใ€‚
-
-# 1.3. ๆ˜พ็คบๅ‘ฝไปคๆก†็š„่พ“ๅ…ฅ่ฎฐๅฝ•
-
-ๅฐ†้ผ ๆ ‡็งป่‡ณๅ‘ฝไปคๆก†๏ผŒๅฏไปฅไฝฟ็”จ้”ฎ็›˜็š„ไธŠไธ‹้”ฎ๏ผŒไธ€ๆญฅไธ€ๆญฅๆต่งˆๅ…ˆๅ‰่พ“ๅ…ฅ็š„ๅ‘ฝไปคใ€‚
-
-็‚นๅ‡ปๅ‘ฝไปคๆก†ๅทฆไพง็š„ๅธฎๅŠฉๆŒ‰้’ฎ๏ผŒๅฏไปฅๆ˜พ็คบๅ‘ฝไปคๆก†็š„่ฏดๆ˜Žใ€‚
-
-![](images/a5ce12eef5e5317ed19d895f8d53878e1c0eea4f989e9debeca88e7c898ef9a5.jpg)
-
-# 1.4. ๅ‘ฝไปคๆก†ๆ’ๅ…ฅๅ็งฐใ€ๆ•ฐๅ€ผๆˆ–ๅฏน่ฑก็š„ๅฎšไน‰
-
-ใ€ๆ’ๅ…ฅๅฏน่ฑก็š„ๅ็งฐใ€‘ไฝฟ็”จ็งปๅŠจๅทฅๅ…ทๅนถ็‚น้€‰่ฆๆ’ๅ…ฅๅ็งฐ็š„ๅฏน่ฑก๏ผŒ็„ถๅŽๆŒ‰ไธ‹้”ฎ็›˜็š„ F5 ้”ฎใ€‚ๅœจๆŒ‰ไธ‹ F5 ้”ฎไน‹ๅ‰๏ผŒๅฏน่ฑก็š„ๅ็งฐไผš่ขซ้™„ๅŠ ๅˆฐๅทฒๅœจๅ‘ฝไปคๆก†่พ“ๅ…ฅ็š„ๆ–น็จ‹ๅผใ€‚
-
-ใ€ๆ’ๅ…ฅๅฏน่ฑก็š„ๆ•ฐๅ€ผใ€‘ๆœ‰ไธค็งๆ–นๅผๅฏไปฅๆ’ๅ…ฅๅฏน่ฑก็š„ๆ•ฐๅ€ผ๏ผš
-
-1. ๅœจๅฏน่ฑกไธŠ็‚นๅ‡ป้ผ ๆ ‡ๅณ้”ฎ๏ผŒๅœจ่œๅ•ไธญ้€‰ๅ–โ€œๅคๅˆถๅˆฐๅ‘ฝไปคๆก†โ€ใ€‚
-2. ไฝฟ็”จ็งปๅŠจๅทฅๅ…ทๅนถ็‚น้€‰่ฆๆ’ๅ…ฅๆ•ฐๅ€ผ็š„ๅฏน่ฑก๏ผŒ็„ถๅŽๆŒ‰ไธ‹้”ฎ็›˜ไธŠ็š„ F4 ้”ฎใ€‚
-
-ใ€ๆ’ๅ…ฅๅฏน่ฑก็š„ๅฎšไน‰ใ€‘ๆœ‰ไธค็ง็ƒฆๆญปๅฏไปฅๆ’ๅ…ฅๅฏน่ฑก็š„ๅฎšไน‰๏ผš
-
-1. ๆŒ‰ไฝ Alt ็‚นๅ‡ปๅฏน่ฑกๆฅๆ’ๅ…ฅๅฏน่ฑก็š„ๅฎšไน‰ใ€‚
-2. ไฝฟ็”จ็งปๅŠจๅทฅๅ…ท็‚น้€‰่ฆๆ’ๅ…ฅๅฎšไน‰็š„ๅฏน่ฑก๏ผŒ็„ถๅŽๅ†ๆŒ‰ไธ‹้”ฎ็›˜ไธŠ็š„ F3 ้”ฎใ€‚
-
-# 2. ๆ•ฐๅญ—ๅ’Œ่ง’
-
-GeoGebra ๅฏไปฅ่พ“ๅ…ฅๆ•ฐๅ€ผใ€่ง’ใ€็‚นใ€ๅ‘้‡ใ€็บฟๆฎตใ€็›ด็บฟใ€ๅœ†้”ฅๆ›ฒ็บฟใ€ๅ‡ฝๆ•ฐๅ’Œๅ‚ๆ•ฐๆ›ฒ็บฟใ€‚ๅฏไปฅๅœจๅ‘ฝไปคๆก†่พ“ๅ…ฅ่ฟ™ไบ›ๅฏน่ฑก๏ผŒ่พ“ๅ…ฅๅๆ ‡ๆˆ–ๆ–น็จ‹ๅผๅŽๆŒ‰ Enter ๅณๅฏใ€‚
-
-# 2.1. ๆ•ฐๅญ—
-
-ๅฏไปฅๅˆฉ็”จๅ‘ฝไปคๆก†ๅปบ็ซ‹ไธ€ไธชๆ•ฐๅญ—๏ผŒๅฆ‚ๆžœๅช่พ“ๅ…ฅไธ€ไธชๆ•ฐๅญ—๏ผŒๅฆ‚๏ผš2๏ผŒGeoGebraไผšๅฐ†ๆŒ‡ๅฎšไธ€ไธชๅฐๅ†™ๅญ—ๆฏไฝœไธบๅฎƒ็š„ๅ็งฐใ€‚ๅฆ‚ๆžœ่ฆ็ป™ๆ•ฐๅญ—ๆ˜Ž็กฎ็š„ๅ‘ฝๅ๏ผŒๅฏไปฅๅ…ˆ่พ“ๅ…ฅๅ็งฐ๏ผŒๅ†่พ“ๅ…ฅ็ญ‰ๅทๅ’Œๆ•ฐๅญ—ใ€‚ๅฏไปฅไฝฟ็”จๅ‘ฝไปคๆก†ๅณไพง็š„ไธ‹ๆ‹‰่œๅ•้€‰็”จๆŸไบ›ๅธธๆ•ฐ๏ผˆๅฆ‚ๅœ†ๅ‘จ็އ $\pi$ ๏ผ‰ใ€‚
-
-![](images/d9cc57f5c2b7dcf44a297182a31a4ee8bd6c10cadf7ed153d01b695ac690aca0.jpg)
-
-![](images/33c4ce96a578f11cfcd71973dba4d825e0d32c24579c1368d89be1bd486a65e5.jpg)
-
-![](images/c14aed7c8b97a99734376a177079549d41f3eea46baf4033a8cde2de34bd73cf.jpg)
-
-![](images/540efde5ff71518428a68a681c62d10e3aa7c40fb5f234b7693c328a4560b128.jpg)
-
-![](images/0415ba00455f4870215f617534c7d7305d202d5692b3523c5306608145a45e4b.jpg)
-
-![](images/3380729fa10652f7c4c52e6834c34a47fb9c3633f7aa871bce36b48f900a0aad.jpg)
-
-![](images/b4c6711fcf50c8497664df0872acb66d37951db497cee6a767f19940c89ca8db.jpg)
-
-![](images/d0884eeed5711f8744ad18c545054dedd2abe75cfad3e85b6690d5ca1e5f5c86.jpg)
-
-![](images/6a5d5f9f0c1666cd8e8b848894b09e944e1057e921565a0701fe8e4b934cd6ef.jpg)
-
-# 2.2.่ง’
-
-ๅฏไปฅ่พ“ๅ…ฅ่ง’ๅบฆโ€œยฐโ€ๆˆ–่€…ๅผงๅบฆโ€œradโ€๏ผŒๅฏไปฅไฝฟ็”จpi่พ“ๅ…ฅฯ€
-
-ๅฏไปฅไฝฟ็”จๅฟซๆท้”ฎ่พ“ๅ…ฅยฐๅ’Œฯ€๏ผšAlt+O๏ผšๅฏไปฅ็”Ÿๆˆ็ฌฆๅทโ€œยฐโ€๏ผ›Alt+P๏ผšๅฏไปฅ็”Ÿๆˆ็ฌฆๅทโ€œฯ€โ€ใ€‚
-
-ๅฆ‚๏ผš่ง’ $\alpha$ ๅฏไปฅ่พ“ๅ…ฅ่ง’ๅบฆ๏ผˆ $\alpha = 60^{\circ}$ ๏ผ‰ๆˆ–ๅผงๅบฆ๏ผˆ $\alpha = \mathrm{pi} / 3$ ๏ผ‰
-
-# ใ€ๆป‘ๆ†ๅ’Œๆ–นๅ‘้”ฎใ€‘
-
-ๅœจ็ป˜ๅ›พๅŒบๅฏไปฅไฝฟ็”จโ€œๆป‘ๆ†โ€ๆฅๅฎž็Žฐๆ•ฐๅญ—ๅ’Œ่ง’ๅบฆ็š„ๅ˜ๅŒ–๏ผŒ่€Œๅœจไปฃๆ•ฐๅŒบๅˆ™ไฝฟ็”จๆ–นๅ‘้”ฎๆฅๆ”นๅ˜ๆ•ฐๅญ—ๅ’Œ่ง’ๅบฆใ€‚
-
-# ใ€้™ๅˆถๆ•ฐๅ€ผ่Œƒๅ›ดใ€‘
-
-ๆ•ฐๅญ—ไธŽ่ง’ๅบฆ็š„ๅ˜ๅŒ–ๅฏไปฅๆŒ‡ๅฎšไธ€ไธชๅŒบ้—ด๏ผŒไฝฟ็”จๆป‘ๆ†็š„โ€œๅฑžๆ€งโ€ๆฅ่ฎพๅฎšๆœ€ๅคงๅ€ผๅ’Œๆœ€ๅฐๅ€ผใ€‚
-
-# 3. ็‚นๅ’Œๅ‘้‡
-
-็‚นๅ’Œๅ‘้‡ๅฏไปฅไฝฟ็”จ็›ด่ง’ๅๆ ‡ๆˆ–ๆžๅๆ ‡ๆฅ่พ“ๅ…ฅใ€‚ๅ…ถไธญ๏ผŒๅคงๅ†™ๅญ—ๆฏ่กจ็คบ็‚น๏ผŒๅฐๅ†™ๅญ—ๆฏ่กจ็คบๅ‘้‡ใ€‚ๅฆ‚๏ผš
-
-ๅœจ็›ด่ง’ๅๆ ‡ไธ‹๏ผŒ่พ“ๅ…ฅ็‚นPๆˆ–ๅ‘้‡v๏ผŒๅฏไปฅ่พ“ๅ…ฅ $\mathbf{P} = (1,0)$ ๏ผŒ $\mathrm{v} = (0,5)$ ใ€‚
-
-ๅœจๆžๅๆ ‡ไธ‹๏ผŒ่พ“ๅ…ฅ็‚นPๆˆ–ๅ‘้‡๏ผŒๅฏไปฅ่พ“ๅ…ฅ $\mathrm{P} = (1;0^{\circ})$ ๏ผŒ $\mathbf{v} = (5;90^{\circ})$ ใ€‚
-
-ๅฟ…้กปไฝฟ็”จๅˆ†ๅทๆฅๅˆ†้š”ๆžๅๆ ‡็š„้•ฟๅบฆๅ’Œ่ง’ๅบฆ๏ผŒๅฆ‚ๆžœๆฒกๆœ‰่พ“ๅ…ฅ่ง’ๅบฆ็ฌฆๅท๏ผŒGeoGebraๅฐ†ๆญค่ง’่ง†ไธบๅผงๅบฆใ€‚
-
-ๅœจGeoGebraไธญ๏ผŒๅฏไปฅไฝฟ็”จ็‚นๅ’Œๅ‘้‡่ฟ›่กŒ่ฟ็ฎ—๏ผš
-
-ๆฑ‚็‚นAๅ’ŒB็š„ไธญ็‚นM๏ผŒๅฏไปฅๅœจๅ‘ฝไปคๆก†่พ“ๅ…ฅ $\mathbf{M} = (\mathbf{A} + \mathbf{B}) / 2$
-
-่ฎก็ฎ—ๅ‘้‡ $\mathbf{v}$ ็š„ๆจก้•ฟ๏ผŒๅฏไปฅๅœจๅ‘ฝไปคๆก†่พ“ๅ…ฅlength $=$ sqrt๏ผˆ $\mathbf{v}^{*}\mathbf{v}$ ๏ผ‰ใ€‚
-
-# 4. ็›ด็บฟๅ’Œๅๆ ‡่ฝด
-
-# 4.1. ็›ด็บฟ
-
-ๅฏไปฅๅœจๅ‘ฝไปคๆก†ไธญ่พ“ๅ…ฅโ€œๆ–น็จ‹ๅผโ€ๆˆ–โ€œๅ‚ๆ•ฐๅผโ€ๆฅ่กจ็คบ็›ด็บฟ๏ผŒๅœจ่ฟ™ไธค็งๆƒ…ๅ†ตไธ‹๏ผŒ่ขซไฝฟ็”จ็š„ๅ˜้‡ๅฟ…้กปๆ˜ฏๅทฒ็ปๅฎšไน‰็š„ๆ•ฐๅญ—ใ€็‚นๆˆ–ๅ‘้‡ใ€‚ๅฆ‚๏ผš
-
-่พ“ๅ…ฅ $\mathbf{g}$ ๏ผš $3\mathrm{x} + 4\mathrm{y} = 2$ ๏ผŒๅฏไปฅๅพ—ๅˆฐ็›ด็บฟ $\mathbf{g}$ ใ€‚
-
-ๅ…ˆๅฎšไน‰ๅ‚ๆ•ฐ $\mathrm{t}$ ๏ผˆๅฆ‚ $\mathrm{t} = 3$ ๏ผ‰ๅ†่พ“ๅ…ฅๅ‚ๆ•ฐๅผ $\mathbf{g} : \mathbf{X} = (-5, 5) + \mathrm{t}$ ๏ผˆ4๏ผŒ-3๏ผ‰ใ€‚
-
-ๅ…ˆๅฎšไน‰ๅ‚ๆ•ฐ $\mathrm{m} = 2$ ๅ’Œ $\mathrm{b} = -1$ ๏ผŒ็„ถๅŽ่พ“ๅ…ฅๆ–น็จ‹ๅผ $\mathrm{g} : \mathrm{y} = \mathrm{mx} + \mathrm{b}$ ใ€‚
-
-# 4.2. ๅๆ ‡่ฝด
-
-ๅœจๅ‘ฝไปคๆก†ไธญๅฏไปฅไฝฟ็”จxAxisๆˆ–yAxisๆฅๅฝ“ๅšๅๆ ‡่ฝด็š„ๅ็งฐใ€‚
-
-ๅฆ‚๏ผš่พ“ๅ…ฅๅ‘ฝไปค Perpendicular[A๏ผŒxAxis]ๅฏไปฅ็”ปๅ‡บ่ฟ‡็‚น A ไธ”ๅž‚็›ดไบŽ x ่ฝด็š„ๅž‚็›ด็บฟใ€‚
-
-# 5. ๅœ†้”ฅๆ›ฒ็บฟ
-
-ๅฏไปฅ็”จ $\mathbf{x}$ ๅ’Œ $\mathbf{y}$ ็š„ไบŒๅ…ƒไบŒๆฌกๆ–น็จ‹ๅผๆฅ่พ“ๅ…ฅๅœ†้”ฅๆ›ฒ็บฟ๏ผŒๅทฒ็ปๅฎšไน‰็š„ๅ˜้‡ๅฏไปฅ่ขซไฝฟ็”จๅœจๆ–น็จ‹ๅผไธญใ€‚ๅœ†้”ฅๆ›ฒ็บฟ็š„ๅ็งฐๅŠ ๅ†’ๅทๅŽ่พ“ๅ…ฅๆ–น็จ‹ๅผๅณๅฏใ€‚ๅฆ‚๏ผš
-
-<table><tr><td>ๆคญๅœ†</td><td>ell: 9x^2 + 16y^2 = 144</td></tr><tr><td>ๅŒๆ›ฒ็บฟ</td><td>hyp: 9x^2 - 16y^2 = 144</td></tr><tr><td>ๆŠ›็‰ฉ็บฟ</td><td>par: y^2 = 4x</td></tr><tr><td>ๅœ† c1</td><td>c1: x^2 + y^2 = 25</td></tr><tr><td>ๅœ† c2</td><td>c2: (x-5)^2 + (y+2)^2 = 25</td></tr></table>
-
-# 6. ๅ‡ฝๆ•ฐๅ’Œ่ฟ็ฎ—
-
-ๅฏไปฅไฝฟ็”จๅทฒ็ปๅฎšไน‰็š„ๅ˜้‡ๆˆ–ๅ‡ฝๆ•ฐ่พ“ๅ…ฅไธ€ไธชๆ–ฐ็š„ๅ‡ฝๆ•ฐใ€‚ๅฆ‚๏ผš
-
-ๅ‡ฝๆ•ฐf๏ผšf๏ผˆx๏ผ‰=3x^3-x^2
-
-ๅ‡ฝๆ•ฐ $\mathrm{g}$ ๏ผš $\mathrm{g}(\mathbf{x}) = \tan (\mathrm{f}(\mathbf{x}))$
-
-ๆœชๅ‘ฝๅ็š„ๅ‡ฝๆ•ฐ๏ผš $\sin (3x) + \tan (x)$
-
-ๅœจGeoGebraไธญๅฏไปฅไฝฟ็”จๅ‘ฝไปคๆฑ‚ๅ‡บๅ‡ฝๆ•ฐ็š„็งฏๅˆ†ๅ’Œๅพฎๅˆ†ใ€‚ๅฆ‚๏ผš
-
-ๅ…ˆๅฎšไน‰ๅ‡ฝๆ•ฐ $f(x) = 3x^3 - x^2$ ๏ผŒ็„ถๅŽ่พ“ๅ…ฅ $g(x) = \cos(f'(x + 2))$ ๅพ—ๅˆฐๅ‡ฝๆ•ฐ $g$ ใ€‚
-
-# 6.1. ๅธธ็”จๅ‡ฝๆ•ฐๅ’Œ่ฟ็ฎ—
-
-ๅปบ็ซ‹ๆ•ฐๅญ—ใ€ๅๆ ‡ๆˆ–ๆ–น็จ‹ๅผๆ—ถ๏ผŒๅฏไปฅๅˆฉ็”จไธ‹้ข็š„ๅธธ็”จๅ‡ฝๆ•ฐๅ’Œ่ฟ็ฎ—ใ€‚
-
-<table><tr><td>่ฟ็ฎ—</td><td>่พ“ๅ…ฅ</td></tr><tr><td>ๅŠ ๆณ•</td><td>+</td></tr><tr><td>ๅ‡ๆณ•</td><td>-</td></tr><tr><td>ไน˜ๆณ•</td><td>*ๆˆ–็ฉบๆ ผ้”ฎ</td></tr><tr><td>ๅ†…็งฏ</td><td>*ๆˆ–็ฉบๆ ผ้”ฎ</td></tr><tr><td>ๅคๆ•ฐไน˜ๆณ•</td><td>โŠ—</td></tr><tr><td>้™คๆณ•</td><td>/</td></tr><tr><td>ๆฌกๆ–น</td><td>^</td></tr><tr><td>้˜ถๅฑ‚</td><td>!</td></tr><tr><td>Gammaๅ‡ฝๆ•ฐ</td><td>gamma()</td></tr><tr><td>ๆ‹ฌๅท</td><td>()</td></tr><tr><td>่ฎก็ฎ—ๆŸ็‚น็š„xๅๆ ‡</td><td>x()</td></tr><tr><td>่ฎก็ฎ—ๆŸ็‚น็š„yๅๆ ‡</td><td>y()</td></tr><tr><td>็ปๅฏนๅ€ผ</td><td>abs()</td></tr><tr><td>ๆญฃ่ดŸๅท</td><td>sgn()</td></tr><tr><td>ๅนณๆ–นๆ น</td><td>sqrt()</td></tr><tr><td>็ซ‹ๆ–นๆ น</td><td>cbrt()</td></tr><tr><td>0ๅˆฐ1็š„้šๆœบๆ•ฐ</td><td>random()</td></tr><tr><td>ๆŒ‡ๆ•ฐๅ‡ฝๆ•ฐ</td><td>exp()</td></tr><tr><td>่‡ช็„ถๅฏนๆ•ฐ</td><td>ln()</td></tr><tr><td>ไปฅ2ไธบๅบ•็š„ๅฏนๆ•ฐ</td><td>ld()</td></tr><tr><td>ๅธธ็”จๅฏนๆ•ฐ</td><td>lg()</td></tr><tr><td>ไฝ™ๅผฆ</td><td>cos()</td></tr><tr><td>ๆญฃๅผฆ</td><td>sin()</td></tr><tr><td>ๆญฃๅˆ‡</td><td>tan()</td></tr><tr><td>ๅไฝ™ๅผฆ</td><td>acos()</td></tr><tr><td>ๅๆญฃๅผฆ</td><td>asin()</td></tr><tr><td>ๅๆญฃๅˆ‡</td><td>atan()</td></tr><tr><td>ๅฐไบŽ็ญ‰ไบŽ็š„ๆœ€ๅคงๆ•ดๆ•ฐ</td><td>floor()</td></tr><tr><td>ๅคงไบŽ็ญ‰ไบŽ็š„ๆœ€ๅฐๆ•ดๆ•ฐ</td><td>ceil()</td></tr><tr><td>่ฟ‘ไผผ๏ผˆๅ››่ˆไบ”ๅ…ฅ๏ผ‰</td><td>round()</td></tr></table>
-
-# 6.2. ๅธƒๆœ—่ฟ็ฎ—
-
-ๅœจGeoGebraไธญ๏ผŒๅฏไปฅไฝฟ็”จๅธƒๆœ—ๅ‡ฝๆ•ฐโ€œtrueโ€ๅ’Œโ€œfalseโ€ใ€‚ๅฆ‚๏ผšๅœจๅ‘ฝไปคๆก†ไธญ่พ“ๅ…ฅ $a = true$ ๆˆ–่€… $b = false$ ๅนถๆŒ‰ไธ‹Enter้”ฎใ€‚
-
-ๅœจ GeoGebra ไธญๅฏไปฅไฝฟ็”จไธ‹ๅˆ—ๅธƒๆœ—ๅ‡ฝๆ•ฐ็š„่ฟ็ฎ—ไธŽๆกไปถ๏ผŒ่€Œ่ฟ™ไบ›ๅ‘ฝไปคๅฏไปฅไปŽๅ‘ฝไปคๆก†ๅณไพง็š„ไธ‹ๆ‹‰่œๅ•ไธญ้€‰ๅ–๏ผŒๆˆ–่€…ไฝฟ็”จ้”ฎ็›˜่พ“ๅ…ฅ๏ผš
-
-<table><tr><td></td><td>่œๅ•้€‰ๆ‹ฉ</td><td>้”ฎ็›˜่พ“ๅ…ฅ</td><td>ไพ‹ๅญ</td><td>็ฑปๅž‹</td></tr><tr><td>็ญ‰ไบŽ</td><td>\(\underline{\underline{2}}\)</td><td>==</td><td>\(a^{\underline{2}}b\) ๆˆ– \(a= =b\)</td><td>ๆ•ฐๅ€ผใ€็‚นใ€็›ด็บฟใ€ๅœ†้”ฅๆ›ฒ็บฟ</td></tr><tr><td>ไธ็ญ‰ไบŽ</td><td>โ‰ </td><td>!=</td><td>\(a \neq b\) ๆˆ– \(a != b\)</td><td>ๆ•ฐๅ€ผใ€็‚นใ€็›ด็บฟใ€ๅœ†้”ฅๆ›ฒ็บฟ</td></tr><tr><td>ๅฐไบŽ</td><td>&lt;</td><td>&lt;</td><td>\(a &lt; b\)</td><td>ๆ•ฐๅ€ผ</td></tr><tr><td>ๅคงไบŽ</td><td>&gt;</td><td>&gt;</td><td>\(a &gt; b\)</td><td>ๆ•ฐๅ€ผ</td></tr><tr><td>ๅฐไบŽ็ญ‰ไบŽ</td><td>โ‰ค</td><td>&lt;=</td><td>\(a \leqslant b\) ๆˆ– \(a &lt;= b\)</td><td>ๆ•ฐๅ€ผ</td></tr><tr><td>ๅคงไบŽ็ญ‰ไบŽ</td><td>โ‰ฅ</td><td>&gt;=</td><td>\(a \geqslant b\) ๆˆ– \(a &gt;= b\)</td><td>ๆ•ฐๅ€ผ</td></tr><tr><td>ไธ”</td><td>โˆง</td><td>&amp;&amp;</td><td>\(a \land b\)</td><td>ๅธƒๆœ—ๅ‡ฝๆ•ฐ</td></tr><tr><td>ๆˆ–</td><td>โˆจ</td><td>||</td><td>\(a \lor b\)</td><td>ๅธƒๆœ—ๅ‡ฝๆ•ฐ</td></tr><tr><td>้ž</td><td>ยฌ</td><td>!</td><td>ยฌa ๆˆ– !a</td><td>ๅธƒๆœ—ๅ‡ฝๆ•ฐ</td></tr><tr><td>ๅนณ่กŒไบŽ</td><td>//</td><td></td><td>a // b</td><td>็›ด็บฟ</td></tr><tr><td>ๅž‚็›ดไบŽ</td><td>โŠฅ</td><td></td><td>aโŠฅb</td><td>็›ด็บฟ</td></tr></table>
-
-# 7. ๅฏน่ฑกๅˆ—่กจๅ’Œ่ฟ็ฎ—
-
-ๅฆ‚ๆžœ่ฆๅปบ็ซ‹ไธ€ไบ›ๅฏน่ฑก๏ผˆๅฆ‚๏ผš็‚นใ€็บฟๆฎตใ€ๅœ†๏ผ‰็š„ๅˆ—่กจ๏ผŒๅฏไปฅไฝฟ็”จๅคงๆ‹ฌๅทใ€‚ๅฆ‚๏ผš
-
-$\mathrm{L} = \{\mathrm{A},\mathrm{B},\mathrm{C}\}$ ไธบๅŒ…ๅซไธ‰็‚นA๏ผŒB๏ผŒC็š„ๅˆ—่กจ
-
-$\mathrm{L} = \{(0,0), (1,1), (2,2)\}$ ไธบๅŒ…ๅซไธ‰ไธชๆœชๅ‘ฝๅ็‚น็š„ๅˆ—่กจ
-
-# ใ€ๆฏ”่พƒๅฏน่ฑกๅˆ—่กจใ€‘
-
-ๆฏ”่พƒไธคไธชๅฏน่ฑกๅˆ—่กจ๏ผŒๅฏไปฅไฝฟ็”จไธ‹ๅˆ—่ฏญๆณ•็ป“ๆž„๏ผš
-
-list1 = list2: ๆฃ€ๆŸฅไธคไธชๅˆ—่กจๆ˜ฏๅฆ็›ธ็ญ‰ๅนถ่ฟ”ๅ›ž true ๆˆ– false
-
-list1 != list2: ๆฃ€ๆŸฅไธคไธชๅˆ—่กจๆ˜ฏๅฆไธ็›ธ็ญ‰ๅนถ่ฟ”ๅ›ž true ๆˆ– false
-
-# ใ€ๅˆ—่กจ็š„่ฟ็ฎ—ไธŽๅ‡ฝๆ•ฐใ€‘
-
-ๅฆ‚ๆžœๅœจๅˆ—่กจไธŠๆ‰ง่กŒ่ฟ็ฎ—ไธŽๅ‡ฝๆ•ฐ่ฟ็ฎ—๏ผŒๅฏไปฅๅพ—ๅˆฐไธ€ไธชๆ–ฐ็š„ๅˆ—่กจใ€‚
-
-# ๅŠ ๆณ•ไธŽๅ‡ๆณ•๏ผš
-
-- list1 + list2๏ผšๅฐ†ไธคๅˆ—่กจไธญๅฏนๅบ”็š„ๅ…ƒ็ด ็›ธๅŠ ๏ผŒไฝ†่ฆๆฑ‚ไธคๅˆ—่กจ็š„้•ฟๅบฆ็›ธๅŒใ€‚
-- list + number: ็”จๅˆ—่กจไธญ็š„ๆฏไธชๅ…ƒ็ด ๅŠ ไธŠๆŸไธชๆ•ฐใ€‚
-- list1 - list2๏ผš็ฌฌไธ€ไธชๅˆ—่กจๅ†…็š„ๅ…ƒ็ด ๅ‡ๅŽป็ฌฌไบŒไธชๅˆ—่กจๅ†…็š„็›ธๅบ”ๅ…ƒ็ด ๏ผŒไนŸ่ฆๆฑ‚ไธคๅˆ—่กจ็š„้•ฟๅบฆ็›ธๅŒใ€‚
-- list-number: ็”จๅˆ—่กจไธญ็š„ๆฏไธชๅ…ƒ็ด ๅ‡ๅŽปๆŸไธชๆ•ฐใ€‚
-
-# ไน˜ๆณ•ไธŽ้™คๆณ•๏ผš
-
-- list1 * list2: ๅฐ†ไธคๅˆ—่กจไธญๅฏนๅบ”็š„ๅ…ƒ็ด ็›ธไน˜ใ€‚่ฆๆฑ‚ไธคๅˆ—่กจ็š„้•ฟๅบฆ็›ธๅŒ๏ผŒๅฆ‚ๆžœๅˆ—่กจๅ†…ๅ…ƒ็ด ไธบ็Ÿฉ้˜ต๏ผŒๅˆ™่ฆ่ฟ›่กŒ็Ÿฉ้˜ตไน˜ๆณ•่ฟ็ฎ—ใ€‚
-- list * number: ็”จๅˆ—่กจๅ†…ๆฏไธชๅ…ƒ็ด ไน˜ไปฅๆŸไธชๆ•ฐใ€‚
-- list1 / list2๏ผš็ฌฌไธ€ไธชๅˆ—่กจๅ†…็š„ๅ…ƒ็ด ้™คไปฅ็ฌฌไบŒๆฌกๅˆ—่กจๅ†…ๅฏนๅบ”็š„ๅ…ƒ็ด ๏ผŒไนŸ่ฆๆฑ‚ไธคๅˆ—่กจ็š„้•ฟๅบฆ็›ธๅŒใ€‚
-- list / number: ็”จๅˆ—่กจไธญๆฏไธชๅ…ƒ็ด ้™คไปฅๆŸไธชๆ•ฐใ€‚
-- number/list๏ผš็”จๆญคๆ•ฐ้™คไปฅๅˆ—่กจๅ†…็š„ๆฏไธชๅ…ƒ็ด ใ€‚
-
-# ๅ…ถไป–๏ผš
-
-- list^2๏ผšๅฐ†ๅˆ—่กจๅ†…ๆฏไธชๅ…ƒ็ด ๅนณๆ–นใ€‚
-- sin(list)๏ผšๅˆ—่กจๅ†…ๆฏไธชๅ…ƒ็ด ๅŽปsinๅ‡ฝๆ•ฐใ€‚
-
-# 8. ็Ÿฉ้˜ตไธŽ่ฟ็ฎ—
-
-GeoGebra ไนŸ่ƒฝไฝฟ็”จ็Ÿฉ้˜ต๏ผŒ็”จ็Ÿฉ้˜ต็š„ๆฏไธ€่กŒ่กจ็คบใ€‚ๅฆ‚๏ผš
-
-ๅœจ GeoGebra ไธญ๏ผŒ $\{\{1,2,3\}, \{4,5,6\}, \{7,8,9\}\}$ ่กจ็คบ็Ÿฉ้˜ต $\left\{ \begin{array}{lll} 1 & 2 & 3 \\ 4 & 5 & 6 \\ 7 & 8 & 9 \end{array} \right\}$
-
-# ใ€่กŒๅˆ—ๅผใ€‘
-
-Determinant[Matrix]: ่ฎก็ฎ—็Ÿฉ้˜ต่กŒๅˆ—ๅผ็š„ๅ€ผใ€‚
-
-# ใ€้€†็Ÿฉ้˜ตใ€‘
-
-Invert[Matrix]: ๅพ—ๅˆฐ็Ÿฉ้˜ต็š„้€†็Ÿฉ้˜ตใ€‚
-
-# ใ€่ฝฌ็ฝฎ็Ÿฉ้˜ตใ€‘
-
-Transpose[Matrix]: ๅพ—ๅˆฐ็Ÿฉ้˜ต็š„่ฝฌ็ฝฎ็Ÿฉ้˜ตใ€‚
-
-# ใ€็Ÿฉ้˜ต่ฟ็ฎ—ใ€‘
-
-# ๅŠ ๆณ•ๅ’Œๅ‡ๆณ•๏ผš
-
-- Matrix1 + Matrix2๏ผšไธคไธช็›ธๅŒๅคงๅฐ็š„็Ÿฉ้˜ตๅฏนๅบ”ไฝ็ฝฎ็›ธๅŠ ใ€‚
-- Matrix1 - Matrix2๏ผšไธคไธช็›ธๅŒๅคงๅฐ็š„็Ÿฉ้˜ตๅฏนๅบ”ไฝ็ฝฎ็›ธๅ‡ใ€‚
-
-ไน˜ๆณ•:
-
-- Matrix * Number: ๅœจ็Ÿฉ้˜ต็š„ๆฏไธชๅ…ƒ็ด ไธŠไน˜ไปฅๆŸไธชๆ•ฐใ€‚
-- Matrix1 * Matrix2: ไฝฟ็”จ็Ÿฉ้˜ตไน˜ๆณ•ๆฑ‚ๅ‡บๆ–ฐ็š„็Ÿฉ้˜ตใ€‚็ฌฌไธ€ไธช็Ÿฉ้˜ต็š„ๅˆ—ๆ•ฐๅฟ…้กปไธŽ็ฌฌไบŒไธช็Ÿฉ้˜ต็š„่กŒๆ•ฐ็›ธ็ญ‰ใ€‚ๅฆ‚๏ผš
-
-่พ“ๅ…ฅ{1,2,3}, {4,5,6}, {7,8,9}]*{1,2,3}, {4,5,6}, {7,8,9}ๅพ—ๅˆฐ{30,36,42}, {66,81,96}, {102,126,150}ใ€‚
-
-- $2 \times 2$ Matrix * Point๏ผˆๆˆ–ๅ‘้‡๏ผ‰๏ผš็Ÿฉ้˜ตไน˜ไปฅๆŸไธ€็‚นๆˆ–ๅ‘้‡๏ผŒๅฐ†ๅพ—ๅˆฐไธ€ไธชๆ–ฐ็š„็‚นใ€‚ๅฆ‚๏ผš่พ“ๅ…ฅ\{\{1,2\}, \{3,4\}\}*(3,4)ๅพ—ๅˆฐA=(11,25)ใ€‚
-- $3 \times 3$ Matrix * Point๏ผˆๆˆ–ๅ‘้‡๏ผ‰๏ผš็Ÿฉ้˜ตไน˜ไปฅๆŸไธ€็‚นๆˆ–ๅ‘้‡๏ผŒๅฐ†ๅพ—ๅˆฐไธ€ไธชๆ–ฐ็š„็‚นใ€‚ๅฆ‚๏ผš่พ“ๅ…ฅ\{\{1,2,3\}, \{4,5,6\}, \{0,0,1\}\}^* (1,2)ๅพ—ๅˆฐA=(8,20)ใ€‚
-
-ๅ…ถไป–๏ผš
-
-- Determinant[Matrix]: ่ฎก็ฎ—็Ÿฉ้˜ต็š„่กŒๅˆ—ๅผ็š„ๅ€ผใ€‚
-- Invert[Matrix]: ็ป™ๅ‡บ็Ÿฉ้˜ต็š„้€†็Ÿฉ้˜ตใ€‚
-- Transpose[Matrix]: ็ป™ๅ‡บ็Ÿฉ้˜ต็š„่ฝฌ็ฝฎ็Ÿฉ้˜ตใ€‚
-
-# 9. ๅคๆ•ฐไธŽ่ฟ็ฎ—
-
-GeoGebraไธ่ƒฝ็›ดๆŽฅๆ”ฏๆŒๅคๆ•ฐ๏ผŒไฝ†ๅฏไปฅไฝฟ็”จ็‚นๆฅๆจกๆ‹Ÿๅคๆ•ฐ่ฟ็ฎ—ใ€‚ๅฆ‚๏ผš
-
-ๅœจๅ‘ฝไปคๆก†่พ“ๅ…ฅๅคๆ•ฐ $3 + 4\mathrm{i}$ ๏ผŒๅœจ็ป˜ๅ›พๅŒบๅฏไปฅๅพ—ๅˆฐไธ€ไธช็‚น๏ผˆ3,4๏ผ‰๏ผŒ่ฏฅ็‚น็š„ๅๆ ‡ๅœจไปฃๆ•ฐๅŒบๆ˜พ็คบไธบ $\mathrm{z} = 3 + 4\mathrm{i}$ ใ€‚ๅœจไปฃๆ•ฐๅŒบไธญไปปไฝ•็‚นๅฏไปฅไปฅๅคๆ•ฐๅฝขๅผๆ˜พ็คบ๏ผŒๅœจโ€œๅฑžๆ€งโ€ไธญ็š„โ€œไปฃๆ•ฐโ€้€‰้กนๅกไธญๅฏไปฅ้€‰ๆ‹ฉๅคๆ•ฐๅฝขๅผใ€‚
-
-![](images/beb2dd79d59d9e7f78e6a5717d151498e8f66ee462cba4d01caa701068658943.jpg)
-
-ๅฆ‚ๆžœๅคๆ•ฐiๆœช่ขซๅฎšไน‰๏ผŒGeoGebraๅฐ†่ขซ่ฎคๅฎšไธบๆœ‰ๅบๆ•ฐๅฏน $\mathrm{i} = (0,1)$ ๆˆ–่€…ๅคๆ•ฐ $0 + 1\mathrm{i}$ ใ€‚ไนŸๅฐฑๆ˜ฏ่ฏด๏ผŒๅฏไปฅๅœจๅ‘ฝไปคๆก†่พ“ๅ…ฅiไฝœไธบๅคๆ•ฐๅ•ไฝใ€‚
-
-# ๅŠ ๆณ•ๅ’Œๅ‡ๆณ•๏ผš
-
-$\cdot (2,1) + (1, - 2)$ ็ญ‰ไปทไบŽ $(2 + 1\mathrm{i}) + (1 - 2\mathrm{i})$ ๅนถๅพ—ๅˆฐๅคๆ•ฐ๏ผˆ3๏ผŒ-1๏ผ‰ไนŸๅฏไปฅๆ˜พ็คบไธบ3-1i
-- (2,1) - (1, -2) ็ญ‰ไปทไบŽ $(2 + 1\mathrm{i}) - (1 - 2\mathrm{i})$ ๅนถๅพ—ๅˆฐๅคๆ•ฐ๏ผˆ1,3๏ผ‰ไนŸๅฏไปฅๆ˜พ็คบไธบ 1-3i
-
-# ไน˜ๆณ•ๅ’Œ้™คๆณ•๏ผš
-
-- (2,1) * (1, -2) ็ญ‰ไปทไบŽ $(2 + 1\mathrm{i}) * (1 - 2\mathrm{i})$ ๅนถๅพ—ๅˆฐๅคๆ•ฐ๏ผˆ4๏ผŒ-3๏ผ‰ไนŸๅฏไปฅๆ˜พ็คบไธบ 4-3i
-- (2,1)/(1,-2)็ญ‰ไปทไบŽ(2+1i)/(1-2i)ๅนถๅพ—ๅˆฐๅคๆ•ฐ(0,1)ไนŸๅฏไปฅๆ˜พ็คบไธบ $0 + 1\mathrm{i}$
-
-# ๅ…ถไป–๏ผš
-
-- $3+$ (4,5) ็ญ‰ไปทไบŽ $3+$ (4+5i) ๅนถๅพ—ๅˆฐๅคๆ•ฐ (7,5) ๆˆ– $7+5\mathrm{i}$
-- 3-(4,5) ็ญ‰ไปทไบŽ 3-(4+5i) ๅนถๅพ—ๅˆฐๅคๆ•ฐ (-1,-5) ๆˆ– -1-5i
-- 3/๏ผˆ0,1๏ผ‰็ญ‰ไปทไบŽ $3 / (0 + 1\mathrm{i})$ ๅนถๅพ—ๅˆฐๅคๆ•ฐ๏ผˆ0,-3๏ผ‰ๆˆ–0-3i
-
-- $3^{*}$ (1,2๏ผ‰็ญ‰ไปทไบŽ $3^{*}(1 + 2\mathrm{i})$ ๅนถๅพ—ๅˆฐๅคๆ•ฐ๏ผˆ3,6๏ผ‰ๆˆ–3-6i
-
-# ็ฌฌไบ”็ซ  ๅ‘ฝไปค่พ“ๅ…ฅ
-
-ไฝฟ็”จๅ‘ฝไปคๅฏไปฅ็”Ÿๆˆๆ–ฐๅฏน่ฑกๆˆ–่€…ไฟฎๆ”นๅทฒๆœ‰ๅฏน่ฑกใ€‚
-
-ๅฝ“ๅœจ GeoGebra ็š„ๅ‘ฝไปคๆก†ไธญ่พ“ๅ…ฅๅ‘ฝไปค๏ผŒ่ฝฏไปถไผšๅฐ่ฏ•็€่‡ชๅŠจ่กฅ้ฝๅ‘ฝไปค๏ผŒไนŸๅฐฑๆ˜ฏ่ฏด๏ผŒๅœจๅ‘ฝไปคๆก†ไธญๅช่ฆ่พ“ๅ…ฅๅ‘ฝไปค็š„ๅ‰ไธคไธชๅญ—็ฌฆ๏ผŒGeoGebra ไผšๆ˜พ็คบๆœ€็›ธ่ฟ‘็š„ๅ‘ฝไปค๏ผˆ็ฑปไผผไบŽ่พ“ๅ…ฅๆณ•็š„่”ๆƒณๅŠŸ่ƒฝ๏ผ‰๏ผš
-
-ๅฆ‚ๆžœๆ็คบ็š„ๅ‘ฝไปคๅˆšๅฅฝๆ˜ฏๆƒณ่พ“ๅ…ฅ็š„๏ผŒๅช้œ€ๆŒ‰ไธ‹Enter้”ฎ๏ผŒๅณๅฏๆŽฅๅ—ๅปบ่ฎฎๅฐ†ๆ็คบ็š„ๅ‘ฝไปค่พ“ๅ…ฅๅ‘ฝไปคๆก†๏ผ›
-
-ๅฆ‚ๆžœๆ็คบ็š„ๅ‘ฝไปคๅนถไธๆ˜ฏๆƒณ่พ“ๅ…ฅ็š„๏ผŒๅฏไปฅ็ปง็ปญ่พ“ๅ…ฅ๏ผŒGeoGebraไผšๅ†ๆ็คบๅ…ถไป–็›ธ่ฟ‘็š„ๅ‘ฝไปคใ€‚
-
-# 1. ไธ€่ˆฌๅ‘ฝไปค
-
-# ใ€็ป˜ๅ›พๆญฅ้ชคใ€‘
-
-ConstructionStep[]๏ผš่ฟ”ๅ›ž็›ฎๅ‰็š„ๆญฅ้ชคๆ•ฐ
-
-ConstructionStep[Object]: ่ฟ”ๅ›žๆŒ‡ๅฎšๅฏน่ฑก็›ฎๅ‰็š„ๆญฅ้ชคๆ•ฐ
-
-# ใ€ๅˆ ้™คใ€‘
-
-Delete[Object]: ๅˆ ้™คๆŸไธ€ๅฏน่ฑกไปฅๅŠๆ‰€ๆœ‰ไธŽไน‹็›ธๅ…ณ็š„ๅฏน่ฑก
-
-# ใ€ๅ…ณ็ณปใ€‘
-
-Relation[Object a, Object b]: ๆ˜พ็คบไธ€ไธช็ช—ๅฃ่ฎฉๆˆ‘ไปฌๅพ—็Ÿฅ Object a ๅ’Œ Object b ไน‹้—ด็š„ๅ…ณ็ณปใ€‚
-
-ๅฆ‚๏ผš่ฏฅๅ‘ฝไปคๅฏไปฅ็Ÿฅ้“ๆ˜ฏๅฆไธ€็‚นๅœจไธ€ๆก็›ด็บฟไธŠ๏ผˆๆˆ–ไธ€ๆกๅœ†้”ฅๆ›ฒ็บฟไธŠ๏ผ‰ใ€ไธ€็›ด็บฟๆ˜ฏไธŽไธ€ๅœ†้”ฅๆ›ฒ็บฟ็›ธๅˆ‡ใ€ไธ€็›ด็บฟๆ˜ฏๅฆไธŽไธ€ๅœ†้”ฅๆ›ฒ็บฟ็›ธไบคๆˆ–ไธคๅฏน่ฑกๆ˜ฏๅฆ็›ธ็ญ‰ใ€‚
-
-# 2. ๆ•ฐๅ€ผ
-
-# ใ€ไปฟๅฐ„ๆฏ”ใ€‘
-
-AffineRatio[Point A, Point B, Point C]: ๅพ—ๅ‡บๅ…ฑ็บฟ็š„ไธ‰็‚น A, B, C ็š„ๆฏ”ๅ€ผ $\lambda$ , ๅ…ถไธญ $C = A + \lambda * AB$ ใ€‚
-
-# ใ€้ข็งฏใ€‘
-
-Area[Point A, Point B, Point C, ...]: ่ฎก็ฎ—็‚นA๏ผŒB๏ผŒC๏ผŒโ€ฆโ€ฆๆ‰€ๅ›ดๆˆ็š„ๅคš่พนๅฝข้ข็งฏใ€‚
-
-Area[Conic c]: ่ฎก็ฎ—ๅœ†้”ฅๆ›ฒ็บฟ $c$ ็š„้ข็งฏใ€‚
-
-# ใ€ๅๆ ‡่ฝดใ€‘
-
-AxisStepX[]๏ผšๅพ—ๅˆฐๅฝ“ๅ‰X่ฝดๅ•ไฝๅ’Œๆ•ฐๅ€ผใ€‚
-
-AxisStepY[]๏ผšๅพ—ๅˆฐๅฝ“ๅ‰ Y ่ฝดๅ•ไฝๅ’Œๆ•ฐๅ€ผใ€‚
-
-# ใ€ไบŒ้กนๅผ็ณปๆ•ฐใ€‘
-
-BinomialCoefficient[Number n, Number r]: ่ฎก็ฎ—โ€œn้€‰rโ€็š„ไบŒ้กนๅผ็ณปๆ•ฐใ€‚
-
-# ใ€ๅ‘จ้•ฟใ€‘
-
-Circumference[Conic]: ่ฎก็ฎ—ๅœ†้”ฅๆ›ฒ็บฟ็š„ๅ‘จ้•ฟใ€‚
-
-# ใ€ไบคๆฏ”ใ€‘
-
-CrossRatio[Point A, Point B, Point C, Point D]: ่ฎก็ฎ—ๅ…ฑ็บฟ็š„ๅ››็‚น A, B, C, D ็š„ไบคๆฏ”ไธบ $\lambda$ ใ€‚ $\lambda = \text{AffineRatio}[\text{B}, \text{C}, \text{D}] / \text{AffineRatio}[\text{A}, \text{C}, \text{D}]$ ใ€‚
-
-# ใ€ๆ›ฒ็އใ€‘
-
-Curvature[Point, Function]: ่ฎก็ฎ—ๅ‡ฝๆ•ฐๅœจๅˆถๅฎš็‚น็š„ๆ›ฒ็އใ€‚
-
-Curvature[Point, Curve]: ่ฎก็ฎ—ๆ›ฒ็บฟๅœจๆŒ‡ๅฎš็‚น็š„ๆ›ฒ็އใ€‚
-
-# ใ€่ท็ฆปใ€‘
-
-Distance[Point A, Point B]: ่ฎก็ฎ—ไธค็‚นAๅ’ŒBไน‹้—ด็š„่ท็ฆปใ€‚
-
-Distance[Point, Line]: ่ฎก็ฎ—็‚นๅ’Œ็บฟไน‹้—ด็š„่ท็ฆปใ€‚
-
-Distance[Line g, Line h]: ่ฎก็ฎ—ไธค็›ด็บฟ $\mathbf{g}$ ๅ’Œ $\mathbf{h}$ ไน‹้—ด็š„่ท็ฆปใ€‚
-
-# ใ€่ฝด้•ฟใ€‘
-
-FirstAxisLength[Conic]๏ผš่ฎก็ฎ—ๅœ†้”ฅๆ›ฒ็บฟไธป่ฝด็š„้•ฟๅบฆใ€‚ๅฆ‚๏ผšๆคญๅœ†ไธญๆ˜ฏ้•ฟ่ฝด็š„ไธ€ๅŠใ€‚
-
-SecondAxisLength[Conic]๏ผš่ฎก็ฎ—ๅœ†้”ฅๆ›ฒ็บฟๅ‰ฏ่ฝด็š„้•ฟๅบฆใ€‚ๅฆ‚๏ผšๆคญๅœ†ไธญๆ˜ฏ็Ÿญ่ฝด็š„ไธ€ๅŠใ€‚
-
-# ใ€ๆœ€ๅคงๅ…ฌๅ› ๆ•ฐใ€‘
-
-GCD[Number a, Number b]: ่ฎก็ฎ—ไธคไธชๆ•ฐๅญ— a ๅ’Œ b ็š„ๆœ€ๅคงๅ…ฌๅ› ๆ•ฐใ€‚
-
-GCD[List of numbers]: ่ฎก็ฎ—ๆ•ฐๅˆ—็š„ๆœ€ๅคงๅ…ฌๅ› ๆ•ฐใ€‚
-
-# ใ€ๆœ€ๅฐๅ…ฌๅ€ๆ•ฐใ€‘
-
-LCM[Number a, Number b]: ่ฎก็ฎ—ไธคไธชๆ•ฐๅญ— a ๅ’Œ b ็š„ๆœ€ๅฐๅ…ฌๅ€ๆ•ฐใ€‚
-
-LCM[List of numbers]: ่ฎก็ฎ—ๆ•ฐๅˆ—็š„ๆœ€ๅฐๅ…ฌๅ€ๆ•ฐใ€‚
-
-# ใ€ๆ•ด้™คใ€‘
-
-Div[Number a, Number b]: ่ฎก็ฎ—ๆ•ฐๅญ— a ้™ค b ็š„ๅ•†ใ€‚
-
-# ใ€็งฏๅˆ†ใ€‘
-
-Integral[Function, Number a, Number b]: ่ฎก็ฎ—ๆŸๅ‡ฝๆ•ฐๅœจ[a,b]็š„็งฏๅˆ†ใ€‚
-
-Integral[Function f, Function g, Number a, Number b]: ่ฎก็ฎ—ๅœจๅŒบ้—ด[a,b]ไธŠ๏ผŒf(x)-g(x)็š„็งฏๅˆ†ใ€‚
-
-# ใ€่ฟญไปฃใ€‘
-
-Iteration[Function, Number x0, Number n]: ็ป™ๅฎš่ตทๅง‹ๅ€ผ x0๏ผŒ้‡ๅคๅธฆๅ…ฅ f ๅ‡ฝๆ•ฐ n ๆฌกใ€‚ๅฆ‚๏ผšๅฎšไน‰ $f(x) = x^{\wedge}2$ ๏ผŒ่พ“ๅ…ฅๅ‘ฝไปค Iteration[f, 3, 2] ๅฐฑๅฏไปฅๅพ—ๅˆฐ็ป“ๆžœ 81ใ€‚
-
-# ใ€้•ฟๅบฆใ€‘
-
-Length[Vector]: ่ฎก็ฎ—ๅ‘้‡็š„้•ฟๅบฆใ€‚
-
-Length[Point A]: ่ฎก็ฎ—ๅŽŸ็‚นๅˆฐ็‚น A ็š„้•ฟๅบฆใ€‚
-
-Length[Function, Number x1, Number x2]: ่ฎก็ฎ—ๅ‡ฝๆ•ฐ f ไปŽ x1 ๅˆฐ x2 ไน‹้—ด็š„้•ฟๅบฆใ€‚
-
-Length[Function, Point A, Point B]: ่ฎก็ฎ—ๅ‡ฝๆ•ฐ f ไปŽ็‚น A ๅˆฐ็‚น B ไน‹้—ด็š„้•ฟๅบฆใ€‚ๅฆ‚ๆžœ็ป™ๅฎš็š„
-
-็‚นไธๅœจๅ‡ฝๆ•ฐๅ›พๅƒไธŠ๏ผŒ้‚ฃไนˆๅฐ†ไปฅ็‚น็š„ $x$ ๅๆ ‡ไฝœไธบๅŒบ้—ดใ€‚
-
-Length[Curve, Number t1, Number t2]: ่ฎก็ฎ—ๆ›ฒ็บฟๅœจๅ‚ๆ•ฐ t1 ๅˆฐ t2 ไน‹้—ด็š„้•ฟๅบฆใ€‚
-
-Length[Curve c, Point A, Point B]: ่ฎก็ฎ—ๆ›ฒ็บฟcๅœจ็‚นAๅ’ŒBไน‹้—ด็š„ๆ›ฒ็บฟ้•ฟๅบฆใ€‚
-
-Length[List]๏ผš่ฎก็ฎ—ๅˆ—่กจ็š„้•ฟๅบฆ๏ผˆๅˆ—่กจ็š„ๅ…ƒ็ด ไธชๆ•ฐ๏ผ‰ใ€‚
-
-# ใ€็ฆปๅฟƒ็އใ€‘
-
-LinearEccentricity[Conic]: ่ฎก็ฎ—ๅœ†้”ฅๆ›ฒ็บฟ็š„็ฆปๅฟƒ็އใ€‚
-
-# ใ€ๆœ€ๅคงๅ€ผใ€ๆœ€ๅฐๅ€ผใ€‘
-
-Min[Number a, Number b]: ๆฑ‚ a ๅ’Œ b ไธญ็š„ๅฐ่€…ใ€‚
-
-Max[Number a, Number b]: ๆฑ‚ a ๅ’Œ b ไธญ็š„ๅคง่€…ใ€‚
-
-# ใ€ไฝ™ๆ•ฐใ€‘
-
-Mod[Integers a, Integers b]: ่ฎก็ฎ— a ้™คไปฅ b ็š„ไฝ™ๆ•ฐใ€‚
-
-# ใ€ๅ‚ๆ•ฐใ€‘
-
-Parameter[Parabola]: ่ฎก็ฎ—ๆŠ›็‰ฉ็บฟ $p$ ็š„ๅ‚ๆ•ฐ๏ผˆๅ‡†็บฟๅ’Œ็„ฆ็‚น้—ด็š„่ท็ฆป๏ผ‰ใ€‚
-
-# ใ€ๅ‘จ้•ฟใ€‘
-
-Perimeter[Polygon]: ่ฎก็ฎ—ๅคš่พนๅฝขๅ‘จ้•ฟใ€‚
-
-# ใ€ๅŠๅพ„ใ€‘
-
-Radius[Circle]: ่ฎก็ฎ—ๅœ† $c$ ็š„ๅŠๅพ„ใ€‚
-
-# ใ€้šๆœบๆ•ฐใ€‘
-
-RandomBetween[Min integer, Max integer]: ๅœจๆœ€ๅคงๅ€ผๅ’Œๆœ€ๅฐๅ€ผ็›ดๆŽฅไบง็”Ÿ้šๆœบๆ•ฐใ€‚
-
-RandomBinomial[Number n of trials, Probability p]: ไฝฟ็”จไบŒ้กนๅˆ†ๅธƒไบง็”Ÿ้šๆœบๆ•ฐใ€‚
-
-RandomNormal[Mean, Standard deviation]: ไฝฟ็”จๆญฃๆ€ๅˆ†ๅธƒไบง็”Ÿ้šๆœบๆ•ฐใ€‚
-
-RandomPoisson[Mean]๏ผšไฝฟ็”จๆณŠๆพๅˆ†ๅธƒไบง็”Ÿ้šๆœบๆ•ฐใ€‚
-
-# ใ€ๆ–œ็އใ€‘
-
-Slope[Line]: ่ฎก็ฎ—็ป™ๅฎš็›ด็บฟ็š„ๆ–œ็އใ€‚
-
-# 3.่ง’
-
-Angle[Vector v1, Vector v2]: ่ฎก็ฎ—ไธคๅ‘้‡ v1 ๅ’Œ v2 ไน‹้—ด็š„ๅคน่ง’ใ€‚
-
-Angle[Line g, Line h]: ่ฎก็ฎ—ไธค็›ด็บฟ $\mathbf{g}$ ๅ’Œ $\mathrm{h}$ ๆ–นๅ‘ๅ‘้‡ไน‹้—ด็š„ๅคน่ง’ใ€‚
-
-Angle[Point A, Point B, Point C]: ไปฅBไธบ้กถ็‚น๏ผŒ่ฎก็ฎ—BAๅ’ŒBCไน‹้—ด็š„ๅคน่ง’ใ€‚
-
-Angle[Point A, Point B, Angle $\alpha$ ]๏ผšไปฅ็บฟๆฎต AB ไธบๅง‹่พน๏ผŒ็”ปๅ‡บๅคงๅฐไธบ $\alpha$ ็š„่ง’ใ€‚
-
-Angle[Conic]: ่ฎก็ฎ—ๅœ†้”ฅๆ›ฒ็บฟ c ไธป่ฝด็š„่ฝฌ่ง’ใ€‚
-
-Angle[Vector]: ่ฎก็ฎ— $\mathbf{X}$ ่ฝดๅˆฐๅ‘้‡ $\mathbf{v}$ ไน‹้—ด็š„ๅคน่ง’ใ€‚
-
-Angle[Point]: ่ฎก็ฎ— $\mathbf{x}$ ่ฝดๅˆฐ็‚นAไน‹้—ด็š„ๅคน่ง’ใ€‚
-
-Angle[Number]: ๅฐ†ไธ€ไธชๆ•ฐๅญ— n ่ฝฌๆขๆˆๅผงๅบฆ๏ผˆไป‹ไบŽ 0 ๅˆฐ 2pi ไน‹้—ด๏ผ‰ใ€‚
-
-Angle[Polygon]: ๅปบ็ซ‹ๅคš่พนๅฝข $p$ ็š„ๆ‰€ๆœ‰ๅ†…่ง’ใ€‚ๅฆ‚ๆžœๅคš่พนๅฝขๆ˜ฏไปฅ้€†ๆ—ถ้’ˆๆ–นๅ‘้€‰ๅ–๏ผŒๅฏไปฅๅพ—ๅˆฐๅ†…่ง’ๅ’Œใ€‚ๅฆ‚ๆžœๅคš่พนๅฝขๆ˜ฏ้กบๆ—ถ้’ˆๆ–นๅ‘้€‰ๅ–๏ผŒๅฏไปฅๅพ—ๅˆฐๅค–่ง’ๅ’Œใ€‚
-
-# 4. ็‚น
-
-# ใ€ไธญๅฟƒ็‚นใ€‘
-
-Center[Conic]: ่ฎก็ฎ—ๅœ†้”ฅๆ›ฒ็บฟ็š„ไธญๅฟƒ็‚นใ€‚
-
-# ใ€้‡ๅฟƒใ€‘
-
-Centroid[Polygon]: ่ฎก็ฎ—ๅคš่พนๅฝข $\mathfrak{p}$ ็š„้‡ๅฟƒใ€‚
-
-# ใ€ๆžๅ€ผใ€‘
-
-Extremum[Polynomial]: ่ฎก็ฎ—ๅคš้กนๅผๅ‡ฝๆ•ฐๅ›พๅƒไธŠ็š„ๅฑ€้ƒจๆžๅ€ผใ€‚
-
-# ใ€็„ฆ็‚นใ€‘
-
-Focus[Conic]: ๅพ—ๅˆฐๅœ†้”ฅๆ›ฒ็บฟ $c$ ็š„็„ฆ็‚นใ€‚
-
-# ใ€ๆ‹็‚นใ€‘
-
-InflectionPoint[Polynomial]: ่ฎก็ฎ—ๅคš้กนๅผ $f$ ็š„ๆ‰€ๆœ‰ๆ‹็‚นใ€‚
-
-# ใ€ไบค็‚นใ€‘
-
-Intersect[Line g, Line h]: ่ฎก็ฎ—็›ด็บฟ $\mathbf{g}$ ๅ’Œ $\mathbf{h}$ ็š„ไบค็‚นใ€‚
-
-Intersect[Line, Conic]: ่ฎก็ฎ—็›ด็บฟ $\mathbf{g}$ ๅ’Œๅœ†้”ฅๆ›ฒ็บฟ $\mathbf{c}$ ็š„ๆ‰€ๆœ‰ไบค็‚นใ€‚
-
-Intersect[Line, Conic, Number n]: ่ฎก็ฎ—็›ด็บฟ $\mathbf{g}$ ๅ’Œๅœ†้”ฅๆ›ฒ็บฟ $\mathbf{c}$ ็š„็ฌฌ $\mathbf{n}$ ไธชไบค็‚นใ€‚
-
-Intersect[Conic c1, Conic c2]: ่ฎก็ฎ—ไธคๅœ†้”ฅๆ›ฒ็บฟ c ๅ’Œ d ็š„ๆ‰€ๆœ‰ไบค็‚นใ€‚
-
-Intersect[Conic c1, Conic c2, Number n]: ่ฎก็ฎ—ไธคๅœ†้”ฅๆ›ฒ็บฟ c ๅ’Œ d ็š„็ฌฌ n ไธชไบค็‚นใ€‚
-
-Intersect[Polynomial f1, Polynomial f2]: ่ฎก็ฎ—ๅคš้กนๅผf1ๅ’Œๅคš้กนๅผf2็š„ๆ‰€ๆœ‰ไบค็‚นใ€‚
-
-Intersect[Polynomial f1, Polynomial f2, Number n]: ่ฎก็ฎ—ๅคš้กนๅผ f1 ๅ’Œๅคš้กนๅผ f2 ็š„็ฌฌ n ไธชไบค็‚นใ€‚
-
-Intersect[Polynomial, Line]: ่ฎก็ฎ—ๅคš้กนๅผ $f$ ๅ’Œ็›ด็บฟ $g$ ็š„ๆ‰€ๆœ‰ไบค็‚นใ€‚
-
-Intersect[Polynomial, Line, Number n]: ่ฎก็ฎ—ๅคš้กนๅผ $f$ ๅ’Œ็›ด็บฟ $g$ ็š„็ฌฌ $n$ ไธชไบค็‚นใ€‚
-
-Intersect[Function f, Function g, Point A]: ่ฎก็ฎ—ๅ‡ฝๆ•ฐ $\mathrm{f}$ ๅ’Œ $\mathrm{g}$ ๅœจ่ตทๅง‹็‚น $\mathrm{A}$ ็š„ๆ‰€ๆœ‰ไบค็‚นใ€‚
-
-Intersect[Function, Line, Point A]: ่ฎก็ฎ—ๅ‡ฝๆ•ฐ f ๅ’Œ็›ด็บฟ g ๅœจ่ตทๅง‹็‚น A ็š„ๆ‰€ๆœ‰ไบค็‚นใ€‚
-
-# ใ€ไธญ็‚นใ€‘
-
-Midpoint[Point A, Point B]: ่ฎก็ฎ—็‚นAๅ’ŒB็š„ไธญ็‚นใ€‚
-
-Midpoint[Segment]: ่ฎก็ฎ—็บฟๆฎต s ็š„ไธญ็‚นใ€‚
-
-# ใ€็‚นใ€‘
-
-Point[Line]: ๅพ—ๅˆฐ็›ด็บฟไธŠไธ€็‚นใ€‚
-
-Point[Conic]: ๅพ—ๅˆฐๅœ†้”ฅๆ›ฒ็บฟไธŠไธ€็‚นใ€‚
-
-Point[Function]: ๅพ—ๅˆฐๅ‡ฝๆ•ฐ $f$ ไธŠไธ€็‚นใ€‚
-
-Point[Polygon]: ๅพ—ๅˆฐๅคš่พนๅฝข $p$ ไธŠไธ€็‚นใ€‚
-
-Point[Vector]: ๅพ—ๅˆฐๅ‘้‡ $\mathbf{v}$ ไธŠไธ€็‚นใ€‚
-
-Point[Point, Vector]: ๅพ—ๅˆฐไปŽ P ็‚นๅนณ็งปๅ‘้‡ v ไน‹ๅŽ็š„็‚นใ€‚
-
-# ใ€ๆ นใ€‘
-
-Root[Polynomial]: ๅพ—ๅˆฐๅคš้กนๅผ็š„ๆ‰€ๆœ‰ๆ นใ€‚
-
-Root[Function, Number a]: ๅพ—ๅˆฐๅ‡ฝๆ•ฐ f ๅœจ่ตทๅง‹ๅ€ผ a ็š„ไธ€ไธชๆ นใ€‚
-
-Root[Function, Number a, Number b]: ๅพ—ๅˆฐๅ‡ฝๆ•ฐ f ๅœจๅŒบ้—ด[a,b]ไธŠ็š„ๆ นใ€‚
-
-# ใ€้กถ็‚นใ€‘
-
-Vertex[Conic]: ็”Ÿๆˆๅœ†้”ฅๆ›ฒ็บฟ็š„ๅ…จ้ƒจ้กถ็‚นใ€‚
-
-# 5. ็บฟ
-
-# ใ€็›ด็บฟใ€‘
-
-Line[Point A, Point B]: ๅปบ็ซ‹่ฟ‡็‚นAๅ’ŒB็š„็›ด็บฟใ€‚
-
-Line[Point, Line]: ๅปบ็ซ‹่ฟ‡็‚น A ไธ”ๅนณ่กŒไบŽ็›ด็บฟ g ็š„็›ด็บฟใ€‚
-
-Line[Point, Vector v]: ๅปบ็ซ‹่ฟ‡็‚น A ไธ”ๆ–นๅ‘ไธบ v ็š„็›ด็บฟใ€‚
-
-# ใ€็บฟๆฎตใ€‘
-
-Segment[Point A, Point B]: ๅปบ็ซ‹็‚นAๅ’Œ็‚นBไน‹้—ด็š„็บฟๆฎตใ€‚
-
-Segment[Point A, Number a]: ๅปบ็ซ‹ไปฅ็‚น A ไธบ่ตท็‚น๏ผŒ็บฟๆฎต้•ฟไธบ a ็š„็บฟๆฎตใ€‚
-
-# ใ€ๅฐ„็บฟใ€‘
-
-Ray[PointA, PointB]๏ผšๅปบ็ซ‹่ตท็‚นไธบA่ฟ‡B็‚น็š„ๅฐ„็บฟใ€‚
-
-Ray[Point, Vector v]: ๅปบ็ซ‹่ตท็‚นไธบ A ๅนถๆ–นๅ‘ๅ‘้‡ไธบ v ็š„ๅฐ„็บฟใ€‚
-
-# ใ€ๅž‚็บฟใ€‘
-
-Perpendicular[Point, Line]: ๅปบ็ซ‹่ฟ‡็‚น A ไธ”ๅž‚็›ดไบŽ็›ด็บฟ g ็š„็›ด็บฟใ€‚
-
-Perpendicular[Point, Vector]: ๅปบ็ซ‹่ฟ‡็‚น A ไธ”ๅž‚็›ดไบŽๅ‘้‡ v ็š„็›ด็บฟใ€‚
-
-# ใ€ไธญๅž‚็บฟใ€‘
-
-PerpendicularBisector[Point A, Point B]: ๅปบ็ซ‹็บฟๆฎต AB ็š„ๅž‚็›ดๅนณๅˆ†็บฟใ€‚
-
-PerpendicularBisector[Segment]: ๅปบ็ซ‹็บฟๆฎต็š„ๅž‚็›ดๅนณๅˆ†็บฟใ€‚
-
-# ใ€่ง’ๅนณๅˆ†็บฟใ€‘
-
-AngleBisector[Point A, Point B, Point C]: ็”Ÿๆˆ่ง’ ABC ็š„่ง’ๅนณๅˆ†็บฟใ€‚
-
-AngleBisector[Line g, Line h]: ็”Ÿๆˆ็›ด็บฟ $\mathbf{g}$ ๅ’Œ $\mathrm{h}$ ็š„่ง’ๅนณๅˆ†็บฟใ€‚
-
-# ใ€ๆธ่ฟ‘็บฟใ€‘
-
-Asymptote[Hyperbola]: ๅปบ็ซ‹ๅŒๆ›ฒ็บฟ $h$ ็š„ไธคๆกๆธ่ฟ‘็บฟใ€‚
-
-# ใ€ๅฏน็งฐ่ฝดใ€‘
-
-Axes[Conic]: ๅปบ็ซ‹ๅœ†้”ฅๆ›ฒ็บฟ $c$ ็š„ๅฏน็งฐ่ฝดใ€‚
-
-# ใ€ๅพ„ใ€‘
-
-Diameter[Line, Conic]: ๅœ†้”ฅๆ›ฒ็บฟ c ๅนณ่กŒไบŽ็›ด็บฟ g ็š„ๅพ„ใ€‚
-
-Diameter[Vector, Conic]: ๅœ†้”ฅๆ›ฒ็บฟ $c$ ๅนณ่กŒไบŽๅ‘้‡ $v$ ็š„ๅพ„ใ€‚
-
-# ใ€ๅ‡†็บฟใ€‘
-
-Directrix[Parabola]: ๅปบ็ซ‹ๆŠ›็‰ฉ็บฟ $p$ ็š„ๅ‡†็บฟใ€‚
-
-# ใ€ๆž็บฟใ€‘
-
-Polar[Point, Conic]: ๅปบ็ซ‹็›ธๅฏนไบŽๅœ†้”ฅๆ›ฒ็บฟ $c$ ็š„ๆž็บฟใ€‚
-
-# ใ€ๅˆ‡็บฟใ€‘
-
-Tangent[Point, Conic]: ๅปบ็ซ‹ๅœ†้”ฅๆ›ฒ็บฟ $c$ ่ฟ‡็‚น A ็š„ๆ‰€ๆœ‰ๅˆ‡็บฟใ€‚
-
-Tangent[Line, Conic]: ๅปบ็ซ‹ๅœ†้”ฅๆ›ฒ็บฟ $c$ ็š„ๆ‰€ๆœ‰ๅนณ่กŒไบŽ็›ด็บฟ $g$ ็š„ๅˆ‡็บฟใ€‚
-
-Tangent[Number a, Function]: ๅปบ็ซ‹ $f(x)$ ๅœจ $x = a$ ็š„ๅˆ‡็บฟใ€‚
-
-Tangent[Point A, Function]: ๅปบ็ซ‹ $f(x)$ ๅœจ $x = x(A)$ ็š„ๅˆ‡็บฟใ€‚
-
-# 6. ๅคš่พนๅฝข
-
-Polygon[Point A, Point B, Point C,...]: ็”Ÿๆˆ็”ฑ็ป™ๅฎš็‚น A, B, Cโ€ฆโ€ฆๆ‰€ๅ›ดๆˆ็š„ๅคš่พนๅฝขใ€‚
-
-Polygon[Point A, Point B, Number n]: ไปฅ็บฟๆฎต AB ไธบ่พน้•ฟ๏ผŒ็”Ÿๆˆ็”ฑ n ไธช้กถ็‚น็š„ๆญฃๅคš่พนๅฝขใ€‚
-
-# 7. ๅ‘้‡
-
-# ใ€ๅ‘้‡ใ€‘
-
-Vector[Point A, Point B]: ไปŽ็‚นAๅˆฐ็‚นB็š„ๅ‘้‡ใ€‚
-
-Vector[Point]: ็‚น A ็š„ไฝ็ฝฎๅ‘้‡ใ€‚
-
-# ใ€ๅ•ไฝๅ‘้‡ใ€‘
-
-UnitVector[Line]: ็›ด็บฟ $\mathbf{g}$ ็š„ๅ•ไฝๆ–นๅ‘ๅ‘้‡ใ€‚
-
-UnitVector[Vector]: ไธŽๅ‘้‡ v ๅŒๆ–นๅ‘็š„ๅ•ไฝๅ‘้‡ใ€‚
-
-# ใ€ๆณ•ๅ‘้‡ใ€‘
-
-PerpendicularVector[Line]๏ผšๆฑ‚็›ด็บฟ $\mathbf{g}$ ็š„ๆณ•ๅ‘้‡ใ€‚ๅฆ‚๏ผš็›ด็บฟ $\mathrm{ax + by = c}$ ็š„ๆณ•ๅ‘้‡ไธบ๏ผˆa,b๏ผ‰ใ€‚
-
-PerpendicularVector[Vector v]: ๆฑ‚ๅ‘้‡ $\mathbf{v}$ ็š„ๆณ•ๅ‘้‡ใ€‚
-
-# ใ€ๅ•ไฝๆณ•ๅ‘้‡ใ€‘
-
-UnitPerpendicularVector[Line]๏ผšๆฑ‚็›ด็บฟ $\mathbf{g}$ ็š„ๅ•ไฝๆณ•ๅ‘้‡ใ€‚
-
-UnitPerpendicularVector[Vector]: ๆฑ‚ๅ‘้‡ $\mathbf{v}$ ็š„ๅ•ไฝๆณ•ๅ‘้‡
-
-# ใ€ๆ›ฒ็އๅ‘้‡ใ€‘
-
-CurvatureVector[Point, Function]: ๆฑ‚ๅ‡ฝๆ•ฐ $f$ ๅœจ็‚น $A$ ็š„ๆ›ฒ็އๅ‘้‡ใ€‚
-
-CurvatureVector[Point, Curve]: ๆฑ‚ๆ›ฒ็บฟ $c$ ๅœจ็‚น A ็š„ๆ›ฒ็އๅ‘้‡ใ€‚
-
-# 8. ๅ‡ฝๆ•ฐ
-
-# ใ€ๅ‡ฝๆ•ฐใ€‘
-
-Function[Function, Number a, Number b]: ็”Ÿๆˆๅ‡ฝๆ•ฐ f ๅœจ [a,b] ๅŒบ้—ดไธŠๅ‡ฝๆ•ฐๅ›พๅƒใ€‚ๅฆ‚:
-
-$\mathrm{f(x) =}$ Function[x^2, -1, 1]ๅพ—ๅˆฐๅ‡ฝๆ•ฐ $\mathbf{x}^2$ ๅœจๅŒบ้—ด[-1,1]ไธŠ็š„ๅ‡ฝๆ•ฐๅ›พๅƒใ€‚ๅฆ‚ๆžœ่พ“ๅ…ฅ $\mathrm{g(x)} = 2\mathrm{f(x)}$ ๅฐ†ไผšๅพ—ๅˆฐ $\mathrm{g(x)} = 2\mathrm{x}^2$ ๏ผŒไฝ†่ฟ™ไธชๅ‡ฝๆ•ฐ็š„ๅฎšไน‰ๅŸŸๅนถไธ้™ๅˆถๅœจ[-1,1]ๅŒบ้—ดไธŠใ€‚
-
-# ใ€ๆกไปถๅ‡ฝๆ•ฐใ€‘
-
-ๅฆ‚ๆžœ่ฆๅปบ็ซ‹ๆกไปถๅ‡ฝๆ•ฐๅฏไปฅไฝฟ็”จๅธƒๆœ—ๅ‘ฝไปค Ifใ€‚ๅฆ‚๏ผš
-
-$$
-\mathrm {f (x) = I f [ x < 3 , \sin (x) , x ^ {\wedge} 2 ] \text {็›ธ ๅฝ“ ไบŽ :} f (x) = \left\{ \begin{array}{l l} {\sin (x), \text {ๅฝ“} x < 3} \\ {x ^ {2}, \text {ๅฝ“} x \geq 3} \end{array} \right.}
-$$
-
-# ใ€ๅฏผๆ•ฐ๏ผˆๅพฎๅˆ†๏ผ‰ใ€‘
-
-Derivative[Function]: ๆฑ‚ๅ‡ฝๆ•ฐ $f(x)$ ็š„ๅฏผๆ•ฐ๏ผˆๅพฎๅˆ†๏ผ‰ใ€‚
-
-Derivative[Function, Number n]: ๆฑ‚ๆฑ‚ๅ‡ฝๆ•ฐ $f(x)$ ็š„ $n$ ้˜ถๅฏผๆ•ฐ๏ผˆ $n$ ๆฌกๅพฎๅˆ†๏ผ‰ใ€‚
-
-# ใ€็งฏๅˆ†ใ€‘
-
-Integral[Function]: ๆฑ‚ๅ‡ฝๆ•ฐ $f(x)$ ็š„ไธๅฎš็งฏๅˆ†ใ€‚
-
-# ใ€ๅคš้กนๅผใ€‘
-
-Polynomial[Function]: ๆฑ‚ๅ‡ฝๆ•ฐ $f$ ็š„ๅฑ•ๅผ€ๅผใ€‚
-
-Polynomial[List of n points]: ๅปบ็ซ‹็ป่ฟ‡ $\mathbf{n}$ ไธช็‚น็š„ $\mathrm{n - 1}$ ๆฌกๅคš้กนๅผใ€‚
-
-# ใ€ๅฑ•ๅผ€ๅผใ€‘
-
-Expand[Function]: ๅฐ†ๅผๅญๆŒ‰ไน˜ๆณ•ๅฑ•ๅผ€ใ€‚
-
-# ใ€ๅ› ๅผใ€‘
-
-Factor[Polynomial]: ๅฐ†ๅคš้กนๅผ่ฝฌๆขๆˆๅ› ๅผไน˜ๆณ•ๅฝขๅผใ€‚
-
-# ใ€ๅŒ–็ฎ€ใ€‘
-
-Simplify[Function]: ๅŒ–็ฎ€็ป™ๅฎš็š„ๅ‡ฝๆ•ฐใ€‚ๅฆ‚:
-
-- Simplify $[\mathrm{x} + \mathrm{x} + \mathrm{x}]$ ๅพ—ๅˆฐ $\mathrm{f(x)} = 3\mathrm{x}$
-- Simplify $\left[\sin (\mathrm{x}) / \cos (\mathrm{x})\right]$ ๅพ—ๅˆฐ $\mathrm{f(x)} = \tan (\mathrm{x})$
-- Simplify $[-2\sin(x)\cos(x)]$ ๅพ—ๅˆฐ $f(x) = \sin(-2x)$
-
-# ใ€ๆณฐๅ‹’ๅฑ•ๅผ€ๅผใ€‘
-
-TaylorPolynomial[Function, Number a, Number n]: ๅปบ็ซ‹ๅ‡ฝๆ•ฐ $f(x)$ ๅœจ็‚น $x = a$ ็š„ $n$ ๆฌกๆณฐๅ‹’ๅฑ•ๅผ€ๅผใ€‚
-
-# 9. ๅœ†้”ฅๆ›ฒ็บฟ
-
-# ใ€ๅœ†ใ€‘
-
-Circle[Point M, Number r]: ๅปบ็ซ‹ๅœ†ๅฟƒไธบ M ๅŠๅพ„ไธบ r ็š„ๅœ†ใ€‚
-
-Circle[Point M, Segment]: ๅปบ็ซ‹ๅœ†ๅฟƒไธบ M ๅŠๅพ„ไธบ s ็š„ๅœ†๏ผˆๅ‚่€ƒๅ…ˆ็กฎๅฎšๅŠๅพ„ๅ†็”ปๅœ†็š„็ป˜ๅ›พๅทฅๅ…ท๏ผ‰ใ€‚
-
-Circle[Point M, Point A]: ๅปบ็ซ‹ๅœ†ๅฟƒไธบ M ไธ”่ฟ‡็‚น A ็š„ๅœ†ใ€‚
-
-Circle[Point A, Point B, Point C]: ๅปบ็ซ‹่ฟ‡ไธ‰็‚นA๏ผŒB๏ผŒC็š„ๅœ†ใ€‚
-
-# ใ€ๅœ†้”ฅๆ›ฒ็บฟใ€‘
-
-Conic[Point A, Point B, Point C, Point D, Point E]: ๅพ—ๅˆฐ่ฟ‡ไบ”็‚น A, B, C, D, E ็š„ๅœ†้”ฅๆ›ฒ็บฟใ€‚
-
-# ใ€ๆคญๅœ†ใ€‘
-
-Ellipse[Point F, Point G, Number a]: ๅปบ็ซ‹็„ฆ็‚นไธบ F ๅ’Œ G ไธ”ๅŠ้•ฟ่ฝด้•ฟไธบ a ็š„ๆคญๅœ†ใ€‚
-
-Ellipse[PointF, PointG, Segment]: ๅปบ็ซ‹็„ฆ็‚นไธบ F ๅ’Œ G ไธ”ๅŠ้•ฟ่ฝด้•ฟ็ญ‰ไบŽ็บฟๆฎต s ้•ฟๅบฆ็š„ๆคญๅœ†ใ€‚
-
-Ellipse[PointA,PointB,PointC]๏ผšๅปบ็ซ‹็„ฆ็‚นไธบAๅ’ŒBไธ”่ฟ‡็‚นC็š„ๅœ†ใ€‚
-
-# ใ€ๅŒๆ›ฒ็บฟใ€‘
-
-Hyperbola[Point F, Point G, Number a]: ๅปบ็ซ‹็„ฆ็‚นไธบ F ๅ’Œ G ไธ”ๅŠ้•ฟ่ฝด้•ฟไธบ a ็š„ๅŒๆ›ฒ็บฟใ€‚
-
-Hyperbola[Point F, Point G, Segment]: ๅปบ็ซ‹็„ฆ็‚นไธบ F ๅ’Œ G ไธ”ๅŠ้•ฟ่ฝด้•ฟ็ญ‰ไบŽ็บฟๆฎต s ้•ฟๅบฆ็š„ๅŒๆ›ฒ็บฟใ€‚
-
-Hyperbola[Point A, Point B, Point C]: ๅปบ็ซ‹็„ฆ็‚นไธบ A ๅ’Œ B ไธ”่ฟ‡็‚น C ็š„ๅŒๆ›ฒ็บฟใ€‚
-
-# ใ€ๆŠ›็‰ฉ็บฟใ€‘
-
-Parabola[Point F, Line g]: ๅปบ็ซ‹็„ฆ็‚นไธบ F ๅ‡†็บฟไธบ g ็š„ๆŠ›็‰ฉ็บฟใ€‚
-
-# ใ€ๅฏ†ๅˆ‡ๅœ†ใ€‘
-
-OsculatingCircle[Point, Function]: ๅปบ็ซ‹ๅ‡ฝๆ•ฐ $f$ ๅœจ็‚น $A$ ็š„ๅฏ†ๅˆ‡ๅœ†ใ€‚
-
-OsculatingCircle[Point, Curve]: ๅปบ็ซ‹ๆ›ฒ็บฟ c ๅœจ็‚น A ็š„ๅฏ†ๅˆ‡ๅœ†ใ€‚
-
-# 10. ๅ‚ๆ•ฐๆ›ฒ็บฟ
-
-# ใ€ๆ›ฒ็บฟใ€‘
-
-Curve[Expression e1, Expression e2, Parameter t, Number a, Number b]: ็”Ÿๆˆๅๆ ‡ไธบ(e1,e2)็š„ๆ›ฒ็บฟ๏ผŒๅ…ถไธญe1๏ผŒe2ไธบๅ‚ๆ•ฐๅผใ€‚ๅฆ‚๏ผš
-
-$$
-c = \operatorname {C u r v e} [ 2 \cos (t), 2 \sin (t), t, 0, 2 p i ]
-$$
-
-# ใ€ๅ‚ๆ•ฐๆ›ฒ็บฟ็›ธๅ…ณใ€‘
-
-Curvature[Point, Curve]: ่ฎก็ฎ—ๆ›ฒ็บฟไธŠไธ€็‚น็š„ๆ›ฒ็އใ€‚
-
-CurvatureVector[Point, Curve]: ็”Ÿๆˆๆ›ฒ็บฟไธŠไธ€็‚น็š„ๆ›ฒ็އๅ‘้‡ใ€‚
-
-Derivative[Function]: ่ฎก็ฎ—ๅ‡ฝๆ•ฐ $f(x)$ ็š„ๅพฎๅˆ†ใ€‚
-
-Derivative[Function, Number n]: ่ฎก็ฎ—ๅ‡ฝๆ•ฐ $f(x)$ ็š„ $n$ ๆฌกๅพฎๅˆ†ใ€‚
-
-Length[Curve, Number t1, Number t2]: ่ฎก็ฎ—ๆ›ฒ็บฟๅœจๅ‚ๆ•ฐ t1 ๅ’Œ t2 ไน‹้—ด็š„้•ฟๅบฆใ€‚
-
-Length[Curve c, Point A, Point B]: ่ฎก็ฎ—ๆ›ฒ็บฟcๅœจ็‚นAๅ’ŒBไน‹้—ด็š„ๆ›ฒ็บฟ้•ฟๅบฆใ€‚
-
-# 11. ๅœ†ๅผงๅ’Œๆ‰‡ๅฝข
-
-# ใ€ๅผงใ€‘
-
-Arc[Conic, Point A, Point B]: ๅพ—ๅˆฐไป‹ไบŽๅœ†้”ฅๆ›ฒ็บฟ c ไธŠไธค็‚น A ๅ’Œ B ไน‹้—ด็š„ๅผงใ€‚
-
-Arc[Conic, Number t1, Number t2]: ๅพ—ๅˆฐไป‹ไบŽๅœ†้”ฅๆ›ฒ็บฟ c ไธŠๆขๅ‚ๆ•ฐ t1 ๅ’Œ t2 ไน‹้—ด็š„ๅผงใ€‚
-
-# ใ€ๅœ†ๅผงใ€‘
-
-CircularArc[Point M, Point A, Point B]: ๅปบ็ซ‹ไปฅ M ็‚นไธบๅœ†ๅฟƒ๏ผŒ่ตท็‚นไธบ A ็ปˆ็‚นไธบ B ็š„ๅœ†ๅผงใ€‚
-
-CircumcircularArc[Point A, Point B, Point C]: ๅปบ็ซ‹้€š่ฟ‡A๏ผŒB๏ผŒCไธ‰็‚น็š„ๅœ†ๅผงใ€‚
-
-# ใ€ๆ‰‡ๅฝขใ€‘
-
-CircularSector[Point M, Point A, Point B]: ๅปบ็ซ‹ M ็‚นไธบๅœ†ๅฟƒ๏ผŒ่ตท็‚นไธบ A ็ปˆ็‚นไธบ B ็š„ๆ‰‡ๅฝขใ€‚
-
-CircumcircularSector[Point A, Point B, Point C]: ๅปบ็ซ‹้€š่ฟ‡A๏ผŒB๏ผŒCไธ‰็‚น็š„ๆ‰‡ๅฝขใ€‚
-
-Sector[Conic, Point A, Point B]: ๅปบ็ซ‹ไป‹ไบŽๅœ†้”ฅๆ›ฒ็บฟ c ไธŠ็š„ไธค็‚น A ๅ’Œ B ไน‹้—ด็š„ๅœ†้”ฅๆ›ฒ็บฟๆ‰‡ๅฝขๅŒบๅŸŸใ€‚
-
-Sector[Conic, Number t1, Number t2]: ๅปบ็ซ‹ไป‹ไบŽๅœ†้”ฅๆ›ฒ็บฟ c ไธŠ็š„ไธคๅ‚ๆ•ฐ t1 ๅ’Œ t2 ไน‹้—ด็š„ๅœ†้”ฅๆ›ฒ็บฟๆ‰‡ๅฝขๅŒบๅŸŸใ€‚
-
-# ใ€ๅŠๅœ†ใ€‘
-
-Semicircle[Point A, Point B]: ๅปบ็ซ‹็บฟๆฎต AB ไธŠ็š„ๅŠๅœ†ใ€‚
-
-# 12. ๆ–‡ๅญ—
-
-# ใ€ๅˆ†ๆ•ฐใ€‘
-
-FractionText[Number]๏ผšๅฐ†ๆ•ฐๅ€ผ่ฝฌๆขๆˆๅˆ†ๆ•ฐๅฝขๅผใ€‚
-
-# ใ€LaTexใ€‘
-
-LaTeX[Object]: ๅพ—ๅˆฐ็”จLaTex่กจ่พพ็š„ๅฏน่ฑก็š„ๆ–‡ๅญ—ใ€‚ๅฆ‚๏ผš
-
-่‹ฅ $a = 2$ ๅˆ‡ $\mathrm{f(x) = ax^2}$ ๏ผŒ้‚ฃไนˆLaTeX[f]ๅพ—ๅˆฐ $2\mathrm{x}^{2}$
-
-LaTeX[Object, Boolean]: ้€š่ฟ‡้€ป่พ‘ๅˆคๆ–ญๅพ—ๅˆฐ็”จLaTex่กจ่พพ็š„ๅฏน่ฑก็š„ๆ–‡ๅญ—ใ€‚ๅฆ‚ๆžœไธบ็œŸ๏ผŒ้‚ฃไนˆ็”จๆ•ฐๅ€ผไปฃๆ›ฟไปฃๆ•ฐ๏ผŒๅฆๅˆ™ๆ˜พ็คบไปฃๆ•ฐๅผใ€‚
-
-่งฃ้‡Š๏ผšLaTeX ๆ˜ฏไธ€็งๅŸบไบŽ TeX ็š„ๆŽ’็‰ˆ็ณป็ปŸ๏ผŒๅˆฉ็”จ่ฟ™็งๆ ผๅผๅณไฝฟไฝฟ็”จ่€…ๆฒกๆœ‰ๆŽ’็‰ˆๅ’Œ็จ‹ๅบ่ฎพ่ฎก็š„็Ÿฅ่ฏ†ไนŸๅฏไปฅๅ……ๅˆ†ๅ‘ๆŒฅ็”ฑ TeX ๆ‰€ๆไพ›็š„ๅผบๅคงๅŠŸ่ƒฝ๏ผŒ่ƒฝๅœจๅ‡ ๅคฉ๏ผŒ็”š่‡ณๅ‡ ๅฐๆ—ถๅ†…็”Ÿๆˆๅพˆๅคšๅ…ทๆœ‰ไนฆ็ฑ่ดจ้‡็š„ๅฐๅˆทๅ“ใ€‚ๅฏนไบŽ็”Ÿๆˆๅคๆ‚่กจๆ ผๅ’Œๆ•ฐๅญฆๅ…ฌๅผ๏ผŒ่ฟ™ไธ€็‚น่กจ็Žฐๅพ—ๅฐคไธบ็ชๅ‡บใ€‚ๅ› ๆญคๅฎƒ้žๅธธ้€‚็”จไบŽ็”Ÿๆˆ้ซ˜ๅฐๅˆท่ดจ้‡็š„็ง‘ๆŠ€ๅ’Œๆ•ฐๅญฆ็ฑปๆ–‡ๆกฃใ€‚
-
-# ใ€Unicodeใ€‘
-
-LetterToUnicode["Letter']: ๅฐ†ๅญ—็ฌฆ่ฝฌๅŒ–ๆˆ Unicode๏ผˆ็ปŸไธ€็ ๏ผ‰ใ€‚ๅฆ‚๏ผšLetterToUnicode["a"]ๅพ—ๅˆฐ 97ใ€‚
-
-TextToUnicode["Text']: ๅฐ†ๆ–‡ๅญ—่ฝฌๅŒ–ๆˆ Unicode(็ปŸไธ€็ )ใ€‚ๅฆ‚: TextToUnicode["Some text"]ๅพ—ๅˆฐ{83, 111, 109, 101, 32, 116, 101, 120, 116}ใ€‚
-
-UnicodeToText[List of Integers]: ๅฐ† Unicode ่ฝฌๅŒ–ๆˆๆ–‡ๅญ—ใ€‚ๅฆ‚: UnicodeToText[\{104, 101, 108, 108, 111\}]ไผšๅพ—ๅˆฐๆ–‡ๅญ—โ€œhelloโ€ใ€‚
-
-่งฃ้‡Š๏ผšUnicode๏ผˆ็ปŸไธ€็ ใ€ไธ‡ๅ›ฝ็ ใ€ๅ•ไธ€็ ๏ผ‰ๆ˜ฏไธ€็งๅœจ่ฎก็ฎ—ๆœบไธŠไฝฟ็”จ็š„ๅญ—็ฌฆ็ผ–็ ใ€‚ๅฎƒไธบๆฏ็ง่ฏญ่จ€ไธญ็š„ๆฏไธชๅญ—็ฌฆ่ฎพๅฎšไบ†็ปŸไธ€ๅนถไธ”ๅ”ฏไธ€็š„ไบŒ่ฟ›ๅˆถ็ผ–็ ๏ผŒไปฅๆปก่ถณ่ทจ่ฏญ่จ€ใ€่ทจๅนณๅฐ่ฟ›่กŒๆ–‡ๆœฌ่ฝฌๆขใ€ๅค„็†็š„่ฆๆฑ‚ใ€‚
-
-# ใ€ๅ็งฐใ€‘
-
-Name[Object]: ๅพ—ๅˆฐ็ป˜ๅ›พๅŒบ็š„ๅฏน่ฑกๅ็งฐใ€‚
-
-# ใ€ๅฏน่ฑกใ€‘
-
-Object[Name of object as text]: ๅพ—ๅˆฐๅฏน่ฑก็š„ๅ็งฐใ€‚ๆ”นๅ‘ฝไปคไธŽโ€œๅ็งฐโ€็›ธๅใ€‚
-
-# ใ€ๆ–‡ๅญ—ใ€‘
-
-Text[Object]๏ผšๅฐ†ๅฏน่ฑก็š„ๆ–น็จ‹ๅผ่ฝฌๅŒ–ๆˆๆ–‡ๅญ—ใ€‚ๆœ€็ปˆๅ‡บ็Žฐ็š„ๆ•ฐๅ€ผๆˆ–ๅญ—็ฌฆ็ป“ๆžœใ€‚
-
-Text[Object, Boolean]: ้€š่ฟ‡้€ป่พ‘ๅˆคๆ–ญๅพ—ๅˆฐๅฏน่ฑก็š„ๆ–‡ๅญ—ใ€‚ๅ‚่€ƒLaTeX[Object, Boolean],
-
-LaTex ๅ‘ฝไปคๅพ—ๅˆฐ็š„ๆ–‡ๅญ—ๅฝขๅผไฝฟ็”จ LaTeX ่ฏญๆณ•่กจ่พพ็š„ใ€‚
-
-# 13. ่ฝจ่ฟน
-
-Locus[PointQ,PointP]๏ผšๆฑ‚็‚นQ็š„่ฝจ่ฟน็บฟ๏ผˆPไธบๆŽงๅˆถ็‚น๏ผ‰ใ€‚
-
-# 14.ๅˆ—่กจ
-
-# ใ€Appendใ€‘
-
-Append[List, Object]: ๅฐ†ๅฏน่ฑกๅŠ ๅ…ฅๅˆ—่กจไธญๆˆไธบๆ–ฐ็š„ๅˆ—่กจ็š„ๆœ€ๅŽไธ€ไธชๅ…ƒ็ด ใ€‚
-
-Append[Object, List]: ๅฐ†ๅฏน่ฑกๅŠ ๅ…ฅๅˆ—่กจไธญๆˆไธบๆ–ฐ็š„ๅˆ—่กจ็š„็ฌฌไธ€ไธชๅ…ƒ็ด ใ€‚
-
-# ใ€CountIfใ€‘
-
-CountIf[Condition, List]: ่ฎก็ฎ—็ฌฆๅˆๆกไปถ็š„ๅ…ƒ็ด ไธชๆ•ฐใ€‚ๅฆ‚๏ผšCountIf[x < 3, {1, 2, 3, 4, 5}]ๅพ—ๅˆฐ 2ใ€‚
-
-# ใ€ๅ…ƒ็ด ใ€‘
-
-Element[List, Number n]: ่ฐƒ็”จๅˆ—่กจไธญ็š„็ฌฌ $\mathbf{n}$ ไธชๅ…ƒ็ด ใ€‚
-
-# ใ€Firstใ€‘
-
-First[List]๏ผšๅพ—ๅˆฐๅˆ—่กจไธญ็š„็ฌฌไธ€ไธชๅ…ƒ็ด ใ€‚
-
-First[List, Number of elements]: ๅพ—ๅˆฐไธ€ไธชๅŒ…ๅซ็ป™ๅฎšๅˆ—่กจไธญๅ‰ $n$ ไธชๅ…ƒ็ด ็š„ๆ–ฐๅˆ—่กจใ€‚
-
-# ใ€Lastใ€‘
-
-Last[List]: ๅพ—ๅˆฐๅˆ—่กจไธญ็š„ๆœ€ๅŽไธ€ไธชๅ…ƒ็ด ใ€‚
-
-Last[List, Number of elements]: ๅพ—ๅˆฐไธ€ไธชๅŒ…ๅซ็ป™ๅฎšๅˆ—่กจไธญๅŽ $n$ ไธชๅ…ƒ็ด ็š„ๆ–ฐๅˆ—่กจใ€‚
-
-# ใ€ๆ’ๅ…ฅใ€‘
-
-Insert[Object, List, Position]: ๅฐ†ๅฏน่ฑกๆ’ๅ…ฅๅˆฐๅˆ—่กจ็š„ๆŒ‡ๅฎšไฝ็ฝฎใ€‚
-
-# ใ€ไบค้›†ใ€‘
-
-Intersection[List 1, List 2]: ๅฐ†ไธคไธชๅˆ—่กจ็š„ๅ…ฌๅ…ฑ้ƒจๅˆ†็”Ÿๆˆไธ€ไธชๆ–ฐ็š„ๅˆ—่กจใ€‚
-
-# ใ€ๅนถ้›†ใ€‘
-
-Union[List 1, List 2]: ๅˆๅนถไธคๅˆ—่กจๅนถๅŽป้™ค้‡ๅค็š„ๅ…ƒ็ด ใ€‚
-
-# ใ€่ฟญไปฃๆ•ฐๅˆ—ใ€‘
-
-IterationList[Function, Number x0, Number n]: ๅฏไปฅๅพ—ๅˆฐ $n + 1$ ไธชๅ…ƒ็ด ็š„ๅˆ—่กจ๏ผŒๅ…ถไธญๅ…ƒ็ด ๆ˜ฏ็”ฑๅ‡ฝๆ•ฐๅธฆๅ…ฅ x0 ็ป่ฟ‡ๅคšๆฌก่ฟญไปฃ็”Ÿๆˆ็š„ใ€‚ๅฆ‚๏ผšๅฎšไน‰ $f(x) = x^{\wedge}2$ ๏ผŒ่พ“ๅ…ฅ L = IterationList[f, 3, 2] ๅฏไปฅๅพ—ๅˆฐ L = {3, 9, 81}
-
-# ใ€ๅˆๅนถใ€‘
-
-Join[List 1, List 2, ...]: ๅฐ†ๅคšไธชๅˆ—่กจๅˆๅนถๆˆไธ€ไธชๅˆ—่กจใ€‚่ฟ™็งๅˆๅนถไฟ็•™็›ธๅŒๅ…ƒ็ด ๏ผŒไธไผš้‡ๆ–ฐๆŽ’ๅบใ€‚
-
-Join[List of lists]: ๅฐ†ๅญๅˆ—่กจๅˆๅนถๅพ—ๅˆฐไธ€ไธชๆ›ดๅคง็š„ๅˆ—่กจใ€‚ๆ–ฐๅˆ—่กจๅŒ…ๅซๆ‰€ๆœ‰ๅ…ƒ็ด ๏ผŒๅนถไฟ็•™็›ธ
-
-ๅŒๅ…ƒ็ด ๏ผŒไธไผš้‡ๆ–ฐๆŽ’ๅบใ€‚
-
-# ใ€็ญ›้€‰ใ€‘
-
-KeepIf[Condition, List]: ็ญ›้€‰ๅˆ—่กจไธญ็ฌฆๅˆๆกไปถ็š„ๅ…ƒ็ด ใ€‚ๅฆ‚: KeepIf[x<3, {1, 2, 3, 4, 1, 5, 6}] ๅฏๅพ—ๅˆฐๆ–ฐๅˆ—่กจ{1, 2, 1}ใ€‚
-
-# ใ€้•ฟๅบฆใ€‘
-
-Length[List]: ่ฎก็ฎ—ๅˆ—่กจ็š„้•ฟๅบฆ๏ผŒไนŸๅฐฑๆ˜ฏๅ…ƒ็ด ไธชๆ•ฐใ€‚
-
-# ใ€ๆœ€ๅฐๅ€ผใ€‘
-
-Min[List]: ๅพ—ๅˆฐๅˆ—่กจไธญๆœ€ๅฐ็š„ๅ…ƒ็ด ใ€‚
-
-# ใ€ๆœ€ๅคงๅ€ผใ€‘
-
-Max[List]๏ผšๅพ—ๅˆฐๅˆ—่กจไธญๆœ€ๅคง็š„ๅ…ƒ็ด ใ€‚
-
-# ใ€ๅ†…็งฏใ€‘
-
-Product[List of numbers]: ่ฎก็ฎ—ๅˆ—่กจไธญๆ‰€ๆœ‰ๆ•ฐๅญ—็š„ไน˜็งฏใ€‚
-
-# ใ€็งป้™คๆœชๅฎšไน‰ๅฏน่ฑกใ€‘
-
-RemoveUndefined[List]: ็งป้™คๅˆ—่กจไธญๆฒกๆœ‰ๅฎšไน‰็š„ๅฏน่ฑกใ€‚
-
-# ใ€ๆŽ’ๅบใ€‘
-
-Sort[List]๏ผšๅฏนๅˆ—่กจไธญ็š„ๆ•ฐๅ€ผใ€ๆ–‡ๅญ—ๆˆ–็‚นๅšๆŽ’ๅบใ€‚ๅฆ‚๏ผšSort[\{3,2,1\}]ๅฏๅพ—ๅˆฐๅˆ—่กจ $\{1,2,3\}$ ใ€‚
-
-# ใ€ๅๅบใ€‘
-
-Reverse[List]: ๅ€’ๅบๆŽ’ๅˆ—ๅˆ—่กจใ€‚
-
-# ใ€ๆฑ‚ๅ’Œใ€‘
-
-Sum[List]๏ผš่ฎก็ฎ—ๅˆ—่กจไธญๆ‰€ๆœ‰ๅ…ƒ็ด ไน‹ๅ’Œใ€‚่ฏฅๅ‘ฝไปคๅฏไปฅ็”จไบŽๆ•ฐๅ€ผใ€็‚นใ€ๅ‘้‡ใ€ๆ–‡ๅญ—ๅ’Œๅ‡ฝๆ•ฐใ€‚
-
-# ใ€ๆๅ–ใ€‘
-
-Take[List, Start position m, End position n]: ๆๅ–ๅˆ—่กจไธญ็ฌฌ $\mathrm{m}$ ไธชๅ…ƒ็ด ๅˆฐ็ฌฌ $\mathrm{n}$ ไธชๅ…ƒ็ด ็ป„ๆˆๆ–ฐ็š„ๅˆ—่กจใ€‚
-
-# ใ€ๅบๅˆ—ใ€‘
-
-Sequence[Expression, Variable i, Number a, Number b]: ็”Ÿๆˆไธ€ไธชๅบๅˆ—๏ผŒไฝฟ็”จ็ป™ๅฎš็š„่กจ่พพๅผๅŠๅ˜้‡iไปŽaๅˆฐbๅ˜ๅŒ–ใ€‚ๅฆ‚๏ผšL = Sequence[(i, 1), i, 1, 5]ๅพ—ๅˆฐ็š„็‚นๅบๅˆ—๏ผŒxๅๆ ‡ๅ˜ๅŒ–ไปŽ1ๅˆฐ5๏ผŒๅฆ‚ไธ‹ๅ›พๆ‰€็คบใ€‚
-
-![](images/ed649149b5f40a7a0b3a113adec3c616709d5db2cb920691967b00e425649cfe.jpg)
-
-Sequence[Expression, Variable i, Number a, Number b, Numbers]๏ผš็”Ÿๆˆไธ€ไธชๅบๅˆ—๏ผŒไฝฟ็”จ็ป™ๅฎš็š„่กจ่พพๅผๅŠๅ˜้‡iไปŽaๅˆฐbๅ˜ๅŒ–๏ผŒๅ…ถไธญๆญฅ้•ฟไธบsใ€‚ๅฆ‚๏ผšL = Sequence[(i, 1), i, 1, 5, 0.5]ๅพ—ๅˆฐ็š„็‚นๅบๅˆ—๏ผŒxๅๆ ‡ๅ˜ๅŒ–ไปŽ1ๅˆฐ5๏ผŒๆญฅ้•ฟไธบ0.5ใ€‚ๅฆ‚ไธ‹ๅ›พๆ‰€็คบใ€‚
-
-![](images/613023049378af76a706e2f3073a1570187014fc1e03a9015155def461f3bd6a.jpg)
-
-# 15. ๅ‡ ไฝ•ๅ˜ๆข
-
-# ใ€ไผธ็ผฉใ€‘
-
-Dilate[Point A, Number, Point S]: ็‚นAๅ…ณไบŽ็‚นSๅšๆŒ‡ๅฎšๆฏ”ไพ‹็š„ไผธ็ผฉๅ˜ๆขใ€‚
-
-Dilate[Line, Number, Point S]: ็›ด็บฟๅ…ณไบŽ็‚นSๅšๆŒ‡ๅฎšๆฏ”ไพ‹็š„ไผธ็ผฉๅ˜ๆขใ€‚
-
-Dilate[Conic, Number, Point S]: ๅœ†้”ฅๆ›ฒ็บฟๅ…ณไบŽ็‚นSๅšๆŒ‡ๅฎšๆฏ”ไพ‹็š„ไผธ็ผฉๅ˜ๆขใ€‚
-
-Dilate[Polygon, Number, Point S]: ๅคš่พนๅฝขๅ…ณไบŽ็‚นSๅšๆŒ‡ๅฎšๆฏ”ไพ‹็š„ไผธ็ผฉๅ˜ๆขใ€‚
-
-Dilate[Image, Number, Point S]: ๅ›พ็‰‡ๅ…ณไบŽ็‚นSๅšๆŒ‡ๅฎšๆฏ”ไพ‹็š„ไผธ็ผฉๅ˜ๆขใ€‚
-
-# ใ€้•œๅƒใ€‘
-
-Reflect[Point A, Point B]: ็‚น A ๅฏน็‚น B ๅš้•œๅƒใ€‚
-
-Reflect[Line, Point]: ็›ด็บฟๅฏนๆŒ‡ๅฎš็‚นๅš้•œๅƒใ€‚
-
-Reflect[Conic, Point]: ๅœ†้”ฅๆ›ฒ็บฟๅฏนๆŒ‡ๅฎš็‚นๅš้•œๅƒใ€‚
-
-Reflect[Polygon, Point]: ๅคš่พนๅฝขๅฏนๆŒ‡ๅฎš็‚นๅš้•œๅƒใ€‚
-
-Reflect[Image, Point]: ๅ›พ็‰‡ๅฏนๆŒ‡ๅฎš็‚นๅš้•œๅƒใ€‚
-
-Reflect[Point, Line]: ็‚นๅฏนๆŒ‡ๅฎš็›ด็บฟๅš้•œๅƒใ€‚
-
-Reflect[Line g, Line h]: ็›ด็บฟ $\mathbf{g}$ ๅฏนๆŒ‡ๅฎš็›ด็บฟ $\mathrm{h}$ ๅš้•œๅƒใ€‚
-
-Reflect[Conic, Line]: ๅœ†้”ฅๆ›ฒ็บฟๅฏนๆŒ‡ๅฎš็›ด็บฟๅš้•œๅƒใ€‚
-
-Reflect[Polygon, Line]: ๅคš่พนๅฝขๅฏนๆŒ‡ๅฎš็›ด็บฟๅš้•œๅƒใ€‚
-
-Reflect[Image, Line]: ๅ›พ็‰‡ๅฏนๆŒ‡ๅฎš็›ด็บฟๅš้•œๅƒใ€‚
-
-Reflect[Point, Circle]: ็‚นๅฏนๅœ†่ฟ›่กŒๅๆผ”ใ€‚
-
-# ใ€ๆ—‹่ฝฌใ€‘
-
-Rotate[Point, Angle]: ็‚นๅ…ณไบŽๅŽŸ็‚นๆ—‹่ฝฌๆŒ‡ๅฎš็š„่ง’ๅบฆใ€‚
-
-Rotate[Vector, Angle]: ๅ‘้‡ๅ…ณไบŽๅŽŸ็‚นๆ—‹่ฝฌๆŒ‡ๅฎš็š„่ง’ๅบฆใ€‚
-
-Rotate[Line, Angle]: ็›ด็บฟๅ…ณไบŽๅŽŸ็‚นๆ—‹่ฝฌๆŒ‡ๅฎš็š„่ง’ๅบฆใ€‚
-
-Rotate[Conic, Angle]: ๅœ†้”ฅๆ›ฒ็บฟๅ…ณไบŽๅŽŸ็‚นๆ—‹่ฝฌๆŒ‡ๅฎš็š„่ง’ๅบฆใ€‚
-
-Rotate[Polygon, Angle]: ๅคš่พนๅฝขๅ…ณไบŽๅŽŸ็‚นๆ—‹่ฝฌๆŒ‡ๅฎš็š„่ง’ๅบฆใ€‚
-
-Rotate[Image, Angle]: ๅ›พ็‰‡ๅ…ณไบŽๅŽŸ็‚นๆ—‹่ฝฌๆŒ‡ๅฎš็š„่ง’ๅบฆใ€‚
-
-Rotate[Point A, Angle, Point B]: ็‚นAๅ…ณไบŽ็‚นBๆ—‹่ฝฌๆŒ‡ๅฎš็š„่ง’ๅบฆใ€‚
-
-Rotate[Line, Angle, Point]: ็›ด็บฟๅ…ณไบŽๆŒ‡ๅฎš็‚นๆ—‹่ฝฌๆŒ‡ๅฎš็š„่ง’ๅบฆใ€‚
-
-Rotate[Vector, Angle, Point]: ๅ‘้‡ๅ…ณไบŽๆŒ‡ๅฎš็‚นๆ—‹่ฝฌๆŒ‡ๅฎš็š„่ง’ๅบฆใ€‚
-
-Rotate[Conic, Angle, Point]: ๅœ†้”ฅๆ›ฒ็บฟๅ…ณไบŽๆŒ‡ๅฎš็‚นๆ—‹่ฝฌๆŒ‡ๅฎš็š„่ง’ๅบฆใ€‚
-
-Rotate[Polygon, Angle, Point]: ๅคš่พนๅฝขๅ…ณไบŽๆŒ‡ๅฎš็‚นๆ—‹่ฝฌๆŒ‡ๅฎš็š„่ง’ๅบฆใ€‚
-
-Rotate[Image, Angle, Point]: ๅ›พ็‰‡ๅ…ณไบŽๆŒ‡ๅฎš็‚นๆ—‹่ฝฌๆŒ‡ๅฎš็š„่ง’ๅบฆใ€‚
-
-# ใ€ๅนณ็งปใ€‘
-
-Translate[Point, Vector]: ็‚นๆฒฟๆŒ‡ๅฎšๅ‘้‡ๅนณ็งปใ€‚
-
-Translate[Line, Vector]: ็›ด็บฟๆฒฟๆŒ‡ๅฎšๅ‘้‡ๅนณ็งปใ€‚
-
-Translate[Conic, Vector]: ๅœ†้”ฅๆ›ฒ็บฟๆฒฟๆŒ‡ๅฎšๅ‘้‡ๅนณ็งปใ€‚
-
-Translate[Function, Vector]: ๅ‡ฝๆ•ฐๆฒฟๆŒ‡ๅฎšๅ‘้‡ๅนณ็งปใ€‚
-
-Translate[Polygon, Vector]: ๅคš่พนๅฝขๆฒฟๆŒ‡ๅฎšๅ‘้‡ๅนณ็งปใ€‚
-
-Translate[Image, Vector]: ๅ›พ็‰‡ๆฒฟๆŒ‡ๅฎšๅ‘้‡ๅนณ็งปใ€‚
-
-Translate[Vector, Point]: ๅ‘้‡ v ๅนณ็งปๅˆฐๆŒ‡ๅฎš็š„็‚นใ€‚
-
-# 16. ็ปŸ่ฎก
-
-# ใ€ๆฑ‚ๅ’Œใ€‘
-
-SigmaXX[List of numbers]: ่ฎก็ฎ—็ป™ๅฎšๆ•ฐๅ€ผ็š„ๅนณๆ–นๅ’Œใ€‚
-
-SigmaXX[List of points]: ่ฎก็ฎ—็ป™ๅฎš็‚นๅˆ—็š„ $\mathbf{X}$ ๅๆ ‡็š„ๅนณๆ–นๅ’Œใ€‚
-
-SigmaXY[List of x-coordinates, List of y-coordinates]: ่ฎก็ฎ—ไธค็‚นๅˆ—็š„ $\mathbf{x}$ ไธŽ $\mathbf{y}$ ๅๆ ‡ไน˜็งฏ็š„ๅ’Œใ€‚
-
-SigmaXY[List of points]: ่ฎก็ฎ— $\mathbf{x}$ ๅๆ ‡ๅ’Œ $\mathbf{y}$ ๅๆ ‡็š„ไน˜็งฏๅ’Œใ€‚
-
-SigmaYY[List of Points]: ่ฎก็ฎ—็ป™ๅฎš็‚นๅˆ— $\mathbf{y}$ ๅๆ ‡็š„ๅนณๆ–นๅ’Œใ€‚
-
-# ใ€ไธญไฝๆ•ฐใ€‘
-
-Median[List of numbers]: ๅพ—ๅˆฐๅˆ—่กจไธญๅ…ƒ็ด ็š„ไธญไฝๆ•ฐใ€‚
-
-# ใ€ไผ—ๆ•ฐใ€‘
-
-Mode[List of numbers]: ๅพ—ๅˆฐๅˆ—่กจไธญๅ…ƒ็ด ็š„ไผ—ๆ•ฐใ€‚
-
-# ใ€ๅนณๅ‡ๆ•ฐใ€‘
-
-Mean[List of numbers]: ่ฎก็ฎ—ๅˆ—่กจไธญๅ…ƒ็ด ็š„ๅนณๅ‡ๆ•ฐใ€‚
-
-MeanX[List of points]: ่ฎก็ฎ—ๅˆ—่กจไธญๅ…ƒ็ด  $\mathbf{x}$ ๅๆ ‡็š„ๅนณๅ‡ๆ•ฐใ€‚
-
-MeanY[List of points]: ่ฎก็ฎ—ๅˆ—่กจไธญๅ…ƒ็ด  y ๅๆ ‡็š„ๅนณๅ‡ๆ•ฐใ€‚
-
-# ใ€ๅ››ๅˆ†ไฝๆ•ฐใ€‘
-
-Q1[List of numbers]: ๅพ—ๅˆฐๅˆ—่กจๅ…ƒ็ด ไธญ็š„็ฌฌไธ€ๅ››ๅˆ†ไฝๆ•ฐใ€‚
-
-Q3[List of numbers]: ๅพ—ๅˆฐๅˆ—่กจๅ…ƒ็ด ไธญ็š„็ฌฌไธ‰ๅ››ๅˆ†ไฝๆ•ฐใ€‚
-
-# ใ€ๆ–นๅทฎใ€‘
-
-Variance[List of numbers]: ่ฎก็ฎ—ๅˆ—่กจๅ…ƒ็ด ็š„ๆ–นๅทฎใ€‚
-
-# ใ€ๆ ‡ๅ‡†ๅทฎใ€‘
-
-SD[List of Numbers]: ่ฎก็ฎ—ๅˆ—่กจไธญๆ•ฐๅ€ผ็š„ๆ ‡ๅ‡†ๅทฎใ€‚
-
-# ใ€็›ธๅ…ณ็ณปๆ•ฐใ€‘
-
-CorrelationCoefficient[List of x-coordinates, List of y-coordinates]: ไฝฟ็”จ็ป™ๅฎš็š„ x ๅๆ ‡ๅ’Œ y ๅๆ ‡่ฎก็ฎ—็›ธๅ…ณ็ณปๆ•ฐ็š„ไน˜็งฏใ€‚
-
-CorrelationCoefficient[List of points]: ไฝฟ็”จ็ป™ๅฎš็‚น็š„ๅๆ ‡่ฎก็ฎ—็›ธๅ…ณ็ณปๆ•ฐ็š„ไน˜็งฏใ€‚
-
-# ใ€ๅๆ–นๅทฎใ€‘
-
-Covariance[List 1 of numbers, List 2 of numbers]: ่ฎก็ฎ—ไธคๅˆ—่กจ็š„ๅๆ–นๅทฎใ€‚
-
-Covariance[List of points]: ่ฎก็ฎ— $\mathbf{X}$ ๅๆ ‡ๅ’Œyๅๆ ‡็š„ๅๆ–นๅทฎใ€‚
-
-# ใ€ๆญฃๆ€ๅˆ†ๅธƒๅ‡ฝๆ•ฐใ€‘
-
-Normal[Mean, Standard deviation, Variable value]: ่ฎก็ฎ—ๅ‡ฝๆ•ฐ $(\Phi(\mathbf{x})$ -mean)/(standard deviation) ๅ…ถไธญ $\Phi(\mathbf{x})$ ๆ˜ฏ็ฌฆๅˆ $\mathrm{N}(0,1)$ ๅˆ†ๅธƒ็š„ๆฆ‚็އๅฏ†ๅบฆๅ‡ฝๆ•ฐใ€‚
-
-# ใ€ๅๆญฃๆ€ๅ‡ฝๆ•ฐใ€‘
-
-InverseNormal[Mean, Standard deviation, Probability]: ่ฎก็ฎ—ๅ…ทๆœ‰็ป™ๅฎšๆฆ‚็އๆญฃๆ€ๅˆ†ๅธƒ็š„ๅŒบ้—ด็‚นใ€‚
-
-# ใ€ๆกๅฝขๅ›พใ€‘
-
-BarChart[Start value, End value, List of heights]: ๅปบ็ซ‹ๆŒ‡ๅฎšๅŒบ้—ดๅ†…็š„ๆกๅฝขๅ›พ๏ผŒๆกๅฝขไธชๆ•ฐๅ–ๅ†ณไบŽ่กจๆ ผ้•ฟๅบฆ๏ผŒ้ซ˜ๅบฆๅ–ๅ†ณไบŽๅ…ƒ็ด ๅคงๅฐใ€‚ๅฆ‚๏ผšBarChart[10, 20, {1,2,3,4,5}]ๅพ—ๅˆฐๅฆ‚ไธ‹ๅ›พๆ‰€็คบใ€‚
-
-![](images/224cdd1698ca8fcc2a659466e16993666b441a67bcfba1c3585a72b3013ccb6c.jpg)
-
-BarChart[Start value a, End value b, Expression, Variable k, From number c, To number d]: ๅปบ็ซ‹[a,b]ไน‹้—ด็š„ๆกๅฝขๅ›พ๏ผŒ็”จๅซๅ˜้‡k็š„่กจ่พพๅผ่กจ็คบๆกๅฝข้ซ˜ๅบฆ๏ผŒๅ…ถไธญkไปŽcๅˆฐdๅ˜ๅŒ–ใ€‚
-
-BarChart[List of raw data, Width of bars]: ็”ฑ็ป™ๅฎšๆ•ฐๆฎ็”Ÿๆˆๆกๅฝขๅ›พใ€‚ๅฏ่ฎพๅฎšๆกๅฎฝใ€‚
-
-BarChart[List of data, List of frequencies]: ๅปบ็ซ‹ไฝ็ฝฎ้•ฟๅบฆ็š„ๆกๅฝขๅ›พใ€‚
-
-BarChart[List of data, List of frequencies, Width of bars w]: ๅปบ็ซ‹ไฝ็ฝฎ้•ฟๅบฆ็š„ๆกๅฝขๅ›พ๏ผŒๅนถๆŒ‡ๅฎšๆกๅฎฝใ€‚ๅฆ‚๏ผšBarChart[{10,11,12,13,14}, {1,2,3,0,3}, 0.5] ๅพ—ๅˆฐๅฆ‚ไธ‹ๅ›พๆ‰€็คบใ€‚
-
-![](images/36fc680018e18c15146b3a80200e45ca049be64ec0e1a1f6851e9011ea15fbd8.jpg)
-
-# ใ€็›ดๆ–นๅ›พใ€‘
-
-Histogram[List of class boundaries, List of heights]: ็”ฑ็ป™ๅฎš็š„้ซ˜ๅบฆๅปบ็ซ‹็›ดๆ–นๅ›พใ€‚
-
-Histogram[List of class boundaries, List of raw data]: ไฝฟ็”จ็ป™ๅฎš็š„ๆ•ฐๆฎๅปบ็ซ‹็›ดๆ–นๅ›พใ€‚ๅฆ‚: Histogram[\{1, 2, 3, 4\}, \{1.0, 1.1, 1.1, 1.2, 1.7, 2.2, 2.5, 4.0\}]ๅพ—ๅˆฐๅฆ‚ไธ‹ๅ›พๆ‰€็คบใ€‚
-
-![](images/c6e2cd20642e4f3fa25c179a451b968e4763a637caa001fa0af0475601f080b0.jpg)
-
-# ใ€็›’ๅฝขๅ›พใ€‘
-
-BoxPlot[yOffset, yScale, List of raw data]: ๅปบ็ซ‹็ป™ๅฎšๆ•ฐๆฎ็š„็›’็Šถๅ›พ๏ผŒๅนถๅœจๅๆ ‡็ณป็š„ๅž‚็›ดๆ–นๅ‘ๆ˜ฏ็”ฑy็š„ๅ็งป้‡ๆŽงๅˆถ็š„๏ผŒ้ซ˜ๅบฆๅ—y็š„ๅบฆ้‡ๅฝฑๅ“ใ€‚
-
-BoxPlot[yOffset, yScale, Start value, Q1, Median, Q3, End value]: ๅœจๅŒบ้—ดไธŠๅปบ็ซ‹็›’ๅฝขๅ›พใ€‚
-
-# ใ€็บฟๆ€งๅ›žๅฝ’ใ€‘
-
-FitLine[List of points]: ่ฎก็ฎ— xy ๅๆ ‡ไธŠ็š„็บฟๆ€งๅ›žๅฝ’ใ€‚
-
-# ใ€ๅ…ถไป–ๅ›žๅฝ’ใ€‘
-
-FitExp[List of points]: ่ฎก็ฎ—ๆŒ‡ๆ•ฐๅ›žๅฝ’ๆ›ฒ็บฟใ€‚
-
-FitLineX[List of points]: ่ฎก็ฎ— xy ๅๆ ‡ๅนณ้ขไธŠ็š„็บฟๆ€งๅ›žๅฝ’ใ€‚
-
-FitLog[List of points]: ่ฎก็ฎ—ๅฏนๆ•ฐๅ›žๅฝ’ๆ›ฒ็บฟใ€‚
-
-FitLogistic[List of points]: ่ฎก็ฎ— Logistic ๅ›žๅฝ’ๆ›ฒ็บฟใ€‚
-
-FitPoly[List of points, Degree n of polynomial]: ่ฎก็ฎ— $\mathbf{n}$ ๆฌกๅคš้กนๅผ็š„ๅ›žๅฝ’ๆ–น็จ‹ใ€‚
-
-FitPow[List of points]: ่ฎก็ฎ— $\mathbf{a}\mathbf{x}^{\mathrm{b}}$ ๅž‹็š„ๅ›žๅฝ’ๆ›ฒ็บฟใ€‚
-
-FitSin[List of points]: ่ฎก็ฎ— $a + b \sin (cx + d)$ ๅž‹็š„ๅ›žๅฝ’ๆ›ฒ็บฟใ€‚
-
-# 17. ็”ตๅญ่กจๆ ผ
-
-# ใ€่กŒๅทใ€‘
-
-Row[Spreadsheet cell]๏ผšๅพ—ๅˆฐ้ž็ฉบๅ•ๅ…ƒๆ ผ็š„่กŒๅทใ€‚ๅฆ‚๏ผš่‹ฅB3้ž็ฉบ๏ผŒ้‚ฃไนˆColumn[B3]ๅฏไปฅๅพ—ๅˆฐๆ•ฐๅ€ผ $a = 3$ ๏ผŒๅ› ไธบB3ๅœจ็ฌฌไธ‰่กŒใ€‚
-
-# ใ€ๅˆ—ๅทใ€‘
-
-Column[Spreadsheet cell]๏ผšๅพ—ๅˆฐ้ž็ฉบๅ•ๅ…ƒๆ ผ็š„ๅˆ—ๅทใ€‚ๅฆ‚๏ผš่‹ฅB3้ž็ฉบ๏ผŒ้‚ฃไนˆColumn[B3]ๅฏไปฅๅพ—ๅˆฐๆ•ฐๅ€ผ $a = 2$ ๏ผŒๅ› ไธบBๆ˜ฏ็ฌฌไบŒๅˆ—ใ€‚
-
-# ใ€็”Ÿๆˆๅˆ—่กจใ€‘
-
-CellRange[Start cell, End cell]: ็”ฑๆŒ‡ๅฎš่Œƒๅ›ด็š„ๅ•ๅ…ƒๆ ผ็”Ÿๆˆๅˆ—่กจใ€‚
-
-# 18. ้€ป่พ‘ๅ‘ฝไปค
-
-# ใ€Ifใ€‘
-
-If[Condition, Object]: ๅฆ‚ๆžœๆกไปถๅผไธบ็œŸ๏ผŒๅฏไปฅๅพ—ๅˆฐ Objectใ€‚ๅฆ‚ๆžœๆกไปถๅผไธบๅ‡ๆ—ถ๏ผŒไธบ undefined Objectใ€‚
-
-If[Condition, Object a, Object b]: ๅฆ‚ๆžœๆกไปถๅผไธบ็œŸ๏ผŒๅฏไปฅๅพ—ๅˆฐ Objectใ€‚ๅฆ‚ๆžœๆกไปถๅผไธบๅ‡ๆ—ถ๏ผŒไธบ Object bใ€‚
-
-# ใ€IsDefinedใ€‘
-
-IsDefined[Object]: ๆ นๆฎๅฏน่ฑกๆ˜ฏๅฆๆœ‰ๅฎšไน‰๏ผŒ่ฟ”ๅ›ž็œŸๅ‡ๅ€ผใ€‚
-
-# ใ€IsIntegerใ€‘
-
-IsInteger[Number]: ๆ นๆฎๅฏน่ฑกๆ˜ฏๅฆไธบๆ•ดๆ•ฐ๏ผŒ่ฟ”ๅ›ž็œŸๅ‡ๅ€ผใ€‚
-
-# ็ฌฌๅ…ญ็ซ  ่œๅ•
-
-# 1. ๆ–‡ไปถ
-
-# ใ€ๆ–ฐ็ช—ๅฃใ€‘
-
-็‚นๅ‡ป่ฏฅ้กนๅฏไปฅๆ–ฐๅปบ GeoGebra ็ช—ๅฃ๏ผŒ็ช—ๅฃๅธƒๅฑ€็ฌฆๅˆไน‹ๅ‰็š„้ข„่ฎพใ€‚
-
-# ใ€ๆ–ฐๅปบใ€‘
-
-็‚นๅ‡ป่ฏฅ้€‰้กนๅฏไปฅๅœจๅŒไธ€ไธชGeoGebra็ช—ๅฃๅ†…ๆ–ฐๅปบ็ฉบ็™ฝ็•Œ้ข๏ผŒๅœจๅผ€ๅฏๆ–ฐ็š„ๆ–‡ไปถๅ‰๏ผŒ็”ต่„‘ไผš่ฏข้—ฎๆ˜ฏๅฆไฟๅญ˜ๅฝ“ๅ‰ๆ–‡ไปถใ€‚
-
-# ใ€ๆ‰“ๅผ€ใ€‘
-
-็‚นๅ‡ป่ฏฅ้€‰้กนๅฏไปฅ็”จๆฅๆ‰“ๅผ€็”ต่„‘ไธญ็š„ GeoGebra ๆ–‡ไปถ๏ผŒๆ–‡ไปถๅŽ็ผ€ไธบ .ggbใ€‚
-
-# ใ€ไฟๅญ˜ใ€‘
-
-็‚นๅ‡ป่ฏฅ้€‰้กนๅฏไปฅๅฐ†ๆ–‡ไปถๅญ˜ๅ‚จไธบ GeoGebra ๆ–‡ไปถ๏ผŒๆ–‡ไปถๅŽ็ผ€ไธบ.ggbใ€‚
-
-# ใ€ๅฆๅญ˜ไธบใ€‘
-
-็‚นๅ‡ป่ฏฅ้€‰้กนๅฏไปฅๅฐ†ๆ–‡ไปถๅฆๅญ˜ไธบๆ–ฐ็š„ GeoGebra ๆ–‡ไปถ๏ผŒ็”ต่„‘ไผš่ฆๆฑ‚่พ“ๅ…ฅๆ–ฐ็š„ๆ–‡ไปถๅใ€‚
-
-# ใ€ๅฏผๅ‡บใ€‘
-
-็‚นๅ‡ป่ฏฅ้€‰้กนๅนถ้€‰ๆ‹ฉไธ‹ไธ€็บง้€‰้กนๅฏไปฅๅฐ†ๆ–‡ไปถไฟๅญ˜ๆˆๅ…ถไป–ๆ ผๅผ๏ผŒๅฆ‚๏ผš็ฝ‘้กตใ€ๅ›พ็‰‡ใ€‚
-
-ๆœ‰ไธ‹ๅˆ—ๅ›พ็‰‡ๆ ผๅผๅฏไพ›้€‰ๆ‹ฉ๏ผš
-
-PNGโ€”โ€”ๆตๅผ็ฝ‘็ปœๅ›พๅฝขๆ ผๅผ(Portable Network Graphic Format)ๆ˜ฏไธ€็งไฝๅ›พๆ–‡ไปถ(bitmap file)ๅญ˜ๅ‚จๆ ผๅผใ€‚PNGๆ ผๅผๅ›พ็‰‡ๅ› ๅ…ถ้ซ˜ไฟ็œŸๆ€งใ€้€ๆ˜Žๆ€งๅŠๆ–‡ไปถไฝ“็งฏ่พƒๅฐ็ญ‰็‰นๆ€ง๏ผŒ่ขซๅนฟๆณ›ๅบ”็”จไบŽ็ฝ‘้กต่ฎพ่ฎกใ€ๅนณ้ข่ฎพ่ฎกไธญใ€‚็ฝ‘็ปœ้€š่ฎฏไธญๅ› ๅ—ๅธฆๅฎฝๅˆถ็บฆ๏ผŒๅœจไฟ่ฏๅ›พ็‰‡ๆธ…ๆ™ฐใ€้€ผ็œŸ็š„ๅ‰ๆไธ‹๏ผŒไธ่ƒฝๅคง่Œƒๅ›ด็š„ไฝฟ็”จๆ–‡ไปถ่พƒๅคง็š„bmpใ€.jpgๆ ผๅผๆ–‡ไปถ๏ผŒๆ‰€ไปฅPNGๆ ผๅผๆ–‡ไปถ่‡ช่ฏž็”Ÿไน‹ๆ—ฅ่ตทๅฐฑๅคง่กŒๅ…ถ้“ใ€‚
-
-EPSโ€”โ€”EPS(Encapsulated PostScript)ๆ˜ฏๅค„็†ๅ›พๅƒๅทฅไฝœไธญ็š„ๆœ€้‡่ฆ็š„ๆ ผๅผ๏ผŒๅฎƒๅœจMacๅ’ŒPC็Žฏๅขƒไธ‹็š„ๅ›พๅฝขๅ’Œ็‰ˆ้ข่ฎพ่ฎกไธญๅนฟๆณ›ไฝฟ็”จใ€‚EPSๆ–‡ไปถๆ˜ฏ็›ฎๅ‰ๆกŒ้ขๅฐๅ‰็ณป็ปŸๆ™ฎ้ไฝฟ็”จ็š„้€š็”จไบคๆขๆ ผๅผๅฝ“ไธญ็š„ไธ€็ง็ปผๅˆๆ ผๅผ๏ผŒๅคง้ƒจๅˆ†ๆŽ’็‰ˆๅ’Œๅ›พๅฝขๅค„็†่ฝฏไปถ้ƒฝๅฏไปฅไฝฟ็”จๅฎƒใ€‚EPSๆ–‡ไปถๅฏไปฅๅบ”็”จไบŽๆŽ’็‰ˆใ€่ฎพ่ฎกใ€‚
-
-PStricksโ€”โ€”ๆ–นไพฟLatexไฝฟ็”จ็š„ๅ›พ็‰‡ๆ ผๅผใ€‚
-
-PGF/TikZโ€”โ€”ๆ–นไพฟLaTexไฝฟ็”จ็š„ๅ›พ็‰‡ๆ ผๅผใ€‚
-
-# ใ€ๆ‰“ๅฐ้ข„่งˆใ€‘
-
-็‚นๅ‡ป่ฏฅ้€‰้กนๅฏไปฅๆ‰“ๅผ€โ€œๆ‰“ๅฐ้ข„่งˆโ€็ช—ๅฃ๏ผŒๅฏไปฅ่พ“ๅ…ฅโ€œๆ ‡้ข˜โ€โ€œไฝœ่€…โ€โ€œๆ—ฅๆœŸโ€ๅนถ่ฎพ็ฝฎๆ˜พ็คบๆฏ”ไพ‹ใ€‚
-
-# ใ€ๅ…ณ้—ญใ€‘
-
-็‚นๅ‡ป่ฏฅ้€‰้กนๅฏไปฅๅ…ณ้—ญGeoGebra็ช—ๅฃใ€‚
-
-# 2. ็ผ–่พ‘
-
-# ใ€ๆ’ค้”€ใ€‘
-
-็‚นๅ‡ป่ฏฅ้€‰้กนๅฏไปฅๅ›žๅˆฐไธŠไธ€ไธชๅŠจไฝœใ€‚ๅทฅๅ…ทๆ ๅณไพงไนŸๆœ‰ๅŒๆ ทๅŠŸ่ƒฝ็š„ๆŒ‰้’ฎใ€‚
-
-# ใ€้‡ๅšใ€‘
-
-็‚นๅ‡ป่ฏฅ้€‰้กนๅฏไปฅ้‡ๅšไธ‹ไธ€ไธช็š„ๅŠจไฝœใ€‚ๅทฅๅ…ทๆ ๅณไพงไนŸๆœ‰ๅŒๆ ทๅŠŸ่ƒฝ็š„ๆŒ‰้’ฎใ€‚
-
-# ใ€ๅˆ ้™คใ€‘
-
-็‚นๅ‡ป่ฏฅ้€‰้กนๅฏไปฅๅˆ ้™ค้€‰ไธญ็š„ๅฏน่ฑกไปฅๅŠไธŽไน‹็›ธๅ…ณ็š„ๅฏน่ฑกใ€‚
-
-# ใ€้€‰ๆ‹ฉๅ…จ้ƒจใ€‘
-
-็‚นๅ‡ป่ฏฅ้€‰้กนๅฏไปฅ้€‰ๅ–ๆ‰€ๆœ‰ๅฏน่ฑกใ€‚
-
-# ใ€้€‰ๆ‹ฉๅฝ“ๅ‰ๅฑ‚ใ€‘
-
-็‚นๅ‡ป่ฏฅ้€‰้กนๅฏไปฅ้€‰ๅ–ๅœจๅŒไธ€ๅฑ‚็š„ๅฏน่ฑกใ€‚ไฝฟ็”จ่ฏฅ้€‰้กนๅ‰้œ€่ฆๅ…ˆ็‚น้€‰ไธ€ไธชๅฏน่ฑกไฝœไธบๅ›พๅฑ‚็š„ไพๆฎใ€‚
-
-# ใ€้€‰ๆ‹ฉๅŽ็ปงใ€‘
-
-็‚นๅ‡ป่ฏฅ้€‰้กนๅฏไปฅ้€‰ๅ–ๆ‰€ๆœ‰่ฏฅๅฏน่ฑกๆœ‰ๅ…ณ็š„ๆดพ็”Ÿๅฏน่ฑกใ€‚
-
-# ใ€้€‰ๆ‹ฉ็ฅ–ๅ…ˆใ€‘
-
-็‚นๅ‡ป่ฏฅ้€‰้กนๅฏไปฅ้€‰ๅ–ๆ‰€ๆœ‰ๅฏน่ฑก็š„็ฅ–ๅ…ˆใ€‚
-
-# ใ€ๅฑžๆ€งใ€‘
-
-็‚นๅ‡ป่ฏฅ้€‰้กนๅฏไปฅๆ‰“ๅผ€ๅฑžๆ€งๅฏน่ฏๆก†๏ผŒไพ›ไฟฎๆ”นๅฏน่ฑกๅฑžๆ€งใ€‚
-
-# 3. ๆŸฅ็œ‹
-
-# ใ€ๅๆ ‡่ฝดใ€‘
-
-็‚นๅ‡ป่ฏฅ้€‰้กนๅฏไปฅๆ˜พ็คบๆˆ–้š่—็ป˜ๅ›พๅŒบไธญ็š„ๅๆ ‡่ฝดใ€‚
-
-# ใ€็ฝ‘ๆ ผใ€‘
-
-็‚นๅ‡ป่ฏฅ้€‰้กนๅฏไปฅๆ˜พ็คบๆˆ–้š่—็ป˜ๅ›พๅŒบไธญๅๆ ‡็š„็ฝ‘ๆ ผใ€‚
-
-# ใ€ไปฃๆ•ฐๅŒบใ€‘
-
-ๅ‹พ้€‰่ฏฅ้€‰้กนๅฏไปฅๆ˜พ็คบไปฃๆ•ฐๅŒบใ€‚
-
-# ใ€็”ตๅญ่กจๆ ผใ€‘
-
-ๅ‹พ้€‰่ฏฅ้€‰้กนๅฏไปฅๆ˜พ็คบ็”ตๅญ่กจๆ ผใ€‚
-
-# ใ€่พ…ๅŠฉๅฏน่ฑกใ€‘
-
-ๅ‹พ้€‰่ฏฅ้€‰้กนๅฏไปฅๆ˜พ็คบไปฃๆ•ฐๅŽปไธญ็š„่พ…ๅŠฉๅฏน่ฑกใ€‚
-
-# ใ€็ช—ๅฃๅทฆๅณๅนถๆŽ’ใ€‘
-
-ๅ‹พ้€‰่ฏฅ้€‰้กนๅˆ™็ช—ๅฃๅธƒๅฑ€ไธบๅทฆๅณๆŽ’ๅˆ—๏ผŒๅฆๅˆ™ไธบไธŠไธ‹ๆŽ’ๅˆ—ใ€‚
-
-# ใ€ๅ‘ฝไปคๆก†ใ€‘
-
-ๅ‹พ้€‰่ฏฅ้€‰้กนๅฏไปฅๆ˜พ็คบๅ‘ฝไปคๆก†๏ผŒๅ‘ฝไปคๆก†ไฝไบŽGeoGebra็ช—ๅฃๅบ•้ƒจใ€‚
-
-# ใ€ๅ‘ฝไปคๅˆ—่กจใ€‘
-
-ๅ‹พ้€‰่ฏฅ้€‰้กนๅฏไปฅๆ˜พ็คบๅ‘ฝไปคๆก†ไธญ็š„ๅ‘ฝไปคๅˆ—่กจใ€‚
-
-# ใ€ไฝœๅ›พ่ฟ‡็จ‹ใ€‘
-
-็‚นๅ‡ป่ฏฅ้€‰้กนๅฏไปฅๆ‰“ๅผ€โ€œไฝœๅ›พ่ฟ‡็จ‹โ€็ช—ๅฃใ€‚
-
-# ใ€ไฝœๅ›พ่ฟ‡็จ‹ๅฏผ่ˆชๆกใ€‘
-
-ๅ‹พ้€‰่ฏฅ้€‰้กนๅฏไปฅๆ˜พ็คบไฝœๅ›พ่ฟ‡็จ‹ๅฏผ่ˆชๆกใ€‚
-
-# ใ€ๅˆทๆ–ฐ่ง†ๅ›พใ€‘
-
-็‚นๅ‡ป่ฏฅ้€‰้กนๅฏไปฅ้‡ๆ–ฐๆ•ด็†ๆ‰€ไปฅ่ง†ๅ›พ๏ผŒๆธ…ๆฅšๆ‰€ๆœ‰็‚นๆˆ–็บฟ็š„่ฝจ่ฟนใ€‚
-
-# ใ€้‡ๆ–ฐ่ฎก็ฎ—ๆ‰€ๆœ‰ๅฏน่ฑกใ€‘
-
-็‚นๅ‡ป่ฏฅ้€‰้กนๅฏไปฅ้‡ๆ–ฐ่ฎก็ฎ— GeoGebra ๆ–‡ไปถไธญ็š„ๆ‰€ๆœ‰ๅฏน่ฑกใ€‚
-
-# 4. ้€‰้กน
-
-# ใ€ๅธ้™„ๆ ผ็‚นใ€‘
-
-่ฏฅ้€‰้กนๅฏไปฅ้€‰ๆ‹ฉๅผ€ๅฏๆˆ–ๅ…ณ้—ญ็‚นๅธ้™„ๆ ผ็‚น็š„ๅŠŸ่ƒฝใ€‚ๅฆ‚ๆžœ้€‰ๆ‹ฉโ€œ่‡ชๅŠจโ€๏ผŒๅฝ“ๆ˜พ็คบ็ฝ‘ๆ ผๆ—ถๅธ้™„ๆ ผ็‚นๅŠŸ่ƒฝๅฐ†ๅผ€ๅฏ๏ผŒไธๆ˜พ็คบ็ฝ‘ๆ ผๆ—ถๅˆ™่ฏฅๅŠŸ่ƒฝๅ…ณ้—ญใ€‚
-
-# ใ€่ง’็š„ๅ•ไฝใ€‘
-
-่ฏฅ้€‰้กนๅฏไปฅ้€‰ๆ‹ฉ่ง’็š„ๅ•ไฝๆ˜ฏ่ง’ๅบฆๆˆ–ๆ˜ฏๅผงๅบฆใ€‚
-
-# ใ€ๆ•ฐๅ€ผ่ฟ‘ไผผใ€‘
-
-่ฏฅ้€‰้กนๅฏไปฅ้€‰ๆ‹ฉไฟ็•™็š„ๅคšๅฐ‘ไฝๅฐๆ•ฐใ€‚
-
-# ใ€็งปๅŠจ่ฟž็ปญๆ€งใ€‘
-
-ๅฏไปฅ้€‰ๆ‹ฉๅผ€ๅฏๆˆ–ๅ…ณ้—ญ็งปๅŠจ่ฟž็ปญๆ€งใ€‚
-
-# ใ€็‚น็š„ๆ ทๅผใ€‘
-
-็‚นๅ‡ป่ฏฅ้€‰้กนๅฏไปฅ้€‰ๆ‹ฉ็‚น็š„ๆ ทๅผ๏ผŒGeoGebraไธญๆœ‰7็งๆ ทๅผๅฏไพ›้€‰ๆ‹ฉใ€‚
-
-# ใ€ๅๆ ‡ใ€‘
-
-่ฏฅ้€‰้กนๅฏไปฅ้€‰ๆ‹ฉๅๆ ‡็š„ๆ˜พ็คบๆ–นๅผ๏ผŒๅ…ฑๆœ‰ไธ‰็งๅฝขๅผ๏ผš $\mathrm{A = (x,y)}$ ๏ผ› $\mathrm{A(x|y)}$ ๏ผ› $\mathrm{A:(x,y)}$ ใ€‚
-
-# ใ€ๅค้€‰ๆก†ๅคงๅฐใ€‘
-
-็‚นๅ‡ป่ฏฅ้€‰้กนๅฏไปฅ้€‰ๆ‹ฉๅค้€‰ๆก†็š„ๅคงๅฐใ€‚
-
-# ใ€็›ด่ง’ๆ ทๅผใ€‘
-
-่ฏฅ้€‰้กนๅฏไปฅ้€‰ๆ‹ฉๅฆ‚ไฝ•ๆฅๆ ‡่ฎฐ็›ด่ง’๏ผš็Ÿฉๅฝขใ€็‚นใ€ๆˆ–ไธ€่ˆฌใ€‚
-
-# ใ€ๅฏน่ฑกๆ ‡็ญพใ€‘
-
-่ฏฅ้€‰้กนๅฏไปฅ้€‰ๆ‹ฉๆ˜ฏๅฆๆ˜พ็คบๆ–ฐๅขžๅฏน่ฑก็š„ๆ ‡็ญพใ€‚ๅฏไพ›้€‰ๆ‹ฉ็š„ๆœ‰๏ผš่‡ชๅŠจใ€ๆ˜พ็คบๆ–ฐๅฏน่ฑกๆ ‡็ญพใ€้š่—ๆ–ฐๅฏน่ฑกๆ ‡็ญพๆˆ–ๅชๆ˜พ็คบๆ–ฐๅฏน่ฑกๆ ‡็ญพใ€‚
-
-# ใ€ๅญ—ไฝ“ๅคงๅฐใ€‘
-
-่ฏฅ้€‰้กนๅฏไปฅ่ฐƒๆ•ดๆ ‡็ญพๅŠๆ–‡ๅญ—็š„ๅญ—ไฝ“ๅคงๅฐใ€‚
-
-# ใ€่ฏญ่จ€ใ€‘
-
-GeoGebra ๆœ‰ๅคš็ง่ฏญ่จ€ๅฏไพ›้€‰ๆ‹ฉ๏ผŒๅฏไปฅ้€š่ฟ‡่ฏฅ้€‰้กน่ฎพๅฎš่ฏญ่จ€ใ€‚
-
-# ใ€็ป˜ๅ›พๅŒบใ€‘
-
-็‚นๅ‡ป่ฏฅ้€‰้กนๅฏไปฅๆ‰“ๅผ€็ป˜ๅ›พๅŒบๅฑžๆ€งๅฏน่ฏๆก†๏ผŒๅฏไปฅไฟฎๆ”นๅๆ ‡่ฝดใ€็ฝ‘ๆ ผไปฅๅŠ่ƒŒๆ™ฏ้ขœ่‰ฒใ€‚
-
-# ใ€ไฟๅญ˜่ฎพๅฎšใ€‘
-
-็‚นๅ‡ป่ฏฅ้€‰้กนๅฏไปฅไฟๅญ˜ๅฏนไบŽGeoGebra็š„ๅๅฅฝ่ฎพๅฎš๏ผŒไธ‹ๆฌกๆ‰“ๅผ€่ฝฏไปถๆ—ถ่œๅ•ๆ ใ€ๅทฅๅ…ทๆ ๅ’Œ็ป˜ๅ›พๅŒบ้ƒฝๅฐ†ๆ นๆฎไน‹ๅ‰็š„่ฎพๅฎšๆ˜พ็คบใ€‚
-
-# ใ€ๆขๅค้ป˜่ฎค่ฎพ็ฝฎใ€‘
-
-็‚นๅ‡ป่ฏฅ้€‰้กนๅฏไปฅๆขๅค GeoGebra ็š„้ป˜่ฎค่ฎพ็ฝฎใ€‚
-
-# 5. ๅทฅๅ…ท
-
-# ใ€ๆ–ฐๅทฅๅ…ทใ€‘
-
-ๅœจ GeoGebra ไธญๅฏไปฅๆ นๆฎ็Žฐๆœ‰็š„ๆž„ๅ›พ๏ผŒๅปบ็ซ‹่‡ชๅฎšไน‰ๅทฅๅ…ทใ€‚ๅœจๅ‡บ็Žฐ็š„ๅฏน่ฏๆก†ไธญ๏ผŒๅฏไปฅ่ฎพๅฎšๅทฅๅ…ท่พ“ๅ…ฅ่พ“ๅ‡บ็š„ๅฏน่ฑก๏ผŒๅนถไธ”้€‰ๆ‹ฉๅทฅๅ…ทๆ ๆ˜พ็คบ็š„ๅ็งฐๅ’Œๅ›พๆ ‡ใ€‚
-
-# ใ€ๅทฅๅ…ท็ฎก็†ใ€‘
-
-็‚นๅ‡ป่ฏฅ้€‰้กนๅฐ†ไผšๆ‰“ๅผ€โ€œๅทฅๅ…ท็ฎก็†โ€ๅฏน่ฏๆก†๏ผŒๅฏไปฅๅˆ ้™คๅทฅๅ…ทๆˆ–่€…ไฟฎๆ”นๅทฅๅ…ท็š„ๅ็งฐๅ’Œๅ›พๆ ‡ใ€‚ไนŸๅฏไปฅๅฐ†้€‰ๅ–็š„ๅทฅๅ…ทๅญ˜ๅ‚จไธบ.ggtๆ ผๅผใ€‚
-
-# ใ€่‡ชๅฎšไน‰ๅทฅๅ…ทๆ ใ€‘
-
-็‚นๅ‡ป่ฏฅ้€‰้กน๏ผŒๅฏไปฅ่‡ชๅฎšไน‰ๅทฅๅ…ทๆ ไธญ็š„ๅ›พๆ ‡ใ€‚ๅฏไปฅ้™ๅˆถไธ€ไบ›ๅทฅๅ…ทๅ‡บ็Žฐๅœจๅทฅๅ…ทๆ ไธญใ€‚
-
-# 6. ็ช—ๅฃ
-
-# ใ€ๆ–ฐ็ช—ๅฃใ€‘
-
-็‚นๅ‡ป่ฏฅ้€‰้กนๅฏไปฅๅปบ็ซ‹ๆ–ฐ็š„GeoGebra็ช—ๅฃใ€‚
-
-# 7. ๅธฎๅŠฉ
-
-# ใ€ๅธฎๅŠฉใ€‘
-
-็‚นๅ‡ป่ฏฅ้€‰้กนๅฏไปฅๆ‰“ๅผ€ GeoGebra ็š„ๅœจ็บฟๅธฎๅŠฉๆ–‡ไปถใ€‚ๅฆ‚ๆžœๆ˜ฏ็ฆป็บฟๅฎ‰่ฃ…็š„ GeoGebra ๅˆ™ๅฏไปฅ
-
-# ๅŠจๆ€ๆ•ฐๅญฆ่ฝฏไปถ GeoGebra ไฝฟ็”จๆŒ‡ๅ—
-
-็ฆป็บฟๆŸฅ็œ‹่ฏฅๆ–‡ไปถ๏ผŒๅฆ‚ๆžœๆ˜ฏๅœจ็บฟๅฎ‰่ฃ…็š„GeoGebraๅˆ™้œ€่ฆๅœจ็บฟๆŸฅ็œ‹ใ€‚
-
-# ใ€็ฝ‘็ซ™ใ€‘
-
-็‚นๅ‡ป่ฏฅ้€‰้กนๅฏไปฅๆ‰“ๅผ€ GeoGebra ็š„ๅฎ˜ๆ–น็ฝ‘็ซ™ใ€‚(www.geogebra.org)
-
-# ใ€่ฎบๅ›ใ€‘
-
-็‚นๅ‡ป่ฏฅ้€‰้กนๅฏไปฅๆ‰“ๅผ€ GeoGebra ็š„็”จๆˆท่ฎบๅ›ใ€‚(www.geogebra.org/forum)
-
-# ใ€GeoGebra ็ปดๅŸบใ€‘
-
-็‚นๅ‡ป่ฏฅ้€‰้กนๅฏไปฅๆ‰“ๅผ€ GeoGebra Wiki. (www.geogebra.org/wiki)
-
-# ใ€ๅ…ณไบŽ/็‰ˆๆƒๅฎฃๅ‘Šใ€‘
-
-็‚นๅ‡ป่ฏฅ้€‰้กนๅฏไปฅๆ‰“ๅผ€ๅ…ณไบŽ GeoGebra ็‰ˆๆƒไฟกๆฏ็š„็ช—ๅฃไปฅๅŠ้ธฃ่ฐขไปฅไธๅŒๆ–นๅผๆ”ฏๆŒ GeoGebra ่ฎกๅˆ’็š„ไบบๅ‘˜ใ€‚
-
-# ็ฌฌไธƒ็ซ  GeoGebra ็š„็‰นๆ€ง
-
-# 1. ๅŠจ็”ป
-
-# 1.1๏ผŽ่‡ชๅŠจๅŠจ็”ป
-
-GeoGebra ๅฏไปฅๅฎž็Žฐไธ€ไธชๆˆ–ๅคšไธช่‡ชๅ˜้‡ๆˆ–่€…่ง’ๅบฆ็š„ๅŠจ็”ปๆ•ˆๆžœ๏ผŒ่ฟ™็งๅŠจ็”ปๆ•ˆๆžœๅฏไปฅๅœจ็ป˜ๅ›พๅŒบไธญ้€š่ฟ‡ๆป‘ๆ†ๆฅๅฎž็Žฐใ€‚
-
-ๅœจ GeoGebra ไธญ๏ผŒๅฆ‚ๆžœ่ฆๅฎž็Žฐ่‡ชๅŠจๅŠจ็”ปๆ•ˆๆžœ๏ผŒ้œ€่ฆๅœจๆป‘ๆ†ไธŠ็‚นๅ‡ป้ผ ๆ ‡ๅณ้”ฎ๏ผŒๅœจๅณ้”ฎ่œๅ•ไธญๅ‹พ้€‰โ€œๅผ€ๅฏๅŠจ็”ปโ€ใ€‚ๅœจโ€œๅฑžๆ€งโ€ไธญๅฏไปฅ่ฎพๅฎšๅŠจ็”ป็š„ไธ€ไบ›่กŒไธบ๏ผš
-
-![](images/19ffe397175b0dba24727d89e45f483c1638a670f696834f08d9ab186bd2ec05.jpg)
-
-1. ๆŽงๅˆถๅŠจ็”ป็š„้€Ÿๅบฆใ€‚ๅฝ“้€Ÿๅบฆ่ฎพๅฎšไธบ 1 ๆ—ถ๏ผŒ่กจ็คบๅฎŒๆˆๆป‘ๆ†ไธŠ็š„ไธ€ไธชๅŒบ้—ด้œ€่ฆ 10 ็ง’ใ€‚
-2. ๆ”นๅ˜ๅŠจ็”ป็š„้‡ๅคๆ–นๅผใ€‚ๆœ‰๏ผš
-
-- <=>ๅพ€ๅคๆŒฏ่ก็š„
-$\cdot = >$ ๅขž้•ฟ็š„
-$< =$ ๅ‡ๅฐ‘็š„
-
-# 1.2. ๆ‰‹ๅŠจๅŠจ็”ป
-
-ๆ‰€่ฐ“โ€œๆ‰‹ๅŠจโ€ๅฐฑๆ˜ฏไฝฟ็”จ็งปๅŠจๅทฅๅ…ทๆฅๅฎž็ŽฐๅŠจ็”ปๆ•ˆๆžœ๏ผŒ็‚น้€‰่ฆๆ”นๅ˜็š„ๅ˜้‡ๆˆ–่ง’ๅบฆ๏ผŒ็„ถๅŽไฝฟ็”จ้”ฎ็›˜ไธŠ็š„+ๆˆ–-้”ฎ๏ผŒๆˆ–่€…ไธŠไธ‹ๆ–นๅ‘้”ฎ๏ผŒๆŒ็ปญๆŒ‰ไฝๆฅๅฎž็Žฐๆ‰‹ๅŠจๅ˜ๅŒ–ๆ•ˆๆžœใ€‚
-
-# 2. ๆ˜พ็คบๆกไปถ
-
-ๅœจGeoGebraไธญ้™คไบ†ๅฏไปฅ็›ดๆŽฅๆ˜พ็คบๆˆ–้š่—ๆŸไธชๅฏน่ฑก๏ผŒไนŸๅฏไปฅ่ฎพๅฎšๅฏน่ฑก็š„ๆ˜พ็คบ้š่—ๆกไปถใ€‚ไพ‹ๅฆ‚๏ผŒๅœจ็ป˜ๅ›พๅŒบไธญๆ–ฐๅขžไธ€ไธชๅค้€‰ๆก†๏ผŒๅฝ“ๅ‹พ้€‰ๆ—ถๆŸๅฏน่ฑกๆ‰ไผšๅ‡บ็Žฐ๏ผ›ๆœ‰ๆˆ–่€…่ฎพๅฎšๅฝ“ๆป‘ๆ†ๅ˜ๅŒ–ๅˆฐๆŸไธ€ไธชๅ€ผๆ—ถๅฏน่ฑกๆ‰ไผšๅ‡บ็Žฐใ€‚
-
-ๅฏไปฅ้€‰็”จ็ป˜ๅ›พๅทฅๅ…ทไธญ็š„โ€œๅฏน่ฑก็พค็ป„้š่—ๆ˜พ็คบๆŒ‰้’ฎโ€ๆฅๅปบ็ซ‹ไธ€ไธชๅค้€‰ๆก†๏ผŒๅˆฉ็”จๅ‹พ้€‰ๅค้€‰ๆก†ๆฅๆ˜พ็คบไธ€ไธชๆˆ–ๅคšไธชๅฏน่ฑกใ€‚ๆญคๅค–๏ผŒไนŸๅฏไปฅๅœจๅ‘ฝไปคๆก†้‡Œ่พ“ๅ…ฅไธ€ไธชๅธƒๆœ—ๅ‡ฝๆ•ฐ๏ผŒ้€š่ฟ‡่ฟ™ไธชๅ‡ฝๆ•ฐ็š„้€ป่พ‘ๅ€ผๆฅๆ”นๅ˜ๅฏน่ฑกๅœจ็ป˜ๅ›พไธญ็š„ๆ˜พ็คบๆˆ–้š่—ใ€‚
-
-ๅœจๅฏน่ฑกไธŠ็‚นๅ‡ป้ผ ๆ ‡ๅณ้”ฎ๏ผŒๆ‰“ๅผ€โ€œๅฑžๆ€งโ€ๅฏน่ฏๆก†๏ผŒๅœจโ€œ้ซ˜็บงโ€้€‰้กนๅกไธญๅฏไปฅ่ฎพๅฎšๅฏน่ฑก็š„ๆ˜พ็คบๆกไปถใ€‚ๅœจ่ฎพๅฎšๅฏน่ฑก็š„ๆ˜พ็คบๆกไปถๆ—ถ๏ผŒๅฏไปฅไฝฟ็”จๅณไพง็š„ไธ‹ๆ‹‰ๅˆ—่กจ๏ผŒ้€‰็”จๅ„็ง้€ป่พ‘็ฌฆๅทใ€‚ๅฆ‚๏ผš $\neq$ ใ€ $\geq$ ใ€ $\land$ ็ญ‰ใ€‚ไพ‹ๅญๅฆ‚ไธ‹๏ผš
-
-- ๅฆ‚ๆžœ a ๆ˜ฏๆ•ฐๅ€ผๆป‘ๆ†๏ผŒๅœจๆŸๅฏน่ฑก็š„ๆ˜พ็คบๆกไปถไธญ่พ“ๅ…ฅ $a < 2$ ๏ผŒ้‚ฃไนˆๅฝ“ a ๆป‘ๅˆฐๅฐไบŽ 2 ็š„ๆ—ถๅ€™่ฏฅๅฏน่ฑกๆ‰ไผšๆ˜พ็คบๅœจ็ป˜ๅ›พๅŒบใ€‚ๅฆ‚ไธ‹ๅ›พๆ‰€็คบ๏ผŒๅฝ“ a ๅคงไบŽ 2 ๆ—ถ๏ผŒๅœ†้š่—๏ผ›ๅฝ“ a ๅฐไบŽ 2 ๆ—ถ๏ผŒๅœ†ๆ˜พ็คบใ€‚
-
-![](images/0723cef93dde6cfe62119524aad193e729e6d06ff99cf18a422118e82908fb11.jpg)
-
-- ๅฆ‚ๆžœ b ๆ˜ฏๅธƒๆœ—ไปฃๆ•ฐ๏ผŒๅฏไปฅ่ฟ›่กŒ้€ป่พ‘่ฟ็ฎ—๏ผŒๅฝ“ b ็š„ๅ€ผไธบ true ๆ—ถ๏ผŒๅฏน่ฑกๆ˜พ็คบ๏ผ›ๅฝ“ b ็š„ๅ€ผไธบ false ๆ—ถ๏ผŒๅฏน่ฑก้š่—ใ€‚
-- ๅฆ‚ๆžœ $\mathrm{g}$ ๅ’Œ $\mathrm{h}$ ๆ˜ฏไธคๆก็›ด็บฟ๏ผŒๅฏไปฅไฝฟ็”จ $\mathrm{g} \parallel \mathrm{h}$ ไฝœไธบๆกไปถ๏ผŒๅฝ“ไธค็›ด็บฟๅนณ่กŒๆ—ถๅฏน่ฑกๆ‰ไผšๆ˜พ็คบใ€‚
-
-# 3. ่‡ชๅฎšไน‰ๅทฅๅ…ท
-
-ๅœจ GeoGebra ๅฏไปฅๆ นๆฎ็”จๆˆท็š„้œ€่ฆ่‡ชๅทฑๅปบ็ซ‹็ป˜ๅ›พๅทฅๅ…ทใ€‚
-
-# 3.1. ๅปบ็ซ‹่‡ชๅฎšไน‰ๅทฅๅ…ท
-
-้ฆ–ๅ…ˆๅปบ็ซ‹ๅทฅๅ…ท็ป˜ๅˆถๅŽ็š„ๅ›พๅƒ๏ผŒ็„ถๅŽ็‚นๅ‡ปโ€œๅทฅๅ…ทโ€่œๅ•ไธญ็š„โ€œๆ–ฐๅทฅๅ…ทโ€๏ผŒๅœจๅฏน่ฏๆก†็š„ๅกซๅ†™่พ“ๅ…ฅๅฏน่ฑกใ€่พ“ๅ‡บๅฏน่ฑกใ€ๅ็งฐไธŽๅ›พๆ ‡็ฏไฟกๆฏ๏ผŒๅปบ็ซ‹่‡ชๅฎšไน‰ๅทฅๅ…ทใ€‚
-
-![](images/147afd8c1e943deffd4fde44e29da4b1b6badf1f445a22f85bc44a5b173afea6.jpg)
-
-ไพ‹ๅฆ‚๏ผšๅปบ็ซ‹ไธ€ไธชๅฏไปฅ็”Ÿๆˆๅ•ไฝๅœ†็š„ๅทฅๅ…ทใ€‚ๅธŒๆœ›้€š่ฟ‡ๅœจ็ป˜ๅ›พๅŒบ็‚น้€‰ไธ€ไธช็‚นๆˆ–็‚นๅ‡ป็ป˜ๅ›พๅŒบ็ฉบ็™ฝๅค„ๅฐฑๅฏไปฅ็”ปๅ‡บไธ€ไธชๅ•ไฝๅœ†ใ€‚
-
-- ้ฆ–ๅ…ˆ็”ปๅ‡บไธ€ไธชๅ•ไฝๅœ†ใ€‚ๅปบ็ซ‹ไธ€ไธช่‡ช็”ฑ็‚นA๏ผŒ็„ถๅŽ้€‰ๆ‹ฉ็ป˜ๅ›พๅทฅๅ…ทโ€œๅœ†๏ผˆๆŒ‡ๅฎšๅœ†ๅฟƒไธŽๅŠๅพ„๏ผ‰โ€็”ปๅ‡บไธ€ไธชๅŠๅพ„ไธบ1็š„ๅœ†๏ผˆc๏ผ‰ใ€‚
-
-- ็‚นๅ‡ปโ€œๅทฅๅ…ทโ€่œๅ•ไธญ็š„โ€œๆ–ฐๅทฅๅ…ทโ€ใ€‚
-- ้€‰ๆ‹ฉ่พ“ๅ‡บๅฏน่ฑก๏ผš็‚นๅ‡ปไธ‹ๆฅ่œๅ•๏ผŒ้€‰ๆ‹ฉโ€œๅœ†cโ€ใ€‚
-- ้€‰ๆ‹ฉ่พ“ๅ…ฅๅฏน่ฑก๏ผšGeoGebraไผš่‡ชๅŠจๅกซๅ……่พ“ๅ…ฅๅฏน่ฑก๏ผˆๆญคๅค„ไธบ็‚นA๏ผ‰ใ€‚ๅฆ‚ๆžœ่ฆ้€‰ๆ‹ฉๅ…ถไป–๏ผŒไนŸๅฏไปฅๅœจไธ‹ๆ‹‰่œๅ•ไธญ้€‰ๆ‹ฉใ€‚
-- ่พ“ๅ…ฅๅ็งฐ๏ผš่พ“ๅ…ฅๅทฅๅ…ทๆˆ–ๅ‘ฝไปค็š„ๅ็งฐโ€œ็”ปๅ•ไฝๅœ†โ€ใ€‚
-- ๅทฅๅ…ท่ฏดๆ˜Ž๏ผšๅฆ‚ๆœ‰ๅฟ…่ฆ๏ผŒๅฏไปฅๅกซๅ†™ๅทฅๅ…ท่ฏดๆ˜Ž๏ผŒ่งฃ้‡Šๅฆ‚ไฝ•ไฝฟ็”จ่ฟ™ไธช่‡ชๅฎšไน‰ๅทฅๅ…ทใ€‚
-- ๅœจๅทฅๅ…ทๆ ไธญๆ˜พ็คบ๏ผšๅ‹พ้€‰่ฟ™ไธช้€‰้กน๏ผŒๅฏไปฅ่ฎฉ่‡ชๅฎšไน‰ๅทฅๅ…ทๅœจๅทฅๅ…ทๆ ไธญๅ‡บ็Žฐใ€‚
-- ๅ›พๆ ‡๏ผšๅฏไปฅ้€‰ๆ‹ฉ็”ต่„‘ไธญ็š„ๅ›พ็‰‡ไฝœไธบ่ฏฅๅทฅๅ…ท็š„ๅ›พๆ ‡๏ผŒๅ›พ็‰‡ไผš่‡ช้€‚ๅบ”ๅคงๅฐ๏ผŒๅ˜ๆˆไธ€ไธชๆŒ‰้’ฎๅคงๅฐๅ’Œๅ…ถไป–็ป˜ๅ›พๅทฅๅ…ทๅ›พๆ ‡็ฑปไผผใ€‚
-
-![](images/b96a9a5976e42ce3ce4bacf4f1363a2ece55793dc99ba97e7cff113c832931a9.jpg)
-
-ๅœจๅทฅๅ…ทๆ ไธญ้€‰ไธญโ€œ็”ปๅ•ไฝๅœ†โ€ๅทฅๅ…ท๏ผŒ็‚นๅ‡ป็ป˜ๅ›พๅŒบ็ฉบ็™ฝๅค„ๆˆ–่€…็‚น้€‰ๅทฒๆœ‰็‚น๏ผŒๅฐฑๅฏไปฅ็”ปๅ‡บไธ€ไธชๅ•ไฝๅœ†ไบ†ใ€‚
-
-# 3.2. ไฟๅญ˜่‡ชๅฎšไน‰ๅทฅๅ…ท
-
-่‡ชๅฎšไน‰ๅทฅๅ…ทๅฏไปฅๅญ˜ๆˆๅ•็‹ฌ็š„ๆ–‡ไปถ๏ผŒๅˆ†ไบซไพ›ๅ…ถไป–็š„ GeoGebra ็”จๆˆทไฝฟ็”จใ€‚
-
-็‚นๅ‡ปโ€œๅทฅๅ…ทโ€่œๅ•ไธญ็š„โ€œๅทฅๅ…ท็ฎก็†โ€๏ผŒๅœจ่œๅ•ไธญ้€‰ๆ‹ฉ่ฆไฟๅญ˜็š„ๅทฅๅ…ท๏ผŒ็‚นๅ‡ปโ€œๅฆๅญ˜ไธบโ€ๆฅๅญ˜ๅ‚จๅทฅๅ…ทใ€‚ๅทฅๅ…ทๅฐ†ไฟๅญ˜ไธบ.ggtๆ ผๅผ๏ผŒ่€Œไธ€่ˆฌ็š„GeoGebraๆ–‡ไปถไธบ.ggbใ€‚
-
-![](images/ef33a4b4f9ed4a95da03c3d31d4755109be81ba39ccfeeb7d194e1cba62ea707.jpg)
-
-# 3.3. ไฝฟ็”จ่‡ชๅฎšไน‰ๅทฅๅ…ท
-
-็‚นๅ‡ปโ€œๆ–‡ไปถโ€่œๅ•ไธญ็š„โ€œๆ–ฐๅปบโ€๏ผŒๅฐ†ๆ‰“ๅผ€ไธ€ไธชๆ–ฐ็š„GeoGebraๆ–‡ไปถ๏ผŒ่€Œ่‡ชๅฎšไน‰ๅทฅๅ…ท่ฟ˜ไผšๅ‡บ็Žฐๅœจๅทฅๅ…ทๆ ไธญใ€‚ไฝ†ๆ˜ฏ๏ผŒๅฆ‚ๆžœๅ…ณ้—ญไบ†GeoGebra่ฝฏไปถ๏ผŒ่‡ชๅฎšไน‰ๅทฅๅ…ทๅฏ่ƒฝๅฐ†ไธๅ†ๅ‡บ็Žฐๅœจๅทฅๅ…ทๆ ไธญใ€‚ๆœ‰ๅ‡ ็งๆ–นๆณ•ๅฏไปฅ้‡ๆ–ฐ่ฐƒ็”จ่‡ชๅฎšไน‰ๅทฅๅ…ท๏ผš
-
-- ๅœจๅปบ็ซ‹่‡ชๅฎšไน‰ๅทฅๅ…ทๅŽ๏ผŒ็‚นๅ‡ปโ€œ้€‰้กนโ€่œๅ•ไธญ็š„โ€œไฟๅญ˜่ฎพๅฎšโ€๏ผŒ้‚ฃไนˆ่‡ชๅฎšไน‰ๅทฅๅ…ทๅฐ†ไผšไธ€
-
-็›ดๅ‡บ็Žฐๅœจๅทฅๅ…ทๆ ไธญใ€‚
-
-- ๅฆ‚ๆžœๅทฒ็ปๅฐ†่‡ชๅฎšไน‰ๅทฅๅ…ทๅฆๅญ˜ไธบไบ† ggt ๆ ผๅผ๏ผŒๅฏไปฅ็‚นๅ‡ปโ€œๆ–‡ไปถโ€่œๅ•ไธญ็š„โ€œๆ‰“ๅผ€โ€้€‰ๆ‹ฉ่ฆ็”จ็š„่‡ชๅฎšไน‰ๅทฅๅ…ท๏ผŒๆ‰“ๅผ€ๅŽ่‡ชๅฎšไน‰ๅทฅๅ…ทๅฐ†ไผšๅ‡บ็Žฐๅœจๅทฅๅ…ทๆ ไธญใ€‚ๆ‰“ๅผ€ๅทฅๅ…ทๆ–‡ไปถไธไผšๅฝฑๅ“ๅทฒๆœ‰็š„็ป˜ๅ›พๅŒบ๏ผŒๅชไผšๅœจๅทฅๅ…ทๆ ไธญๆ–ฐๅขžไธ€ไธชๅทฅๅ…ทใ€‚
-
-# 4. ๅŠจๆ€้ขœ่‰ฒ
-
-ไฝฟ็”จ้ผ ๆ ‡ๅณ้”ฎ็‚นๅ‡ปๅฏน่ฑก๏ผŒๆ‰“ๅผ€โ€œๅฑžๆ€งโ€ๅฏน่ฏๆก†๏ผŒๅฏไปฅ่ฎพ็ฝฎๅฏน่ฑก็š„้ขœ่‰ฒใ€‚ๅœจโ€œ้ซ˜็บงโ€้€‰้กนๅกไธญๅฏไปฅๅฏนๅฏน่ฑก่ฎพๅฎšๅŠจๆ€้ขœ่‰ฒใ€‚
-
-![](images/56b41731de0942edcab8fcf94a007b1a261badf3189cb08935185a46e4d20f4f.jpg)
-
-ๅฏไปฅๅœจ่พ“ๅ…ฅๆก†ไธญ่พ“ๅ…ฅ0ๅˆฐ1ไน‹้—ด็š„ๆ•ฐๅ€ผๆˆ–ๅ‡ฝๆ•ฐ๏ผŒๅฏน่ฑก้ขœ่‰ฒๅฐ†ไผš็”ฑRGB๏ผˆ็บข็ปฟ่“๏ผ‰ไธ‰่€…็š„้…่‰ฒๅ†ณๅฎšใ€‚ไพ‹ๅฆ‚๏ผš
-
-- ๅปบ็ซ‹ไธ‰ไธชๆป‘ๆ† a, b, c, ๅนถ่ฎพ็ฝฎๅฎƒไปฌ็š„ๅ˜ๅŒ–่Œƒๅ›ดไธบ 0 ๅˆฐ 1ใ€‚
-- ไฝฟ็”จโ€œๅคš่พนๅฝขโ€ๅทฅๅ…ท็”ปๅ‡บไธ€ไธชๅคš่พนๅฝขใ€‚
-- ๅœจโ€œๅฑžๆ€งโ€ๅฏน่ฏๆก†ไธญ้€‰ๆ‹ฉโ€œ้ซ˜็บงโ€้€‰้กนๅก๏ผŒๅœจไธ‰ไธช้ขœ่‰ฒๅŽๅˆ†ๅˆซ่พ“ๅ…ฅa๏ผŒb๏ผŒcใ€‚
-- ๅ…ณ้—ญๅฏน่ฏๆก†๏ผŒๆป‘ๅŠจๆป‘ๆ†๏ผŒๅฏไปฅๅ‘็Žฐๅคš่พนๅฝข็š„้ขœ่‰ฒไนŸ้š็€ๅ˜ๅŒ–ใ€‚
-
-![](images/75eae72b4716b8b6e440600c1475716bcb4078e383afc99a297fb8578163bce0.jpg)
-
-่ฏดๆ˜Ž๏ผš่ฟ™้‡Œไฝฟ็”จ็š„ๅฎž้™…ๆ˜ฏ RGB ้…่‰ฒๅŽŸ็†ใ€‚RGB ่‰ฒๅฝฉๆจกๅผๆ˜ฏไธ€็ง้ขœ่‰ฒๆ ‡ๅ‡†๏ผŒๆ˜ฏ้€š่ฟ‡ๅฏน็บข(R)ใ€็ปฟ(G)ใ€่“(B)ไธ‰ไธช้ขœ่‰ฒ้€š้“็š„ๅ˜ๅŒ–ไปฅๅŠๅฎƒไปฌ็›ธไบ’ไน‹้—ด็š„ๅ ๅŠ ๆฅๅพ—ๅˆฐๅ„ๅผๅ„ๆ ท็š„้ขœ่‰ฒ็š„๏ผŒ่ฟ™ไธชๆ ‡ๅ‡†ๅ‡ ไนŽๅŒ…ๆ‹ฌไบ†ไบบ็ฑป่ง†ๅŠ›ๆ‰€่ƒฝๆ„Ÿ็Ÿฅ็š„ๆ‰€ๆœ‰้ขœ่‰ฒ๏ผŒๆ˜ฏ็›ฎๅ‰่ฟ็”จๆœ€ๅนฟ็š„้ขœ่‰ฒ็ณป็ปŸไน‹ไธ€ใ€‚
-
-# 5. JavaScript
-
-JavaScript ๆ˜ฏไธ€็งๅนฟๆณ›็”จไบŽๅฎขๆˆท็ซฏ Web ๅผ€ๅ‘็š„่„šๆœฌ่ฏญ่จ€๏ผŒๅธธ็”จๆฅ็ป™ HTML ็ฝ‘้กตๆทปๅŠ ๅŠจๆ€ๅŠŸ่ƒฝใ€‚GeoGebra ๆไพ›็š„ JavaScript ็•Œ้ขๅฏนไบŽไผšไฝฟ็”จ HTML ๆบไปฃ็ ็ผ–่พ‘็ฝ‘้กต็š„ไฝฟ็”จ่€…ๆฅ่ฏดๆ˜ฏไธ€ไธช้žๅธธไพฟๅˆฉๆœ‰่ถฃ็š„ๅŠŸ่ƒฝใ€‚
-
-ๅœจ GeoGebra ๅฏผๅ‡บ็š„ๅŠจๆ€็ฝ‘้กตไธญ๏ผŒGeoGebra ๆไพ›ไบ†ไธ€ไธช JavaScript ็•Œ้ข๏ผŒๅฏไปฅๆ–นไพฟ็š„ๅœจ็ฝ‘้กตไธญๆทปๅŠ ๆŒ‰้’ฎ็ญ‰็ญ‰๏ผŒๆฅๅฎž็ŽฐๅŠจๆ€ๆ•ˆๆžœใ€‚
-
-# 6. ๅฏน่ฑกๅ็งฐไธŽๆ ‡็ญพ
-
-# 6.1. ๆ˜พ็คบ้š่—ๅฏน่ฑกๅ็งฐ
-
-ๅœจ็ป˜ๅ›พๅŒบไธญๆœ‰ๅ‡ ไธชๆ–นๆณ•ๅฏไปฅๆ˜พ็คบๆˆ–้š่—ๅฏน่ฑก็š„ๅ็งฐ๏ผš
-
-- ็‚นๅ‡ปๅทฅๅ…ทๆ ไธญ็š„โ€œๆ˜พ็คบๆˆ–้š่—ๅฏน่ฑกโ€ๅทฅๅ…ท๏ผŒ็„ถๅŽ็‚นๅ‡ป่ฆๆ˜พ็คบๆˆ–้š่—ๅ็งฐ็š„ๅฏน่ฑกใ€‚
-- ไฝฟ็”จ้ผ ๆ ‡ๅณ้”ฎ็‚นๅ‡ปๅฏน่ฑก๏ผŒๅ‹พ้€‰ๆˆ–ๅ–ๆถˆโ€œๆ˜พ็คบๅฏน่ฑกโ€ใ€‚
-
-- ไฝฟ็”จ้ผ ๆ ‡ๅณ้”ฎ็‚นๅ‡ปๅฏน่ฑก๏ผŒๆ‰“ๅผ€โ€œๅฑžๆ€งโ€ๅฏน่ฏๆก†๏ผŒๅœจโ€œๅŸบๆœฌโ€้€‰้กนๅกไธญๅ‹พ้€‰ๆˆ–ๅ–ๆถˆโ€œๆ˜พ็คบๅฏน่ฑกโ€ใ€‚
-
-# 6.2. ๅ็งฐๅ’Œๆ•ฐๅ€ผ
-
-ๅœจGeoGebraไธญๆฏไธชๅฏน่ฑก้ƒฝๆœ‰ๅ”ฏไธ€็š„ๅ็งฐๆฅๆ ‡็คบ๏ผŒๅฏไปฅ้€‰ๆ‹ฉๆ˜พ็คบๅฏน่ฑก็š„ๅ็งฐๆˆ–ๆ•ฐๅ€ผใ€‚ไฝฟ็”จ้ผ ๆ ‡ๅณ้”ฎ็‚นๅ‡ปๅฏน่ฑก๏ผŒๆ‰“ๅผ€โ€œๅฑžๆ€งโ€ๅฏน่ฏๆก†๏ผŒๅœจโ€œๅŸบๆœฌโ€้€‰้กนๅกไธญ๏ผŒๅฏไปฅๅ‹พ้€‰ๆ˜พ็คบโ€œๅ็งฐโ€โ€œๅ็งฐๅ’Œๅ€ผโ€โ€œๆ•ฐๅ€ผโ€ๅ’Œโ€œๆ ‡็ญพๆ–‡ๅญ—โ€ๅ››็งๆจกๅผใ€‚
-
-![](images/06deee00f7fa17682afe22ce3ea5b9de260f6a358e7118001cf337f9fc421a3c.jpg)
-
-ๅœจGeoGebraไธญ๏ผŒไธ€ไธช็‚น็š„ๆ•ฐๅ€ผๅณไธบๅ…ถๅๆ ‡๏ผŒไธ€ไธชๅ‡ฝๆ•ฐ็š„ๆ•ฐๅ€ผไธบๅ…ถๆ–น็จ‹ๅผใ€‚
-
-# 6.3. ๆ ‡็ญพๆ–‡ๅญ—
-
-GeoGebra ๅฏนๆ‰€ไปฅ็š„ๅฏน่ฑกๆไพ›ๆ ‡็ญพๆ ‡็คบ๏ผŒๅฏไปฅ้™„ๅŠ ๅœจๅฏน่ฑกไธŠใ€‚ไฝฟ็”จ้ผ ๆ ‡ๅณ้”ฎ็‚นๅ‡ปๅฏน่ฑก๏ผŒๆ‰“ๅผ€โ€œๅฑžๆ€งโ€ๅฏน่ฏๆก†๏ผŒๅœจโ€œๅŸบๆœฌโ€้€‰้กนๅกไธญ๏ผŒ่พ“ๅ…ฅๆ ‡็ญพๆ–‡ๅญ—ๅนถ้€‰ๆ‹ฉๆ˜พ็คบโ€œๆ ‡็ญพๆ–‡ๅญ—โ€ๅณๅฏใ€‚
-
-# 7. ๅ›พๅฑ‚
-
-ๅœจ็ป˜ๅ›พๅŒบไธญๅฏ่ƒฝไผšๅ‡บ็Žฐๅคšไธชๅฏน่ฑก็›ธ่ฆ†็›–็š„ๆƒ…ๅ†ต๏ผŒๅ›พๅฑ‚็š„้€‰ๅฎšๅฏไปฅๅ†ณๅฎšๅ“ชไบ›ๅฏน่ฑกๅฏไปฅ่ขซๆ“ไฝœใ€‚
-
-้ป˜่ฎคๆƒ…ๅ†ตไธ‹๏ผŒๆ‰€ไปฅ็ป˜ๅ›พๅŒบไธญ็ป˜ๅˆถ็š„ๅฏน่ฑกๅœจๅ›พๅฑ‚0๏ผŒไนŸๅฐฑๆ˜ฏ็ป˜ๅ›พๅŒบ็š„่ƒŒๆ™ฏๅฑ‚ใ€‚GeoGebraไธ€ๅ…ฑๆไพ›ไบ†10ไธชๅ›พๅฑ‚๏ผŒไปŽ0ๅˆฐ9๏ผŒๆ•ฐๅญ—่ถŠๅคง่ถŠๅœจไธŠๅฑ‚ใ€‚ไฝฟ็”จ้ผ ๆ ‡ๅณ้”ฎ็‚นๅ‡ปๅฏน่ฑก๏ผŒๆ‰“ๅผ€โ€œๅฑžๆ€งโ€ๅฏน่ฏๆก†๏ผŒๅœจโ€œ้ซ˜็บงโ€้€‰้กนๅกไธญ๏ผŒๅฏไปฅๆ”น้€‰ๅฏน่ฑกๆ‰€ๅค„็š„ๅ›พๅฑ‚ใ€‚
-
-ๅœจ GeoGebra ๅฏไปฅๆ–นไพฟ็š„้€‰ๅ–ๅŒไธ€ๅฑ‚็š„ๆ‰€ๆœ‰ๅฏน่ฑก๏ผŒ็‚น้€‰ๆŸไธ€ๅ›พๅฑ‚็š„ไธ€ไธชๅฏน่ฑก๏ผŒ็„ถๅŽๅœจโ€œ็ผ–่พ‘โ€่œๅ•ไธญ้€‰ๆ‹ฉโ€œ้€‰ๆ‹ฉๅฝ“ๅ‰ๅฑ‚โ€๏ผŒๅฐฑๅฏไปฅ้€‰ๆ‹ฉ่ฏฅๅ›พๅฑ‚็š„ๆ‰€ไปฅๅฏน่ฑกไบ†ใ€‚
-
-# 8. ้‡ๆ–ฐๅฎšไน‰
-
-ๅœจ็ป˜ๅ›พๅŒบไธญไฟฎๆ”นๅฏน่ฑกๆ—ถ๏ผŒไฝฟ็”จ้ผ ๆ ‡ๅทฆ้”ฎๅŒๅ‡ปๅฏน่ฑก๏ผŒๅฏไปฅๅผนๅ‡บโ€œ้‡ๆ–ฐๅฎšไน‰โ€ๅฏน่ฏๆก†๏ผŒ็”ฑๆญคๅฏไปฅๆ–นไพฟ็š„ไฟฎๆ”นๅฏน่ฑกใ€‚
-
-![](images/8f4b5cdbbe1197563e9ccac19623ef34b9e47d20df4bc2a1d45efa5643cebca5.jpg)
-
-ไพ‹ๅญๅฆ‚ไธ‹๏ผš
-
-- ๅฆ‚ๆžœ่ฆ่ฎฉไธ€ๆก้€š่ฟ‡็‚น A ๅ’Œ B ็š„็›ด็บฟๅ˜ๆˆ็บฟๆฎต AB๏ผŒๅฏไปฅๆ‰“ๅผ€ๅฏน่ฑก็š„โ€œ้‡ๆ–ฐๅฎšไน‰โ€ๅฏน่ฏๆก†๏ผŒ็„ถๅŽไฟฎๆ”น่กจ่พพๅผไธบ Segment[A,B]ๅณๅฏใ€‚
-
-ๅ›บๅฎšๅฏน่ฑกๆ˜ฏๆ— ๆณ•้‡ๆ–ฐๅฎšไน‰็š„๏ผŒๅฆ‚ๆžœ่ฆ้‡ๆ–ฐๅฎšไน‰ๅ›บๅฎšๅฏน่ฑก๏ผŒๅฏไปฅๅœจโ€œๅฑžๆ€งโ€ๅฏน่ฏๆก†ไธญ็š„โ€œๅŸบๆœฌโ€้€‰้กนๅกไธ‹ๅ–ๆถˆโ€œๅ›บๅฎšๅฏน่ฑกโ€็š„ๅ‹พ้€‰ใ€‚
-
-# 9. ็—•่ฟนไธŽ่ฝจ่ฟน
-
-ๅœจGeoGebraไธญ๏ผŒๅฏไปฅ่ฎฉๅฏน่ฑก็งปๅŠจๆ—ถๅœจ็ป˜ๅ›พๅŒบไธญ็•™ไธ‹่ฝจ่ฟนใ€‚ๅœจๅฏน่ฑกไธŠ็‚นๅ‡ปๅณ้”ฎ๏ผŒๅœจๅณ้”ฎ่œๅ•ไธญ็‚นๅ‡ปโ€œๆ˜พ็คบ็งปๅŠจ็—•่ฟนโ€ใ€‚ๆญคๅŽไฟฎๆ”นๅฏน่ฑกๆ—ถ๏ผŒGeoGebraไผš่ฟฝ่ธชๅฏน่ฑก็š„ไฝ็ฝฎๅ˜ๅŒ–ๅนถ็•™ไธ‹็—•่ฟนใ€‚
-
-ๆญคๅค–๏ผŒ่ฟ˜ๅฏไปฅ่ฎฉ GeoGebra ่‡ช่กŒๅปบ็ซ‹็‚น็š„่ฟๅˆฐ่ฝจ่ฟนใ€‚ไฝฟ็”จๅทฅๅ…ทๆ ไธญ็š„โ€œ่ฝจ่ฟนโ€ๅทฅๅ…ท๏ผŒๆˆ–ๅœจๅ‘ฝไปคๆก†ไธญ่พ“ๅ…ฅโ€œLocusโ€ๅ‘ฝไปคใ€‚่ฟๅŠจ่ฝจ่ฟนๅฟ…้กปไพ่ต–ๅฆๅค–ไธ€็‚น็š„็งปๅŠจใ€‚
-
-ไพ‹ๅญๅฆ‚ไธ‹๏ผš
-
-- ๅปบ็ซ‹็‚น $\mathrm{A} = (-1, - 1)$ ๅ’Œ็‚น $\mathbf{B} = (1, - 1)$ ๏ผŒๅนถๅปบ็ซ‹็บฟๆฎตABใ€‚
-- ๅœจ็บฟๆฎตไธŠๅ–ไธ€็‚น C๏ผŒ็‚น C ๅช่ƒฝๆฒฟ็บฟๆฎต็งปๅŠจใ€‚
-- ๅปบ็ซ‹ไธ€็‚น $\mathbf{P}$ , ไธŽ $\mathbf{C}$ ็›ธๅ…ณ, $\mathrm{P} = (\mathrm{x}(\mathrm{C}), \mathrm{x}(\mathrm{C})^{\wedge}2)$ .
-- ไฝฟ็”จๅทฅๅ…ทๆˆ–ๅ‘ฝไปคๆฅๅปบ็ซ‹็‚น P ็š„่ฝจ่ฟนใ€‚
-
-![](images/0063264b982a9f8ac8123498ca0901c9eba39ec31dfb5d20edd1baff444c2f60.jpg)
diff --git a/docs/ref/wiki/geogrebra-llms.md b/docs/ref/wiki/geogrebra-llms.md
deleted file mode 100644
index a9e0f0591..000000000
--- a/docs/ref/wiki/geogrebra-llms.md
+++ /dev/null
@@ -1,7 +0,0 @@
-## This page describes the GeoGebra Apps API to interact with GeoGebra apps. Please see GeoGebra Apps Embedding on how to embed our apps into your web pages.
-
-- https://geogebra.github.io/docs/reference/en/GeoGebra_Apps_API/
-
-## This page lists all parameters that can be used to configure GeoGebra Apps. Please see GeoGebra Apps Embedding to learn how to embed GeoGebra apps into your pages and where these parameters can be used.
-
-- https://geogebra.github.io/docs/reference/en/GeoGebra_App_Parameters/
diff --git a/docs/ref/wiki/langchain-llms.txt b/docs/ref/wiki/langchain-llms.txt
deleted file mode 100644
index 9100a70d6..000000000
--- a/docs/ref/wiki/langchain-llms.txt
+++ /dev/null
@@ -1,149 +0,0 @@
-
-# Guides
-
-- [LangGraph Documentation](https://langchain-ai.github.io/langgraph/index/): This page provides an overview of the LangGraph project, including its logo and essential scripts for functionality within MkDocs. It also includes a reference to the README.md file for detailed information about the project. The content is designed to be user-friendly and visually appealing.
-- [LangGraph Quickstart Guide](https://langchain-ai.github.io/langgraph/agents/agents/): This quickstart guide provides step-by-step instructions for setting up and using LangGraph's prebuilt components to create agentic systems. It covers prerequisites, installation, agent creation, configuration of language models, and advanced features like memory and structured output. Ideal for developers looking to leverage LangGraph for building intelligent agents.
-- [Getting Started with LangGraph: Building AI Agents](https://langchain-ai.github.io/langgraph/concepts/why-langgraph/): This page provides an overview of LangGraph, a platform designed for developers to create adaptable AI agents. It highlights key features such as reliability, extensibility, and streaming support, and offers a series of tutorials to help users build a support chatbot with various capabilities. By following the tutorials, developers will learn to implement essential functionalities like conversation state management and human-in-the-loop controls.
-- [Building a Basic Chatbot with LangGraph](https://langchain-ai.github.io/langgraph/tutorials/get-started/1-build-basic-chatbot/): This tutorial guides you through the process of creating a basic chatbot using LangGraph. It covers prerequisites, installation of necessary packages, and step-by-step instructions to set up a state machine for the chatbot. By the end of the tutorial, you will have a functional chatbot that can engage in simple conversations.
-- [Integrating Web Search Tools into Your Chatbot](https://langchain-ai.github.io/langgraph/tutorials/get-started/2-add-tools/): This tutorial guides you through the process of enhancing your chatbot's capabilities by integrating a web search tool, specifically the Tavily Search Engine. It covers prerequisites, installation, configuration, and the implementation of the search tool within a LangGraph-based chatbot. By the end, you'll have a functional chatbot that can retrieve real-time information to answer user queries beyond its training data.
-- [Implementing Memory in Chatbots with LangGraph](https://langchain-ai.github.io/langgraph/tutorials/get-started/3-add-memory/): This page provides a comprehensive guide on how to add memory functionality to chatbots using LangGraph's persistent checkpointing feature. It details the steps to create a `MemorySaver` checkpointer, compile the graph, and interact with the chatbot to maintain context across multiple interactions. Additionally, it explains how to inspect the state of the chatbot and highlights the advantages of checkpointing over simple memory solutions.
-- [Implementing Human-in-the-Loop Controls in LangGraph](https://langchain-ai.github.io/langgraph/tutorials/get-started/4-human-in-the-loop/): This page provides a comprehensive guide on adding human-in-the-loop controls to LangGraph workflows, enabling agents to pause execution for human input. It details the use of the `interrupt` function to facilitate user feedback and outlines the steps to integrate a `human_assistance` tool into a chatbot. Additionally, the tutorial covers graph compilation, visualization, and resuming execution with human input.
-- [Customizing State in LangGraph for Enhanced Chatbot Functionality](https://langchain-ai.github.io/langgraph/tutorials/get-started/5-customize-state/): This tutorial guides you through the process of adding custom fields to the state in LangGraph, enabling complex behaviors in your chatbot without relying solely on message lists. You will learn how to implement human-in-the-loop controls to verify information before it is stored in the state. By the end of this tutorial, you will have a deeper understanding of state management and how to enhance your chatbot's capabilities.
-- [Implementing Time Travel in LangGraph Chatbots](https://langchain-ai.github.io/langgraph/tutorials/get-started/6-time-travel/): This page provides a comprehensive guide on utilizing the time travel functionality in LangGraph to enhance chatbot interactions. It covers how to rewind, add steps, and replay the state history of a chatbot, allowing users to explore different outcomes and fix mistakes. Additionally, it includes code snippets and practical examples to help developers implement these features effectively.
-- [LangGraph Deployment Options](https://langchain-ai.github.io/langgraph/tutorials/deployment/): This page outlines the various options available for deploying LangGraph applications, including local testing and different cloud-based solutions. It details free deployment methods such as Local, as well as production options like Cloud SaaS and self-hosted solutions. Each deployment method is linked to further documentation for in-depth guidance.
-- [Agent Development with LangGraph](https://langchain-ai.github.io/langgraph/agents/overview/): This page provides an overview of agent development using LangGraph, highlighting its prebuilt components and capabilities for building agent-based applications. It explains the structure of an agent, key features such as memory integration and human-in-the-loop control, and outlines the package ecosystem available for developers. With LangGraph, users can focus on application logic while leveraging robust infrastructure for state management and feedback.
-- [Guide to Running Agents in LangGraph](https://langchain-ai.github.io/langgraph/agents/run_agents/): This page provides a comprehensive overview of how to execute agents in LangGraph, detailing both synchronous and asynchronous methods. It covers input and output formats, streaming capabilities, and how to manage execution limits to prevent infinite loops. Additionally, it includes code examples and links to further resources for deeper understanding.
-- [Streaming Data in LangGraph](https://langchain-ai.github.io/langgraph/agents/streaming/): This page provides an overview of streaming data types in LangGraph, including agent progress, LLM tokens, and custom updates. It includes code examples for both synchronous and asynchronous streaming methods. Additionally, it covers how to stream multiple modes and disable streaming when necessary.
-- [Configuring Chat Models for Agents](https://langchain-ai.github.io/langgraph/agents/models/): This page provides detailed instructions on how to configure various chat models for use with agents in LangChain. It covers model initialization, tool calling support, and how to specify models from different providers such as OpenAI, Anthropic, Azure, Google Gemini, and AWS Bedrock. Additionally, it includes information on disabling streaming, adding model fallbacks, and links to further resources.
-- [Using Tools in LangChain](https://langchain-ai.github.io/langgraph/agents/tools/): This page provides an overview of how to define, customize, and manage tools within the LangChain framework. It covers creating simple tools, handling tool errors, and utilizing prebuilt integrations for enhanced functionality. Additionally, it discusses advanced features such as memory management and controlling tool behavior during agent execution.
-- [Integrating MCP with LangGraph Agents](https://langchain-ai.github.io/langgraph/agents/mcp/): This page provides a comprehensive guide on how to integrate the Model Context Protocol (MCP) with LangGraph agents using the `langchain-mcp-adapters` library. It includes installation instructions, example code for using MCP tools, and guidance on creating custom MCP servers. Additional resources for further reading on MCP are also provided.
-- [Understanding Context in LangGraph Agents](https://langchain-ai.github.io/langgraph/agents/context/): This page provides an overview of how to supply context to agents in LangGraph, detailing the three primary types: Config, State, and Long-Term Memory. It explains how to use these context types to enhance agent behavior, customize prompts, and access context in tools. Additionally, it includes code examples for implementing context in various scenarios.
-- [Understanding Memory in LangGraph for Conversational Agents](https://langchain-ai.github.io/langgraph/agents/memory/): This documentation page provides an overview of the two types of memory supported by LangGraph: short-term and long-term memory. It explains how to implement these memory types in conversational agents, including code examples and best practices for managing message history. Additionally, it covers the use of persistent storage and tools for enhancing memory functionality.
-- [Implementing Human-in-the-Loop in LangGraph](https://langchain-ai.github.io/langgraph/agents/human-in-the-loop/): This documentation page provides a comprehensive guide on how to implement Human-in-the-Loop (HIL) features in LangGraph, allowing for human review and approval of tool calls in agents. It covers the use of the `interrupt()` function to pause execution for human input, along with practical examples and code snippets. Additionally, it explains how to create a wrapper to add HIL capabilities to any tool seamlessly.
-- [Building Multi-Agent Systems](https://langchain-ai.github.io/langgraph/agents/multi-agent/): This page provides an overview of multi-agent systems, detailing how to create and manage them using supervisor and swarm architectures. It includes practical examples of implementing a flight and hotel booking assistant using the LangGraph libraries. Additionally, the page explains the concept of handoffs between agents, allowing for seamless communication and task delegation.
-- [Evaluating Agent Performance with LangSmith](https://langchain-ai.github.io/langgraph/agents/evals/): This page provides a comprehensive guide on how to evaluate the performance of agents using the LangSmith evaluations framework. It includes instructions on defining evaluator functions, utilizing prebuilt evaluators from the AgentEvals package, and running evaluations with specific datasets. Additionally, it covers different evaluation techniques, including trajectory matching and using LLMs as judges.
-- [Deploying Your LangGraph Agent](https://langchain-ai.github.io/langgraph/agents/deployment/): This page provides a comprehensive guide on how to deploy a LangGraph agent, including setting up a LangGraph app for both local development and production. It covers essential features, installation steps, and configuration requirements, along with instructions for launching the local server and utilizing the LangGraph Studio Web UI for debugging. Additionally, it offers links to further resources for deployment options.
-- [Agent Chat UI Documentation](https://langchain-ai.github.io/langgraph/agents/ui/): This page provides comprehensive guidance on using the Agent Chat UI for interacting with LangGraph agents. It covers setup instructions, features like human-in-the-loop workflows, and the integration of generative UI components. Users can find links to relevant resources and tips for customizing their chat experience.
-- [Overview of Agent Architectures in LLM Applications](https://langchain-ai.github.io/langgraph/concepts/agentic_concepts/): This page provides a comprehensive overview of various agent architectures used in large language model (LLM) applications, highlighting their control flows and functionalities. It discusses key concepts such as routers, tool-calling agents, memory management, and planning, along with customization options for specific tasks. Additionally, it covers advanced features like human-in-the-loop, parallelization, subgraphs, and reflection mechanisms to enhance agent performance.
-- [Understanding Workflows and Agents in LangGraph](https://langchain-ai.github.io/langgraph/tutorials/workflows/): This documentation page provides an in-depth overview of workflows and agents within LangGraph, highlighting their differences and use cases. It covers various patterns for building agentic systems, including setup instructions, building blocks, and advanced concepts like prompt chaining, parallelization, and routing. Additionally, it offers practical examples and code snippets to help users implement these workflows effectively.
-- [Understanding LangGraph: Core Concepts and Components](https://langchain-ai.github.io/langgraph/concepts/low_level/): This documentation page provides an in-depth overview of the core concepts of LangGraph, focusing on how agent workflows are modeled as graphs. It covers essential components such as States, Nodes, and Edges, and explains how they interact to create complex workflows. Additionally, it discusses graph compilation, message handling, and configuration options to enhance the functionality of your graphs.
-- [LangGraph Runtime Overview](https://langchain-ai.github.io/langgraph/concepts/pregel/): This page provides a comprehensive overview of the LangGraph runtime, specifically focusing on the Pregel execution model. It details the structure and functionality of actors and channels within the Pregel framework, along with examples of how to implement applications. Additionally, it introduces high-level APIs for creating Pregel applications using StateGraph and Functional API.
-- [Using the LangGraph API: A Comprehensive Guide](https://langchain-ai.github.io/langgraph/how-tos/graph-api/): This documentation provides a detailed overview of how to utilize the LangGraph Graph API, covering essential concepts such as state management, node creation, and control flow. It includes practical examples for building sequences, branches, and loops, as well as advanced features like retry policies and async execution. Additionally, the guide offers insights into visualizing graphs and integrating with external tools.
-- [LangGraph Streaming System](https://langchain-ai.github.io/langgraph/concepts/streaming/): This page provides an overview of the streaming capabilities of LangGraph, enabling real-time updates for enhanced user experiences. It details the types of data that can be streamed, including workflow progress, LLM tokens, and custom updates. Additionally, it outlines various functionalities and modes available for streaming within the LangGraph framework.
-- [Streaming Outputs in LangGraph](https://langchain-ai.github.io/langgraph/how-tos/streaming/): This documentation page provides an overview of how to utilize the streaming capabilities of LangGraph, including synchronous and asynchronous streaming methods. It covers various stream modes, such as updates, values, and custom data, along with examples of how to implement them in your graphs. Additionally, it discusses the integration of Large Language Models (LLMs) and how to handle streaming outputs effectively.
-- [LangGraph Persistence and Checkpointing](https://langchain-ai.github.io/langgraph/concepts/persistence/): This page provides an in-depth overview of the persistence layer in LangGraph, focusing on the use of checkpointers to save graph states at each super-step. It covers key concepts such as threads, checkpoints, state retrieval, and memory management, along with practical examples and code snippets. Additionally, it discusses advanced features like time travel, fault tolerance, and the integration of memory stores for cross-thread information retention.
-- [Understanding Durable Execution in LangGraph](https://langchain-ai.github.io/langgraph/concepts/durable_execution/): This page provides an overview of durable execution, a technique that allows workflows to save their progress and resume from key points. It details the requirements for implementing durable execution in LangGraph, including the use of persistence and tasks to ensure deterministic and consistent replay. Additionally, it covers how to handle pausing, resuming, and recovering workflows effectively.
-- [Implementing Memory in LangGraph for AI Applications](https://langchain-ai.github.io/langgraph/how-tos/persistence/): This documentation page provides a comprehensive guide on adding persistence to AI applications using LangGraph. It covers both short-term and long-term memory implementations, including code examples for managing conversation context and user-specific data. Additionally, it discusses the use of various storage backends and semantic search capabilities for enhanced memory management.
-- [Understanding Memory in AI Agents](https://langchain-ai.github.io/langgraph/concepts/memory/): This documentation page provides an in-depth overview of memory types in AI agents, focusing on short-term and long-term memory. It explains how these memory types can be implemented and managed within applications using LangGraph, including techniques for handling conversation history and storing memories. Additionally, it discusses the importance of memory in enhancing user interactions and the various strategies for writing and updating memories.
-- [Memory Management in LangGraph for AI Applications](https://langchain-ai.github.io/langgraph/how-tos/memory/): This page provides an overview of memory management in LangGraph, focusing on short-term and long-term memory functionalities essential for conversational agents. It includes detailed instructions on how to implement memory strategies such as trimming, summarizing, and deleting messages to optimize conversation tracking without exceeding context limits. Code examples are provided to illustrate the implementation of these memory management techniques.
-- [Human-in-the-Loop Workflows in LangGraph](https://langchain-ai.github.io/langgraph/concepts/human_in_the_loop/): This page provides an overview of the human-in-the-loop (HIL) capabilities within LangGraph, highlighting how human intervention can enhance automated processes. It details key features such as persistent execution state and flexible integration points, along with typical use cases for validating outputs and providing context. Additionally, it outlines the implementation of HIL through specific functions and primitives.
-- [Implementing Human-in-the-Loop Workflows with Interrupts](https://langchain-ai.github.io/langgraph/how-tos/human_in_the_loop/add-human-in-the-loop/): This documentation page provides a comprehensive guide on using the `interrupt` function in LangGraph to facilitate human-in-the-loop workflows. It covers the implementation details, design patterns, and best practices for pausing graph execution to gather human input, as well as how to resume execution with that input. Additionally, it highlights common pitfalls and offers extended examples to illustrate various use cases.
-- [Understanding Breakpoints in LangGraph](https://langchain-ai.github.io/langgraph/concepts/breakpoints/): This page provides an overview of breakpoints in LangGraph, which allow users to pause graph execution at specific points for inspection. It explains how breakpoints utilize the persistence layer to save the graph state and how execution can be resumed after inspection. An illustrative example is included to demonstrate the concept visually.
-- [Using Breakpoints in Graph Execution](https://langchain-ai.github.io/langgraph/how-tos/human_in_the_loop/breakpoints/): This page provides a comprehensive guide on how to implement breakpoints in graph execution for debugging purposes. It covers the requirements for setting breakpoints, the difference between static and dynamic breakpoints, and includes code examples for both compile-time and run-time configurations. Additionally, it explains how to manage breakpoints in subgraphs.
-- [Time Travel Functionality in LangGraph](https://langchain-ai.github.io/langgraph/concepts/time-travel/): This page explains the time travel feature in LangGraph, which allows users to analyze and debug decision-making processes in non-deterministic systems. It outlines how to understand reasoning, debug mistakes, and explore alternative solutions by resuming execution from prior checkpoints. The functionality enables users to create new forks in the execution history for deeper insights.
-- [Using Time-Travel in LangGraph](https://langchain-ai.github.io/langgraph/how-tos/human_in_the_loop/time-travel/): This page provides a comprehensive guide on how to implement time-travel functionality in LangGraph. It outlines the steps to run a graph, identify checkpoints, modify graph states, and resume execution from specific checkpoints. Additionally, an example workflow is included to illustrate the process of generating and modifying jokes using LangGraph.
-- [Integrating Tools with AI Models](https://langchain-ai.github.io/langgraph/concepts/tools/): This page provides an overview of how AI models can interact with external systems using tool calling. It explains the concept of tools, their integration with chat models, and how to create or use prebuilt tools for various applications. Additionally, it highlights the importance of relevance in tool invocation and offers links to further resources and guides.
-- [Using Tools in LangChain](https://langchain-ai.github.io/langgraph/how-tos/tool-calling/): This documentation page provides a comprehensive guide on how to create and utilize tools within the LangChain framework. It covers defining simple and customized tools, managing tool arguments, accessing configuration and state, and integrating tools with chat models and agents. Additionally, it discusses error handling and strategies for managing a large number of tools.
-- [Understanding Subgraphs in LangGraph](https://langchain-ai.github.io/langgraph/concepts/subgraphs/): This page provides an overview of subgraphs in LangGraph, explaining their role as encapsulated nodes within larger graphs. It discusses the benefits of using subgraphs, such as facilitating multi-agent systems and enabling independent team work. Additionally, it outlines the communication methods between parent graphs and subgraphs, detailing scenarios involving shared and different state schemas.
-- [Using Subgraphs in LangGraph](https://langchain-ai.github.io/langgraph/how-tos/subgraph/): This guide provides an overview of how to effectively use subgraphs within LangGraph, including communication methods between parent graphs and subgraphs. It covers shared and different state schemas, setup instructions, and examples for implementing subgraphs in multi-agent systems. Additionally, it discusses persistence, state management, and streaming outputs from subgraphs.
-- [Understanding Multi-Agent Systems](https://langchain-ai.github.io/langgraph/concepts/multi_agent/): This page provides an in-depth overview of multi-agent systems, focusing on the architecture and benefits of using multiple independent agents to manage complex applications. It discusses various multi-agent architectures, including network, supervisor, and hierarchical models, as well as communication strategies and state management techniques for effective agent interaction.
-- [Building Multi-Agent Systems with LangGraph](https://langchain-ai.github.io/langgraph/how-tos/multi_agent/): This guide provides an overview of how to build multi-agent systems using LangGraph, focusing on the implementation of handoffs for agent communication. It covers the creation of independent agents, the use of handoffs to transfer control and data between agents, and examples of prebuilt multi-agent architectures. Additionally, it includes code snippets and best practices for managing agent interactions and state.
-- [Understanding the Functional API in LangGraph](https://langchain-ai.github.io/langgraph/concepts/functional_api/): This documentation page provides an overview of the Functional API in LangGraph, detailing its key features such as persistence, memory, and human-in-the-loop capabilities. It explains how to define workflows using the `@entrypoint` and `@task` decorators, along with examples and best practices for implementing workflows with state management and streaming. Additionally, it compares the Functional API with the Graph API, highlighting their differences and use cases.
-- [Functional API Documentation](https://langchain-ai.github.io/langgraph/how-tos/use-functional-api/): This page provides comprehensive guidance on using the Functional API, including creating workflows, handling parallel execution, and integrating with other APIs. It covers various features such as retry policies, caching, and human-in-the-loop workflows, along with practical examples. Additionally, it discusses memory management strategies for both short-term and long-term use cases.
-- [Overview of LangGraph Platform](https://langchain-ai.github.io/langgraph/concepts/langgraph_platform/): The LangGraph Platform is designed for developing, deploying, and managing long-running agent workflows with ease. This page outlines the platform's features, including streaming support, background runs, and memory management, which enhance the performance and reliability of agent applications. Additionally, it provides links to resources for getting started and deploying agents effectively.
-- [LangGraph Platform Quickstart Guide](https://langchain-ai.github.io/langgraph/tutorials/langgraph-platform/local-server/): This quickstart guide provides step-by-step instructions for running a LangGraph application locally. It covers prerequisites, installation of the LangGraph CLI, app creation, dependency installation, and launching the server. Additionally, it includes testing your application using the LangGraph Studio and API.
-- [LangGraph Platform Deployment Quickstart](https://langchain-ai.github.io/langgraph/cloud/quick_start/): This quickstart guide provides step-by-step instructions for deploying an application on the LangGraph Platform using GitHub. It covers prerequisites, repository creation, deployment procedures, and testing your application and API. Follow these steps to successfully set up and run your application in the LangGraph environment.
-- [Overview of LangGraph Platform Components](https://langchain-ai.github.io/langgraph/concepts/langgraph_components/): This page provides a comprehensive overview of the various components that make up the LangGraph Platform. It details the functionalities of each component, including the LangGraph Server, CLI, Studio, SDKs, and the control and data planes. Users can learn how these components work together to facilitate the development, deployment, and management of LangGraph applications.
-- [LangGraph Server Documentation](https://langchain-ai.github.io/langgraph/concepts/langgraph_server/): This page provides an overview of the LangGraph Server, an API designed for creating and managing agent-based applications. It details the server versions, application structure, deployment components, and the use of assistants, persistence, and task queues. Additionally, it includes links to further resources and guides for effective deployment and usage.
-- [LangGraph Application Structure Guide](https://langchain-ai.github.io/langgraph/concepts/application_structure/): This page provides an overview of the structure of a LangGraph application, detailing the essential components such as the configuration file, dependencies, graphs, and environment variables. It includes examples of directory structures for both Python and JavaScript applications, as well as guidance on how to specify the necessary information for deployment. Additionally, it covers key concepts related to the configuration file and the role of dependencies and environment variables in the application.
-- [Setting Up a LangGraph Application with requirements.txt](https://langchain-ai.github.io/langgraph/cloud/deployment/setup/): This guide provides step-by-step instructions for configuring a LangGraph application for deployment using a requirements.txt file to manage dependencies. It covers essential topics such as specifying dependencies, defining environment variables, and creating the LangGraph configuration file. Additionally, it includes examples and tips for alternative setup methods.
-- [Setting Up a LangGraph Application with pyproject.toml](https://langchain-ai.github.io/langgraph/cloud/deployment/setup_pyproject/): This guide provides step-by-step instructions for configuring a LangGraph application using the `pyproject.toml` file for dependency management. It covers the necessary components, including specifying dependencies, environment variables, and defining graphs, along with examples and best practices. Additionally, it offers tips for alternative setups and links to further resources for deployment.
-- [Setting Up a LangGraph.js Application](https://langchain-ai.github.io/langgraph/cloud/deployment/setup_javascript/): This guide provides step-by-step instructions for configuring a LangGraph.js application for deployment on the LangGraph Platform or for self-hosting. It covers essential topics such as specifying dependencies, environment variables, defining graphs, and creating the necessary configuration file. By following this walkthrough, users will learn how to structure their application and prepare it for deployment.
-- [Customizing Your Dockerfile in LangGraph](https://langchain-ai.github.io/langgraph/cloud/deployment/custom_docker/): This page provides a guide on how to customize your Dockerfile by adding additional commands through the `langgraph.json` configuration file. It explains how to specify the `dockerfile_lines` key to include necessary dependencies, such as installing system packages and Python libraries. An example is provided to illustrate the process of integrating the Pillow library for image processing.
-- [LangGraph CLI Documentation](https://langchain-ai.github.io/langgraph/concepts/langgraph_cli/): This page provides an overview of the LangGraph CLI, a command-line tool for building and running the LangGraph API server locally. It includes installation instructions, a list of core commands, and their descriptions to help users effectively utilize the CLI for development and deployment. For further details, users can refer to the LangGraph CLI Reference.
-- [LangGraph Studio Documentation](https://langchain-ai.github.io/langgraph/concepts/langgraph_studio/): This page provides an overview of LangGraph Studio, an IDE for visualizing, interacting with, and debugging agentic systems that utilize the LangGraph Server API. It outlines the prerequisites for using the studio, key features, and the two operational modes: Graph mode and Chat mode. Additionally, it includes links to further resources for getting started with LangGraph Studio.
-- [Getting Started with LangGraph Studio](https://langchain-ai.github.io/langgraph/cloud/how-tos/studio/quick_start/): This page provides a comprehensive guide on how to connect and use LangGraph Studio with both deployed applications on the LangGraph Platform and local development servers. It includes instructions for installation, running the server, accessing the Studio UI, and debugging options. Additionally, troubleshooting tips and next steps for further exploration of LangGraph Studio features are also provided.
-- [Running Applications: A Comprehensive Guide](https://langchain-ai.github.io/langgraph/cloud/how-tos/invoke_studio/): This page provides a detailed guide on how to submit a run to your application, covering both Graph and Chat modes. It includes instructions on specifying input, managing assistants, enabling streaming, and using breakpoints. Additionally, it offers tips for running applications from specific checkpoints in existing threads.
-- [Managing Assistants in LangGraph Studio](https://langchain-ai.github.io/langgraph/cloud/how-tos/studio/manage_assistants/): This page provides guidance on how to manage assistants within LangGraph Studio, including viewing, editing, and updating assistant configurations. It covers both Graph mode and Chat mode, detailing how to activate assistants and make changes to their settings. Users will learn how to navigate the interface to effectively manage their assistant configurations for graph runs.
-- [Managing Threads in Studio](https://langchain-ai.github.io/langgraph/cloud/how-tos/threads_studio/): This page provides a comprehensive guide on how to view and edit threads within the Studio application. It covers both Graph and Chat modes, detailing the steps to create new threads, view thread history, and edit thread states. Additionally, it includes links to related concepts for further learning.
-- [Modifying Prompts in LangGraph Studio](https://langchain-ai.github.io/langgraph/cloud/how-tos/iterate_graph_studio/): This page provides guidance on how to modify prompts within LangGraph Studio using two methods: direct node editing and the LangSmith Playground interface. It details the configuration options available for nodes, including `langgraph_nodes` and `langgraph_type`, along with examples for both Pydantic models and dataclasses. Additionally, it outlines the steps for editing prompts in the UI and utilizing the LangSmith Playground for testing LLM calls.
-- [Debugging LangSmith Traces in LangGraph Studio](https://langchain-ai.github.io/langgraph/cloud/how-tos/clone_traces_studio/): This guide provides step-by-step instructions for opening and debugging LangSmith traces in LangGraph Studio. It covers how to deploy threads and test local agents with remote traces, ensuring a seamless debugging experience. Additionally, it outlines the requirements for local agents and the process for cloning threads for local testing.
-- [How to Add Nodes to LangSmith Datasets](https://langchain-ai.github.io/langgraph/cloud/how-tos/datasets_studio/): This guide provides step-by-step instructions on how to add examples from nodes in the thread log to LangSmith datasets. It covers selecting threads, choosing nodes, and editing inputs/outputs before adding them to the dataset. Additionally, it includes links to further resources on evaluating intermediate steps.
-- [LangGraph SDK Documentation](https://langchain-ai.github.io/langgraph/concepts/sdk/): This page provides an overview of the LangGraph SDK, including installation instructions for both Python and JavaScript. It details the synchronous and asynchronous client options available for interacting with the LangGraph Server. Additionally, it offers links to further resources and references for the SDK.
-- [Integrating Semantic Search in LangGraph](https://langchain-ai.github.io/langgraph/cloud/deployment/semantic_search/): This guide provides step-by-step instructions on how to implement semantic search in your LangGraph deployment. It covers prerequisites, configuration of the store, and usage examples for searching memories and documents by semantic similarity. Additionally, it includes information on using custom embeddings and querying via the LangGraph SDK.
-- [Configuring Time-to-Live (TTL) in LangGraph Applications](https://langchain-ai.github.io/langgraph/how-tos/ttl/configure_ttl/): This guide provides detailed instructions on how to configure Time-to-Live (TTL) settings for checkpoints and store items in LangGraph applications. It covers the necessary configurations in the `langgraph.json` file, including strategies for managing data lifecycle and memory. Additionally, it explains how to combine TTL configurations and override them at runtime.
-- [LangGraph Authentication & Access Control Overview](https://langchain-ai.github.io/langgraph/concepts/auth/): This page provides a comprehensive guide to the authentication and authorization mechanisms within the LangGraph Platform. It explains the core concepts of authentication versus authorization, outlines default security models, and details the system architecture involved in user identity management. Additionally, it covers implementation examples for authentication and authorization handlers, along with common access patterns and supported resources.
-- [Custom Authentication Setup for LangGraph Platform](https://langchain-ai.github.io/langgraph/how-tos/auth/custom_auth/): This guide provides step-by-step instructions on how to implement custom authentication in your LangGraph Platform application. It covers the necessary prerequisites, implementation details, configuration updates, and client connection methods. The guide is applicable to both managed and Enterprise self-hosted deployments.
-- [Documenting API Authentication in OpenAPI for LangGraph](https://langchain-ai.github.io/langgraph/how-tos/auth/openapi_security/): This guide provides instructions on how to customize the security schema for your LangGraph Platform API documentation using OpenAPI. It covers default security schemes for both LangGraph Platform and self-hosted deployments, as well as how to implement custom authentication. Additionally, it includes examples for OAuth2 and API key authentication, along with testing procedures.
-- [Managing Assistants in LangGraph](https://langchain-ai.github.io/langgraph/concepts/assistants/): This page provides an overview of how to create and manage assistants within the LangGraph Platform, which allows for separate configuration of agents without altering the core graph logic. It covers the prerequisites, configuration options, and versioning of assistants, highlighting their role in optimizing agent performance for different tasks. Additionally, it includes links to relevant API references and how-to guides for further assistance.
-- [Managing Assistants in LangGraph](https://langchain-ai.github.io/langgraph/cloud/how-tos/configuration_cloud/): This documentation page provides a comprehensive guide on how to create, configure, and manage assistants using the LangGraph SDK and Platform UI. It includes code examples in Python and JavaScript, as well as instructions for creating new versions and using previous versions of assistants. Additionally, it covers the process of utilizing assistants in various environments.
-- [Understanding Threads in LangGraph](https://langchain-ai.github.io/langgraph/cloud/concepts/threads/): This page provides an overview of threads in the LangGraph framework, detailing how they accumulate the state of runs and the importance of checkpoints. It explains the process of creating threads and retrieving their current and historical states. Additionally, it offers links to further resources on threads, checkpoints, and the LangGraph API for managing thread states.
-- [Managing Threads in LangGraph](https://langchain-ai.github.io/langgraph/cloud/how-tos/use_threads/): This documentation page provides a comprehensive guide on how to create, view, and inspect threads using the LangGraph SDK. It includes detailed instructions for creating empty threads, copying existing threads, and initializing threads with prepopulated states. Additionally, it covers how to list and inspect threads, including filtering and sorting options.
-- [Understanding Runs in LangGraph Platform](https://langchain-ai.github.io/langgraph/cloud/concepts/runs/): This page provides an overview of what constitutes a run in the LangGraph Platform, including its input, configuration, and metadata. It also highlights the ability to execute runs on threads and offers links to the API reference for managing runs.
-- [Starting Background Runs for Your Agent](https://langchain-ai.github.io/langgraph/cloud/how-tos/background_run/): This guide provides step-by-step instructions on how to initiate background runs for your agent using Python, JavaScript, and CURL. It covers the setup process, checking current runs, starting new runs, and retrieving the final results. By following this documentation, users can efficiently manage long-running jobs within their applications.
-- [Running Multiple Agents on the Same Thread in LangGraph](https://langchain-ai.github.io/langgraph/cloud/how-tos/same-thread/): This documentation page explains how to run multiple agents on the same thread using the LangGraph Platform. It provides step-by-step examples in Python, JavaScript, and CURL to create agents, run them on a thread, and demonstrate how the second agent can utilize the context from the first agent's responses. By following the examples, users can learn to effectively manage multiple agents and their interactions.
-- [Scheduling Cron Jobs with LangGraph](https://langchain-ai.github.io/langgraph/cloud/how-tos/cron_jobs/): This page provides a comprehensive guide on how to schedule cron jobs using the LangGraph Platform. It includes setup instructions for different programming languages, examples of creating and deleting cron jobs, and details on managing stateless cron jobs. Users will learn how to automate tasks such as sending weekly emails without writing custom scripts.
-- [Guide to Stateless Runs in LangGraph](https://langchain-ai.github.io/langgraph/cloud/how-tos/stateless_runs/): This page provides a comprehensive guide on how to implement stateless runs using the LangGraph Platform. It includes setup instructions for various programming languages, examples of streaming results, and methods for waiting for stateless results. Users will learn how to execute runs without maintaining persistent state, making their applications more efficient.
-- [Configurable Headers in LangGraph](https://langchain-ai.github.io/langgraph/cloud/how-tos/configurable_headers/): This page provides guidance on how to configure headers dynamically in the LangGraph platform to modify agent behavior and permissions. It details how to include or exclude specific headers in the runtime configuration using the `langgraph.json` file. Additionally, it explains how to access these headers within your graph and offers an option to opt-out of configurable headers.
-- [Streaming in LangGraph Platform](https://langchain-ai.github.io/langgraph/cloud/concepts/streaming/): This page provides an overview of streaming capabilities within the LangGraph Platform, detailing the various streaming modes available for LLM applications. It includes instructions for creating streaming runs, handling stateless runs, and joining active background runs. Additionally, code examples in Python, JavaScript, and cURL are provided to illustrate the implementation of these features.
-- [Streaming Outputs with LangGraph SDK](https://langchain-ai.github.io/langgraph/cloud/how-tos/streaming/): This documentation page provides detailed instructions on how to stream outputs from the LangGraph API server using the LangGraph SDK in Python, JavaScript, and cURL. It covers various streaming modes, including updates, values, and custom data, along with examples for each mode. Additionally, it explains how to handle subgraphs, debug information, and LLM tokens during streaming.
-- [Human-in-the-Loop Workflows in LangGraph](https://langchain-ai.github.io/langgraph/cloud/how-tos/add-human-in-the-loop/): This page provides an overview of the human-in-the-loop (HIL) capabilities in LangGraph, allowing for human intervention in automated processes. It details the `interrupt` function, which pauses execution for human input, and includes examples in Python, JavaScript, and cURL for implementing HIL workflows. Additionally, it links to further resources for understanding and utilizing HIL features effectively.
-- [Using Breakpoints in LangGraph](https://langchain-ai.github.io/langgraph/cloud/how-tos/human_in_the_loop_breakpoint/): This page provides an overview of how to set and use breakpoints in LangGraph to pause graph execution for inspection. It includes examples for setting breakpoints at compile time and run time in Python, JavaScript, and cURL. Additionally, it offers guidance on resuming execution after hitting a breakpoint.
-- [Using Time Travel in LangGraph](https://langchain-ai.github.io/langgraph/cloud/how-tos/human_in_the_loop_time_travel/): This page provides a comprehensive guide on how to utilize the time travel functionality in LangGraph, allowing users to resume execution from previous checkpoints. It outlines the steps to run a graph, identify checkpoints, modify graph states, and resume execution. Additionally, the page includes code examples in Python, JavaScript, and cURL for practical implementation.
-- [Model Context Protocol (MCP) Endpoint Documentation](https://langchain-ai.github.io/langgraph/concepts/server-mcp/): This page provides comprehensive documentation on the Model Context Protocol (MCP) endpoint available in LangGraph Server. It covers the requirements for using MCP, how to expose agents as MCP tools, and includes examples for connecting with MCP-compliant clients in various programming languages. Additionally, it outlines session behavior, authentication, and instructions for disabling the MCP endpoint.
-- [Managing Double Texting in LangGraph](https://langchain-ai.github.io/langgraph/concepts/double_texting/): This page provides an overview of how to handle double texting scenarios in LangGraph, where users may send multiple messages before the first has completed. It outlines four strategies: Reject, Enqueue, Interrupt, and Rollback, each with links to detailed configuration guides. Prerequisites for implementing these strategies include having the LangGraph Server set up.
-- [Using the Interrupt Option in Double Texting](https://langchain-ai.github.io/langgraph/cloud/how-tos/interrupt_concurrent/): This guide provides detailed instructions on how to utilize the `interrupt` option for double texting, allowing users to interrupt a prior run of a graph and start a new one. It includes setup instructions, code examples in Python, JavaScript, and CURL, as well as guidance on viewing run results and verifying the status of interrupted runs. Familiarity with double texting is assumed, and a link to a conceptual guide is provided for further understanding.
-- [Using the Rollback Option in Double Texting](https://langchain-ai.github.io/langgraph/cloud/how-tos/rollback_concurrent/): This guide provides detailed instructions on how to utilize the `rollback` option in double texting, which allows users to interrupt a previous run and start a new one while permanently deleting the prior run from the database. It includes setup instructions, code examples in Python, JavaScript, and CURL, and demonstrates how to view run results and verify the deletion of the original run. Familiarity with double texting is assumed, and a link to a conceptual guide is provided for further reading.
-- [Using the Reject Option in Double Texting](https://langchain-ai.github.io/langgraph/cloud/how-tos/reject_concurrent/): This guide provides an overview of the `reject` option in double texting, which prevents new runs of a graph from starting while an original run is still in progress. It includes setup instructions, code examples in Python, JavaScript, and CURL, and demonstrates how to handle errors when attempting to create concurrent runs. Additionally, it shows how to view the results of the original run after the rejection.
-- [Using the Enqueue Option for Double Texting](https://langchain-ai.github.io/langgraph/cloud/how-tos/enqueue_concurrent/): This guide provides an overview of the `enqueue` option for double texting, which allows interruptions to be queued and executed in the order they are received. It includes setup instructions, code examples in Python, JavaScript, and CURL for creating runs, and methods for viewing run results. Familiarity with double texting concepts is assumed, and a helper function for output formatting is also provided.
-- [Understanding Webhooks in LangGraph Platform](https://langchain-ai.github.io/langgraph/cloud/concepts/webhooks/): This page provides an overview of webhooks and their role in enabling event-driven communication between LangGraph Platform applications and external services. It explains how to use the `webhook` parameter in various endpoints to trigger requests upon the completion of API calls. For further details, a link to a comprehensive how-to guide is also included.
-- [Using Webhooks with LangGraph Platform](https://langchain-ai.github.io/langgraph/cloud/how-tos/webhooks/): This documentation page provides a comprehensive guide on how to implement webhooks in the LangGraph Platform to receive updates after API calls. It includes details on supported endpoints, setup instructions for different programming languages, and examples of how to specify webhook parameters in API requests. Additionally, it covers security measures and testing tools for verifying webhook functionality.
-- [Scheduling Tasks with Cron Jobs on LangGraph Platform](https://langchain-ai.github.io/langgraph/cloud/concepts/cron_jobs/): This page provides an overview of how to use cron jobs on the LangGraph Platform to run assistants on a defined schedule. It explains the process of setting up a cron job, including specifying the schedule, assistant, and input. Additionally, it includes links to a how-to guide and API reference for further details.
-- [Scheduling Cron Jobs with LangGraph](https://langchain-ai.github.io/langgraph/cloud/how-tos/cron_jobs/): This page provides a comprehensive guide on how to use cron jobs with the LangGraph Platform to automate graph executions on a schedule. It includes setup instructions for various programming languages, examples of creating and deleting cron jobs, and tips for managing stateless cron jobs. Users will learn how to efficiently schedule tasks without manual intervention, ensuring timely execution of automated processes.
-- [Adding Custom Lifespan Events in LangGraph](https://langchain-ai.github.io/langgraph/how-tos/http/custom_lifespan/): This page provides a guide on how to implement custom lifespan events in your LangGraph Platform applications, specifically for Python deployments. It covers the initialization and cleanup of resources during server startup and shutdown using FastAPI. Additionally, it includes code examples and configuration steps to help you integrate these events into your application.
-- [Adding Custom Middleware to LangGraph Platform](https://langchain-ai.github.io/langgraph/how-tos/http/custom_middleware/): This page provides a step-by-step guide on how to add custom middleware to your server when deploying agents to the LangGraph Platform. It covers the necessary code implementation using FastAPI, configuration settings in `langgraph.json`, and instructions for testing and deploying your application. Additionally, it offers links to related topics such as custom routes and lifespan events for further customization.
-- [Adding Custom Routes in LangGraph](https://langchain-ai.github.io/langgraph/how-tos/http/custom_routes/): This page provides a step-by-step guide on how to add custom routes to your LangGraph platform application using a Starlette or FastAPI app. It includes instructions for creating a new app, configuring the `langgraph.json` file, and testing the server locally. Additionally, it explains how custom routes can override default endpoints and offers suggestions for further customization.
-- [LangGraph Deployment Options](https://langchain-ai.github.io/langgraph/concepts/deployment_options/): This page outlines the various deployment options available for the LangGraph Platform, including Cloud SaaS, Self-Hosted Data Plane, Self-Hosted Control Plane, and Standalone Container. Each option is described in detail, highlighting key features, management responsibilities, and compatibility. A comparison table is also provided to help users choose the best deployment strategy for their needs.
-- [LangGraph Data Plane Overview](https://langchain-ai.github.io/langgraph/concepts/langgraph_data_plane/): This page provides a comprehensive overview of the LangGraph Data Plane, detailing its components including the server infrastructure, listener application, and data management systems like Postgres and Redis. It also covers key features such as autoscaling, static IP addresses, and custom configurations for Postgres and Redis. Additionally, the page outlines telemetry, licensing, and tracing functionalities relevant to different deployment options.
-- [LangGraph Control Plane Overview](https://langchain-ai.github.io/langgraph/concepts/langgraph_control_plane/): This page provides a comprehensive overview of the LangGraph Control Plane, detailing its UI and API functionalities for managing LangGraph Servers. It covers deployment types, environment variables, database provisioning, and asynchronous deployment processes. Additionally, it highlights the integration with LangSmith for tracing projects.
-- [Cloud SaaS Deployment Guide](https://langchain-ai.github.io/langgraph/concepts/langgraph_cloud/): This page provides a comprehensive guide on deploying the LangGraph Server using the Cloud SaaS model. It outlines the roles of the control plane and data plane, detailing their functionalities and management. Additionally, it includes an architectural diagram to illustrate the deployment structure.
-- [Deployment Guide for LangGraph Platform](https://langchain-ai.github.io/langgraph/cloud/deployment/cloud/): This page provides a comprehensive guide on how to deploy applications to the LangGraph Platform using GitHub repositories. It covers prerequisites, steps for creating new deployments and revisions, managing deployment settings, and viewing logs. Additionally, it includes instructions for whitelisting IP addresses and modifying GitHub repository access.
-- [Self-Hosted Data Plane Deployment Guide](https://langchain-ai.github.io/langgraph/concepts/langgraph_self_hosted_data_plane/): This page provides an overview of the Self-Hosted Data Plane deployment option, which allows users to manage their data plane infrastructure while offloading control plane management to LangChain. It outlines the requirements, architecture, and supported compute platforms for deployment. Additionally, it includes important information regarding the beta status of this deployment option.
-- [Deploying a Self-Hosted Data Plane](https://langchain-ai.github.io/langgraph/cloud/deployment/self_hosted_data_plane/): This page provides a comprehensive guide on deploying a Self-Hosted Data Plane using Kubernetes and Amazon ECS. It outlines the prerequisites, setup steps, and configuration details necessary for a successful deployment. Additionally, it highlights the current beta status of this deployment option.
-- [Self-Hosted Control Plane Deployment Guide](https://langchain-ai.github.io/langgraph/concepts/langgraph_self_hosted_control_plane/): This page provides an overview of the Self-Hosted Control Plane deployment option, currently in beta. It outlines the requirements, architecture, and compute platforms supported for deploying the control and data planes in your cloud environment. Additionally, it includes important links and resources for managing your self-hosted infrastructure.
-- [Deploying a Self-Hosted Control Plane](https://langchain-ai.github.io/langgraph/cloud/deployment/self_hosted_control_plane/): This page provides a comprehensive guide on deploying a Self-Hosted Control Plane using Kubernetes. It outlines the prerequisites, setup steps, and configuration details necessary for a successful deployment. Additionally, it highlights the beta status of this deployment option and includes links to relevant resources for further assistance.
-- [Deploying LangGraph Server with Standalone Container](https://langchain-ai.github.io/langgraph/concepts/langgraph_standalone_container/): This page provides a comprehensive guide on deploying a LangGraph Server using the Standalone Container option. It outlines the architecture, supported compute platforms, and Enterprise server version features. Users will find essential information on managing the data plane infrastructure without a control plane.
-- [Deploying a Standalone Container with LangGraph](https://langchain-ai.github.io/langgraph/cloud/deployment/standalone_container/): This documentation provides a comprehensive guide on deploying a standalone container for the LangGraph application. It covers prerequisites, environment variable configurations, and deployment methods using Docker and Docker Compose. Additionally, it includes instructions for deploying on Kubernetes using Helm.
-- [Scalability and Resilience of LangGraph Platform](https://langchain-ai.github.io/langgraph/concepts/scalability_and_resilience/): This page provides an overview of the scalability and resilience features of the LangGraph Platform. It details how the platform handles server and queue scalability, as well as the mechanisms in place for ensuring resilience during both graceful and hard shutdowns. Additionally, it covers the resilience strategies employed for Postgres and Redis to maintain service availability.
-- [LangGraph Platform Plans Overview](https://langchain-ai.github.io/langgraph/concepts/plans/): This page provides an overview of the different plans available for the LangGraph Platform, including Developer, Plus, and Enterprise options. Each plan offers varying deployment options, usage limits, and features tailored to different user needs. For detailed pricing and related resources, links to additional documentation are also included.
-
-# Examples
-
-- [Building an Agentic RAG System](https://langchain-ai.github.io/langgraph/tutorials/rag/langgraph_agentic_rag/): This tutorial guides you through the process of creating a retrieval agent (RAG) system using LangChain and LangGraph. You will learn how to fetch and preprocess documents, create a retriever tool, and build an agentic RAG that intelligently decides when to retrieve information or respond directly to user queries. By the end, you'll have a functional system capable of semantic search and context-aware responses.
-- [Building a Multi-Agent Supervisor System](https://langchain-ai.github.io/langgraph/tutorials/multi_agent/agent_supervisor/): This tutorial guides you through the process of creating a multi-agent supervisor system using specialized agents for research and math tasks. You will learn how to set up the environment, create individual worker agents, and implement a supervisor that orchestrates their interactions. By the end, you'll have a fully functional multi-agent architecture capable of handling complex queries.
-- [Building a SQL Agent with LangChain](https://langchain-ai.github.io/langgraph/tutorials/sql-agent/): This tutorial provides a step-by-step guide on how to create a SQL agent capable of answering questions about a SQL database. It covers the setup of necessary dependencies, configuration of a SQLite database, and the implementation of a prebuilt agent that interacts with the database to generate and execute queries. Additionally, it discusses customizing the agent for more control over its behavior.
-- [Custom Run ID, Tags, and Metadata for LangSmith Graph Runs](https://langchain-ai.github.io/langgraph/how-tos/run-id-langsmith/): This guide provides instructions on how to pass a custom run ID and set tags and metadata for graph runs in LangSmith. It covers prerequisites, configuration options, and includes code examples for setting up and running a graph with LangGraph. Additionally, it explains how to view and filter traces in the LangSmith platform.
-- [Custom Authentication Setup for Chatbots](https://langchain-ai.github.io/langgraph/tutorials/auth/getting_started/): This tutorial guides you through the process of setting up custom authentication for a chatbot using the LangGraph platform. You will learn how to implement token-based security to control user access, starting with a basic example and preparing for more advanced authentication methods in future tutorials. By the end, you'll have a functional chatbot that restricts access to authenticated users.
-- [Implementing Private Conversations in Chatbots](https://langchain-ai.github.io/langgraph/tutorials/auth/resource_auth/): This tutorial guides you through extending a chatbot to enable private conversations for each user by implementing resource-level access control. You'll learn how to add authorization handlers to ensure users can only access their own threads and test the functionality to confirm proper access restrictions. Additionally, the tutorial covers scoped authorization handlers for more granular control over resource access.
-- [Integrating OAuth2 Authentication with Supabase](https://langchain-ai.github.io/langgraph/tutorials/auth/add_auth_server/): This tutorial guides you through replacing hard-coded tokens with real user accounts using OAuth2 for secure authentication in your LangGraph application. You'll learn how to set up Supabase as your identity provider, implement token validation, and ensure proper user authorization. By the end, you'll have a production-ready authentication system that allows users to securely access their own data.
-- [Rebuilding Graphs at Runtime in LangGraph](https://langchain-ai.github.io/langgraph/cloud/deployment/graph_rebuild/): This guide explains how to rebuild your graph at runtime with different configurations in LangGraph. It covers the necessary prerequisites, how to define graphs, and the steps to modify your graph-making function for dynamic behavior based on user input. Additionally, it provides examples of both static and dynamic graph configurations.
-- [Interacting with RemoteGraph in LangGraph](https://langchain-ai.github.io/langgraph/how-tos/use-remote-graph/): This documentation page provides a comprehensive guide on how to interact with a LangGraph Platform deployment using the RemoteGraph interface. It covers the initialization of RemoteGraph, invoking the graph both asynchronously and synchronously, and utilizing it as a subgraph. Additionally, it includes code examples in Python and JavaScript to facilitate understanding and implementation.
-- [Deploying Agents on LangGraph Platform](https://langchain-ai.github.io/langgraph/how-tos/autogen-langgraph-platform/): This page provides a comprehensive guide on how to deploy agents like AutoGen and CrewAI using the LangGraph Platform. It covers the necessary setup, agent definition, and wrapping the agent in a LangGraph node for deployment. Additionally, it highlights the benefits of using LangGraph for scalable infrastructure and memory support.
-- [Integrating LangGraph with React: A Comprehensive Guide](https://langchain-ai.github.io/langgraph/cloud/how-tos/use_stream_react/): This documentation provides a detailed guide on how to integrate the LangGraph platform into your React applications using the `useStream()` hook. It covers installation, key features, example implementations, and customization options for building chat experiences. Additionally, it includes advanced topics such as event handling, TypeScript support, and managing conversation threads.
-- [Implementing Generative User Interfaces with LangGraph](https://langchain-ai.github.io/langgraph/cloud/how-tos/generative_ui_react/): This documentation provides a comprehensive guide on how to implement Generative User Interfaces (Generative UI) using the LangGraph platform. It covers prerequisites, step-by-step tutorials for defining UI components, sending them in graphs, and handling them in React applications. Additionally, it includes how-to guides for customizing components and managing UI state effectively.
-
-# Resources
-
-- [LangGraph FAQ](https://langchain-ai.github.io/langgraph/concepts/faq/): This FAQ page provides answers to common questions about LangGraph, an orchestration framework for complex agentic systems. It covers topics such as the differences between LangGraph and LangChain, performance impacts, open-source status, and compatibility with various LLMs. Additionally, it outlines the distinctions between LangGraph and LangGraph Platform, including features and deployment options.
-- [Getting Started with LangGraph Templates](https://langchain-ai.github.io/langgraph/concepts/template_applications/): This page provides an overview of open source reference applications known as templates, designed to help users quickly build applications with LangGraph. It includes installation instructions for the LangGraph CLI, a list of available templates with their descriptions, and guidance on creating and deploying a new LangGraph app. Users can find links to repositories for each template and next steps for customizing their applications.
-- [Guide to Using llms.txt and llms-full.txt for LLMs](https://langchain-ai.github.io/langgraph/llms-txt-overview/): This page provides an overview of the `llms.txt` and `llms-full.txt` formats, which facilitate access to programming documentation for large language models (LLMs) and agents. It outlines the differences between the two formats, usage instructions via an MCP server, and best practices for integrating these files into integrated development environments (IDEs). Additionally, it highlights considerations for managing large documentation files effectively.
-- [Community Agents for LangGraph](https://langchain-ai.github.io/langgraph/agents/prebuilt/): This page provides a list of community-built libraries that extend the functionality of LangGraph. Each entry includes the library name, GitHub URL, a brief description, and additional metrics like weekly downloads and stars. Additionally, it outlines how to contribute your own library to the LangGraph documentation.
-- [LangGraph Error Reference Guide](https://langchain-ai.github.io/langgraph/troubleshooting/errors/index/): This page serves as a comprehensive reference for resolving common errors encountered while using the LangGraph platform. It includes a list of error codes and links to detailed guides for troubleshooting specific issues. Users can find solutions for errors related to graph recursion, concurrent updates, node return values, and more.
-- [Handling Recursion Limits in LangGraph](https://langchain-ai.github.io/langgraph/troubleshooting/errors/GRAPH_RECURSION_LIMIT/): This page provides guidance on managing recursion limits in LangGraph's StateGraph. It explains how to identify potential infinite loops in your graph and offers solutions for increasing the recursion limit when working with complex graphs. Additionally, it includes code examples to illustrate the concepts discussed.
-- [Handling INVALID_CONCURRENT_GRAPH_UPDATE in LangGraph](https://langchain-ai.github.io/langgraph/troubleshooting/errors/INVALID_CONCURRENT_GRAPH_UPDATE/): This page explains the INVALID_CONCURRENT_GRAPH_UPDATE error that occurs in LangGraph when multiple nodes attempt to update the same state property concurrently. It provides an example of how this error can arise and offers a solution by using a reducer to combine values from parallel node executions. Additionally, troubleshooting tips are included to help resolve this issue.
-- [Handling Invalid Node Return Values in LangGraph](https://langchain-ai.github.io/langgraph/troubleshooting/errors/INVALID_GRAPH_NODE_RETURN_VALUE/): This page provides guidance on the error encountered when a LangGraph node returns a non-dict value. It includes an example of incorrect node implementation and the resulting error message. Additionally, troubleshooting tips are offered to ensure that all nodes return the expected dictionary format.
-- [Handling Multiple Subgraphs in LangGraph](https://langchain-ai.github.io/langgraph/troubleshooting/errors/MULTIPLE_SUBGRAPHS/): This page discusses the limitations of calling multiple subgraphs within a single LangGraph node when checkpointing is enabled. It provides troubleshooting tips to resolve related errors, including suggestions for compiling subgraphs without checkpointing and using the Send API for graph calls.
-- [Handling INVALID_CHAT_HISTORY Error in create_react_agent](https://langchain-ai.github.io/langgraph/troubleshooting/errors/INVALID_CHAT_HISTORY/): This page provides an overview of the INVALID_CHAT_HISTORY error encountered in the create_react_agent function when a malformed list of messages is passed. It outlines the potential causes of the error and offers troubleshooting steps to resolve it. Users can learn how to properly invoke the graph and manage tool calls to avoid this issue.
-- [Handling INVALID_LICENSE Error in LangGraph Platform](https://langchain-ai.github.io/langgraph/troubleshooting/errors/INVALID_LICENSE/): This page provides guidance on troubleshooting the INVALID_LICENSE error encountered when starting a self-hosted LangGraph Platform server. It outlines the scenarios in which this error may occur and offers solutions based on different deployment types. Additionally, it includes steps to verify the necessary credentials for successful deployment.
-- [LangGraph Studio Troubleshooting Guide](https://langchain-ai.github.io/langgraph/troubleshooting/studio/): This page provides troubleshooting solutions for common connection issues encountered in LangGraph Studio, particularly with Safari and Brave browsers. It also addresses potential graph edge issues and offers methods to define routing paths for conditional edges. Users can find step-by-step instructions for resolving these issues using Cloudflare Tunnel and browser settings.
-- [LangGraph Case Studies](https://langchain-ai.github.io/langgraph/adopters/): This page provides a comprehensive list of companies that have successfully implemented LangGraph, showcasing their unique use cases and the benefits they have achieved. Each entry includes links to detailed case studies or blog posts for further reading. If your company uses LangGraph, you are encouraged to share your success story to contribute to this growing collection.
diff --git a/docs/roadmap.md b/docs/roadmap.md
deleted file mode 100644
index ff0ac2380..000000000
--- a/docs/roadmap.md
+++ /dev/null
@@ -1,41 +0,0 @@
-# Roadmap
-
-Our vision for DeepTutor's future development.
-
-## โœ… Recently Completed (v0.4.0)
-
-- [x] **RAG Module Decoupling** โ€” Modular RAG architecture with provider-agnostic interface
- - Currently standardized on llamaindex
- - More backends coming soon
-- [x] **Multi-Provider Support** โ€” Expanded LLM and Embedding provider options
- - LLM: OpenAI, Anthropic, Azure, Ollama, Groq, OpenRouter, DeepSeek, Gemini
- - Embedding: OpenAI, Jina, Cohere, Ollama, LM Studio, HuggingFace
-- [x] **Dark Mode** โ€” System-wide dark/light theme support
-- [x] **Environment Configuration** โ€” Unified `.env` based configuration
-
-## ๐Ÿš€ Planned Features
-
-- [ ] **Deepcoding from Research Drafts** โ€” Transform research and Co-Writer outputs into working prototypes
-- [ ] **Personalized Memory** โ€” Adapt tutoring style based on user learning history
-- [ ] **Additional RAG Backends** โ€” ChromaDB, Pinecone integration
-- [ ] **More Embedding Adapters** โ€” Voyage AI, Mixedbread, local transformers
-
-## ๐Ÿ’ญ Under Consideration
-
-- Multi-language support
-- Mobile-friendly interface
-- Collaborative learning features
-- Voice interaction support
-- Faster frontend framework
-
-## ๐Ÿค Community Requests
-
-Have a feature idea? We'd love to hear it!
-
-- Open a [Feature Request](https://github.com/HKUDS/DeepTutor/issues/new?template=feature_request.yml)
-- Join the discussion on existing proposals
-- Check our [GitHub Discussions](https://github.com/HKUDS/DeepTutor/discussions)
-
----
-
-โญ **Star the repo** to follow our future updates!
diff --git a/docs/zh/contribution.md b/docs/zh/contribution.md
deleted file mode 100644
index ce9f25a81..000000000
--- a/docs/zh/contribution.md
+++ /dev/null
@@ -1,104 +0,0 @@
-# ๅ‚ไธŽ่ดก็Œฎ
-
-ๆˆ‘ไปฌๅธŒๆœ› DeepTutor ่ƒฝๆˆไธบ้€็ป™็คพๅŒบ็š„็คผ็‰ฉใ€‚๐ŸŽ
-
-## ๅŠ ๅ…ฅๆˆ‘ไปฌ็š„็คพๅŒบ
-
-<div class="community-links">
- <a href="https://github.com/HKUDS/DeepTutor/issues/78" class="community-badge wechat">
- ๐Ÿ’ฌ ๅพฎไฟก็คพๅŒบ็พค
- </a>
- <a href="https://github.com/HKUDS/DeepTutor/issues/167" class="community-badge wechat-collab">
- ๐Ÿค ๅพฎไฟกๅ…ฑๅˆ›็พค
- </a>
- <a href="https://discord.gg/eRsjPgMU4t" class="community-badge discord">
- ๐ŸŒ Discord
- </a>
-</div>
-
-## ๆˆ‘ไปฌๆฌข่ฟŽ่ดก็Œฎ๏ผ
-
-ๆ— ่ฎบๆ‚จๆ˜ฏไฟฎๅค bugใ€ๆ”น่ฟ›ๆ–‡ๆกฃ่ฟ˜ๆ˜ฏๆทปๅŠ ๆ–ฐๅŠŸ่ƒฝ๏ผŒๆ‚จ็š„่ดก็Œฎๅฏนๆˆ‘ไปฌ้ƒฝๅพˆๆœ‰ไปทๅ€ผใ€‚
-
-### ๅฆ‚ไฝ•่ดก็Œฎ
-
-1. **ๆŠฅๅ‘Š Bug** โ€” ๅ‘็Žฐไบ† bug๏ผŸๅœจ GitHub ไธŠๅผ€ไธ€ไธช issue๏ผŒ้™„ไธŠๅค็Žฐๆญฅ้ชค
-2. **ๅปบ่ฎฎๅŠŸ่ƒฝ** โ€” ๅœจ GitHub Discussions ๆˆ–ๆˆ‘ไปฌ็š„็คพๅŒบๆธ ้“ๅˆ†ไบซๆƒณๆณ•
-3. **ๆ”น่ฟ›ๆ–‡ๆกฃ** โ€” ๅธฎๅŠฉๆˆ‘ไปฌๆ”น่ฟ›ๆ–‡ๆกฃใ€ๆ•™็จ‹ๅ’Œ็คบไพ‹
-4. **ๆไบคไปฃ็ ** โ€” ้€š่ฟ‡ Pull Request ไฟฎๅค bug ๆˆ–ๅฎž็Žฐๆ–ฐๅŠŸ่ƒฝ
-
-### ่ดก็ŒฎๆŒ‡ๅ—
-
-่ฏฆ็ป†ๆŒ‡ๅ—่ฏทๅ‚้˜… [CONTRIBUTING.md](https://github.com/HKUDS/DeepTutor/blob/dev/CONTRIBUTING.md)ใ€‚
-
-**่ฆ็‚น๏ผš**
-
-- ๆ‰€ๆœ‰่ดก็Œฎๅฟ…้กปๅŸบไบŽ `dev` ๅˆ†ๆ”ฏ
-- ๆไบคๅ‰่ฟ่กŒ `pre-commit run --all-files`
-- ไฝฟ็”จ็บฆๅฎšๅผๆไบคๆ ผๅผ๏ผš`feat:`ใ€`fix:`ใ€`docs:` ็ญ‰
-
-### ๅฟซ้€Ÿๅ…ฅ้—จ
-
-```bash
-# Fork ๅนถๅ…‹้š†
-git clone https://github.com/YOUR_USERNAME/DeepTutor.git
-cd DeepTutor
-
-# ไปŽ dev ๅˆ›ๅปบๅŠŸ่ƒฝๅˆ†ๆ”ฏ
-git checkout dev && git pull origin dev
-git checkout -b feature/your-feature-name
-
-# ๅฎ‰่ฃ…้ข„ๆไบค้’ฉๅญ
-pip install pre-commit && pre-commit install
-
-# ่ฟ›่กŒๆ›ดๆ”น๏ผŒ็„ถๅŽๅ‘ dev ๅˆ†ๆ”ฏๆไบค PR
-```
-
-## ๆˆ‘ไปฌ็š„่ดก็Œฎ่€…
-
-<a href="https://github.com/HKUDS/DeepTutor/graphs/contributors">
- <img src="https://contrib.rocks/image?repo=HKUDS/DeepTutor&max=999" alt="่ดก็Œฎ่€…" />
-</a>
-
----
-
-ๆ„Ÿ่ฐขๆ‚จๅฏน DeepTutor ่ดก็Œฎ็š„ๅ…ด่ถฃ๏ผ๐Ÿš€
-
-<style>
-.community-links {
- display: flex;
- gap: 12px;
- flex-wrap: wrap;
- margin: 20px 0;
-}
-
-.community-badge {
- display: inline-flex;
- align-items: center;
- padding: 10px 18px;
- border-radius: 8px;
- font-weight: 500;
- font-size: 0.95rem;
- text-decoration: none;
- transition: all 0.2s ease;
-}
-
-.community-badge:hover {
- transform: translateY(-2px);
-}
-
-.community-badge.wechat {
- background: #07C160;
- color: white;
-}
-
-.community-badge.wechat-collab {
- background: #1AAD19;
- color: white;
-}
-
-.community-badge.discord {
- background: #5865F2;
- color: white;
-}
-</style>
diff --git a/docs/zh/features/overview.md b/docs/zh/features/overview.md
deleted file mode 100644
index d14d7650a..000000000
--- a/docs/zh/features/overview.md
+++ /dev/null
@@ -1,56 +0,0 @@
-# ๅŠŸ่ƒฝไป‹็ป
-
-DeepTutor ๆไพ›ไบ”ไธชไธ“ไธšๆจกๅ—๏ผŒๅŠฉๅŠ› AI ้ฉฑๅŠจ็š„ๅญฆไน ไฝ“้ชŒใ€‚
-
-<div class="feature-nav">
-
-## ๆ ธๅฟƒๆจกๅ—
-
-| ๆจกๅ— | ๆ่ฟฐ | ๆ–‡ๆกฃ |
-|:-------|:------------|:--------------|
-| ๐Ÿง  **ๆ™บ่ƒฝ่งฃ้ข˜** | ๅคš Agent ๅไฝœ่งฃ้ข˜๏ผŒๅŒๅพช็ŽฏๆŽจ็†ๆžถๆž„ | [่ฏฆๆƒ… โ†’](https://github.com/HKUDS/DeepTutor#-smart-solver) |
-| ๐ŸŽฏ **้ข˜็›ฎ็”Ÿๆˆ** | ่‡ชๅฎšไน‰ๆต‹้ชŒ็”Ÿๆˆ๏ผŒๆจกๆ‹Ÿ็œŸๅฎž่€ƒ่ฏ•้ฃŽๆ ผ | [่ฏฆๆƒ… โ†’](https://github.com/HKUDS/DeepTutor#-question-generator) |
-| ๐ŸŽ“ **ๅผ•ๅฏผๅญฆไน ** | ไธชๆ€งๅŒ–ๅญฆไน ่ทฏๅพ„๏ผŒไบคไบ’ๅผๅฏ่ง†ๅŒ– | [่ฏฆๆƒ… โ†’](https://github.com/HKUDS/DeepTutor#-guided-learning) |
-| ๐Ÿ”ฌ **ๆทฑๅบฆ็ ”็ฉถ** | ็ณป็ปŸๅŒ–ไธป้ข˜ๆŽข็ดข๏ผŒๅŠจๆ€ไธป้ข˜้˜Ÿๅˆ— | [่ฏฆๆƒ… โ†’](https://github.com/HKUDS/DeepTutor#-deep-research) |
-| โœ๏ธ **ๅไฝœๅ†™ไฝœ** | AI ่พ…ๅŠฉๅ†™ไฝœ๏ผŒTTS ่ฏญ้Ÿณๆœ—่ฏป | [่ฏฆๆƒ… โ†’](https://github.com/HKUDS/DeepTutor#-co-writer) |
-
-## ็ณป็ปŸๆžถๆž„
-
-<img src="/full-pipe.png" alt="DeepTutor ๆžถๆž„" style="width: 100%; border-radius: 8px; margin: 24px 0;">
-
-### ็ณป็ปŸๅฑ‚ๆฌก
-
-- **็”จๆˆท็•Œ้ข** โ€” ๅŒๅ‘ๆŸฅ่ฏขๅ“ๅบ”๏ผŒ็ป“ๆž„ๅŒ–่พ“ๅ‡บ
-- **Agent ๆจกๅ—** โ€” ๅ„ๅญฆไน ไปปๅŠก็š„ไธ“ไธš AI Agent
-- **ๅทฅๅ…ท้›†ๆˆ** โ€” RAGใ€็ฝ‘็ปœๆœ็ดขใ€่ฎบๆ–‡ๆฃ€็ดขใ€ไปฃ็ ๆ‰ง่กŒ
-- **็Ÿฅ่ฏ†ๅŸบ็ก€** โ€” ็Ÿฅ่ฏ†ๅ›พ่ฐฑ + ๅ‘้‡ๅญ˜ๅ‚จ + ่ฎฐๅฟ†็ณป็ปŸ
-
-</div>
-
-## ๆ”ฏๆŒ็š„ๆœๅŠกๅ•†
-
-DeepTutor ๆ”ฏๆŒๅคš็ง LLM ๅ’Œ Embedding ๆœๅŠกๅ•†๏ผš
-
-::: details LLM ๆœๅŠกๅ•†
-- OpenAI (GPT-4o, GPT-4)
-- Anthropic (Claude 3.5)
-- Azure OpenAI
-- DeepSeek
-- Groq
-- OpenRouter
-- Ollama๏ผˆๆœฌๅœฐ้ƒจ็ฝฒ๏ผ‰
-- Google Gemini
-:::
-
-::: details Embedding ๆœๅŠกๅ•†
-- OpenAI
-- Jina AI
-- Cohere
-- Ollama
-- LM Studio
-- HuggingFace
-:::
-
----
-
-๐Ÿ“– **ๅฎŒๆ•ดๆ–‡ๆกฃ**: [GitHub README](https://github.com/HKUDS/DeepTutor)
diff --git a/docs/zh/guide/data-preparation.md b/docs/zh/guide/data-preparation.md
deleted file mode 100644
index d22f03d41..000000000
--- a/docs/zh/guide/data-preparation.md
+++ /dev/null
@@ -1,185 +0,0 @@
-# ๆ•ฐๆฎๅ‡†ๅค‡
-
-DeepTutor ๆไพ›็คบไพ‹็Ÿฅ่ฏ†ๅบ“ๅ’Œๆ ทไพ‹้—ฎ้ข˜๏ผŒๅธฎๅŠฉๆ‚จๅฟซ้€ŸไธŠๆ‰‹ใ€‚
-
-## ็คบไพ‹็Ÿฅ่ฏ†ๅบ“
-
-ๆˆ‘ไปฌๅœจ [Google Drive](https://drive.google.com/drive/folders/1iWwfZXiTuQKQqUYb5fGDZjLCeTUP6DA6?usp=sharing) ไธŠๆไพ›ไธคไธช้ข„ๆž„ๅปบ็š„็Ÿฅ่ฏ†ๅบ“๏ผš
-
-### 1. ็ ”็ฉถ่ฎบๆ–‡ๅˆ้›†
-
-<div class="info-card">
- <div class="info-header">
- <span class="info-icon">๐Ÿ“„</span>
- <span class="info-title">5 ็ฏ‡็ ”็ฉถ่ฎบๆ–‡๏ผˆๆฏ็ฏ‡ 20-50 ้กต๏ผ‰</span>
- </div>
- <div class="info-content">
- <p>ๆฅ่‡ชๆˆ‘ไปฌๅฎž้ชŒๅฎค็š„ๅ‰ๆฒฟ็ ”็ฉถ่ฎบๆ–‡็ฒพ้€‰้›†๏ผŒๆถต็›– RAG ๅ’Œ Agent ้ข†ๅŸŸใ€‚</p>
- <p><strong>ๅŒ…ๅซ่ฎบๆ–‡๏ผš</strong></p>
- <ul>
- <li><a href="https://github.com/HKUDS/AI-Researcher">AI-Researcher</a> - ่‡ชๅŠจๅŒ–็ ”็ฉถ่ฎบๆ–‡็”Ÿๆˆ</li>
- <li><a href="https://github.com/HKUDS/AutoAgent">AutoAgent</a> - ่‡ชไธปๆ™บ่ƒฝไฝ“ๆก†ๆžถ</li>
- <li><a href="https://github.com/HKUDS/AutoAgent">AutoAgent</a> - ่‡ชไธปๆ™บ่ƒฝไฝ“ๆก†ๆžถ</li>
- <li><a href="https://github.com/HKUDS/DeepCode">DeepCode</a> - AI ็ผ–็ ๅŠฉๆ‰‹</li>
- <li><a href="https://github.com/HKUDS/VideoRAG">VideoRAG</a> - ๅŸบไบŽ RAG ็š„่ง†้ข‘็†่งฃ</li>
- </ul>
- <p><strong>้€‚็”จๅœบๆ™ฏ๏ผš</strong> ็ ”็ฉถๅœบๆ™ฏ๏ผŒๅนฟๆณ›็Ÿฅ่ฏ†่ฆ†็›–</p>
- </div>
-</div>
-
-### 2. ๆ•ฐๆฎ็ง‘ๅญฆๆ•™ๆ
-
-<div class="info-card">
- <div class="info-header">
- <span class="info-icon">๐Ÿ“š</span>
- <span class="info-title">8 ็ซ ๏ผŒ296 ้กต</span>
- </div>
- <div class="info-content">
- <p>ๆฅ่‡ชๅŠ ๅทžๅคงๅญฆไผฏๅ…‹ๅˆฉๅˆ†ๆ ก็š„็ปผๅˆๆทฑๅบฆๅญฆไน ๆ•™ๆใ€‚</p>
- <p><strong>ๆฅๆบ๏ผš</strong> <a href="https://ma-lab-berkeley.github.io/deep-representation-learning-book/">Deep Representation Learning Book</a></p>
- <p><strong>ๆถต็›–ไธป้ข˜๏ผš</strong></p>
- <ul>
- <li>็ฅž็ป็ฝ‘็ปœๅŸบ็ก€</li>
- <li>่กจ็คบๅญฆไน </li>
- <li>ๆทฑๅบฆๅญฆไน ๆžถๆž„</li>
- <li>้ซ˜็บงไธป้ข˜</li>
- </ul>
- <p><strong>้€‚็”จๅœบๆ™ฏ๏ผš</strong> ๅญฆไน ๅœบๆ™ฏ๏ผŒๆทฑๅบฆ็Ÿฅ่ฏ†ๆŒ–ๆŽ˜</p>
- </div>
-</div>
-
-## ไธ‹่ฝฝไธŽ่ฎพ็ฝฎ
-
-### ๆญฅ้ชค 1๏ผšไธ‹่ฝฝ
-
-่ฎฟ้—ฎๆˆ‘ไปฌ็š„ [Google Drive ๆ–‡ไปถๅคน](https://drive.google.com/drive/folders/1iWwfZXiTuQKQqUYb5fGDZjLCeTUP6DA6?usp=sharing) ๅนถไธ‹่ฝฝ๏ผš
-
-- `knowledge_bases.zip` - ๅŒ…ๅซๅตŒๅ…ฅ็š„้ข„ๆž„ๅปบ็Ÿฅ่ฏ†ๅบ“
-- `questions.zip` - ๆ ทไพ‹้—ฎ้ข˜ๅ’Œไฝฟ็”จ็คบไพ‹๏ผˆๅฏ้€‰๏ผ‰
-
-### ๆญฅ้ชค 2๏ผš่งฃๅŽ‹
-
-ๅฐ†ไธ‹่ฝฝ็š„ๆ–‡ไปถ่งฃๅŽ‹ๅˆฐ `data/` ็›ฎๅฝ•๏ผš
-
-```
-DeepTutor/
-โ”œโ”€โ”€ data/
-โ”‚ โ””โ”€โ”€ knowledge_bases/
-โ”‚ โ”œโ”€โ”€ research_papers/ # ็ ”็ฉถ่ฎบๆ–‡็Ÿฅ่ฏ†ๅบ“
-โ”‚ โ”œโ”€โ”€ data_science_book/ # ๆ•™ๆ็Ÿฅ่ฏ†ๅบ“
-โ”‚ โ””โ”€โ”€ kb_config.json # ็Ÿฅ่ฏ†ๅบ“้…็ฝฎ
-โ””โ”€โ”€ user/ # ็”จๆˆทๆ•ฐๆฎ๏ผˆ่‡ชๅŠจๅˆ›ๅปบ๏ผ‰
-```
-
-### ๆญฅ้ชค 3๏ผš้ชŒ่ฏ
-
-่งฃๅŽ‹ๅŽ๏ผŒๅฏๅŠจ DeepTutor ๆ—ถๆ‚จ็š„็Ÿฅ่ฏ†ๅบ“ๅฐ†่‡ชๅŠจๅฏ็”จใ€‚
-
-::: warning ๅตŒๅ…ฅๅ…ผๅฎนๆ€ง
-ๆˆ‘ไปฌ็š„็คบไพ‹็Ÿฅ่ฏ†ๅบ“ไฝฟ็”จ `text-embedding-3-large`๏ผŒ`dimensions = 3072`ใ€‚
-
-ๅฆ‚ๆžœๆ‚จ็š„ๅตŒๅ…ฅๆจกๅž‹ๅ…ทๆœ‰ไธๅŒ็š„็ปดๅบฆ๏ผŒๆ‚จ้œ€่ฆๅˆ›ๅปบ่‡ชๅทฑ็š„็Ÿฅ่ฏ†ๅบ“ใ€‚
-:::
-
-## ๅˆ›ๅปบ่‡ชๅฎšไน‰็Ÿฅ่ฏ†ๅบ“
-
-### ๆ”ฏๆŒ็š„ๆ–‡ไปถๆ ผๅผ
-
-| ๆ ผๅผ | ๆ‰ฉๅฑ•ๅ | ่ฏดๆ˜Ž |
-|:-------|:----------|:------|
-| PDF | `.pdf` | ๆ”ฏๆŒๆ–‡ๆœฌๆๅ–ๅ’Œ็‰ˆ้ขๅˆ†ๆž |
-| ๆ–‡ๆœฌ | `.txt` | ็บฏๆ–‡ๆœฌๆ–‡ไปถ |
-| Markdown | `.md` | ๆ”ฏๆŒๆ ผๅผๅŒ–็š„ Markdown |
-
-### ้€š่ฟ‡ Web ็•Œ้ข
-
-1. ๅฏผ่ˆชๅˆฐ `http://localhost:3782/knowledge`
-2. ็‚นๅ‡ป **"New Knowledge Base"**
-3. ไธบๆ‚จ็š„็Ÿฅ่ฏ†ๅบ“่พ“ๅ…ฅๅ”ฏไธ€ๅ็งฐ
-4. ไธŠไผ ๆ‚จ็š„ๆ–‡ๆกฃ๏ผˆๅ•ไธชๆˆ–ๆ‰น้‡ไธŠไผ ๏ผ‰
-5. ็ญ‰ๅพ…ๅค„็†ๅฎŒๆˆ
-
-::: tip ๅค„็†ๆ—ถ้—ด
-- ๅฐๆ–‡ๆกฃ๏ผˆ< 10 ้กต๏ผ‰๏ผš็บฆ 1 ๅˆ†้’Ÿ
-- ไธญ็ญ‰ๆ–‡ๆกฃ๏ผˆ10-100 ้กต๏ผ‰๏ผš็บฆ 5-10 ๅˆ†้’Ÿ
-- ๅคงๆ–‡ๆกฃ๏ผˆ100+ ้กต๏ผ‰๏ผšๅฏ่ƒฝ้œ€่ฆๆ›ด้•ฟๆ—ถ้—ด
-:::
-
-### ้€š่ฟ‡ๅ‘ฝไปค่กŒ
-
-```bash
-# ไฝฟ็”จๆ–‡ๆกฃๅˆๅง‹ๅŒ–ๆ–ฐ็Ÿฅ่ฏ†ๅบ“
-deeptutor kb create <kb_name> --doc <pdf_path>
-
-# ๅ‘็Žฐๆœ‰็Ÿฅ่ฏ†ๅบ“ๆทปๅŠ ๆ–‡ๆกฃ
-deeptutor kb add <kb_name> --doc <new_document.pdf>
-```
-
-## ๆ•ฐๆฎๅญ˜ๅ‚จ็ป“ๆž„
-
-ๆ‰€ๆœ‰็”จๆˆทๆ•ฐๆฎๅญ˜ๅ‚จๅœจ `data/` ็›ฎๅฝ•ไธญ๏ผš
-
-```
-data/
-โ”œโ”€โ”€ knowledge_bases/ # ็Ÿฅ่ฏ†ๅบ“ๅญ˜ๅ‚จ
-โ”‚ โ”œโ”€โ”€ <kb_name>/
-โ”‚ โ”‚ โ”œโ”€โ”€ documents/ # ๅŽŸๅง‹ๆ–‡ๆกฃ
-โ”‚ โ”‚ โ”œโ”€โ”€ chunks/ # ๅˆ†ๅ—ๅ†…ๅฎน
-โ”‚ โ”‚ โ”œโ”€โ”€ embeddings/ # ๅ‘้‡ๅตŒๅ…ฅ
-โ”‚ โ”‚ โ””โ”€โ”€ graph/ # ็Ÿฅ่ฏ†ๅ›พ่ฐฑๆ•ฐๆฎ
-โ””โ”€โ”€ user/ # ็”จๆˆทๆดปๅŠจๆ•ฐๆฎ
- โ”œโ”€โ”€ solve/ # ่งฃ้ข˜็ป“ๆžœ
- โ”œโ”€โ”€ question/ # ็”Ÿๆˆ็š„้ข˜็›ฎ
- โ”œโ”€โ”€ research/ # ็ ”็ฉถๆŠฅๅ‘Š
- โ”œโ”€โ”€ notebook/ # ็ฌ”่ฎฐๆœฌ่ฎฐๅฝ•
- โ””โ”€โ”€ logs/ # ็ณป็ปŸๆ—ฅๅฟ—
-```
-
----
-
-**ไธ‹ไธ€ๆญฅ๏ผš** [ๆœฌๅœฐๅฎ‰่ฃ… โ†’](/zh/guide/local-start)
-
-<style>
-.info-card {
- background: var(--vp-c-bg-soft);
- border: 1px solid var(--vp-c-border);
- border-radius: 12px;
- padding: 20px;
- margin: 16px 0;
-}
-
-.info-header {
- display: flex;
- align-items: center;
- gap: 12px;
- margin-bottom: 16px;
-}
-
-.info-icon {
- font-size: 1.5rem;
-}
-
-.info-title {
- font-size: 1.1rem;
- font-weight: 600;
- color: var(--vp-c-text-1);
-}
-
-.info-content {
- color: var(--vp-c-text-2);
- line-height: 1.7;
-}
-
-.info-content ul {
- margin: 12px 0;
- padding-left: 20px;
-}
-
-.info-content li {
- margin: 6px 0;
-}
-
-.info-content a {
- color: var(--vp-c-brand-1);
-}
-</style>
diff --git a/docs/zh/guide/docker-start.md b/docs/zh/guide/docker-start.md
deleted file mode 100644
index 110042538..000000000
--- a/docs/zh/guide/docker-start.md
+++ /dev/null
@@ -1,259 +0,0 @@
-# Docker ้ƒจ็ฝฒ
-
-Docker ้ƒจ็ฝฒๆ— ้œ€ Python ๆˆ– Node.js ่ฎพ็ฝฎโ€”โ€”ไธ€ๅˆ‡้ƒฝๅœจๅฎนๅ™จไธญ่ฟ่กŒใ€‚
-
-## ๅ‰ๆๆกไปถ
-
-- **Docker** โ€” [ๅฎ‰่ฃ… Docker](https://docs.docker.com/get-docker/)
-- **Docker Compose** โ€” [ๅฎ‰่ฃ… Docker Compose](https://docs.docker.com/compose/install/)
-
-## ๅฟซ้€ŸๅฏๅŠจ้€‰้กน
-
-้€‰ๆ‹ฉๆ‚จๅ–œๆฌข็š„้ƒจ็ฝฒๆ–นๅผ๏ผš
-
-<div class="method-tabs">
-
-### ้€‰้กน A๏ผšไปŽๆบ็ ๆž„ๅปบ
-
-ไปŽๆบไปฃ็ ๆœฌๅœฐๆž„ๅปบๅนถ่ฟ่กŒ DeepTutorใ€‚
-
-```bash
-# ๅ…‹้š†ไป“ๅบ“๏ผˆๅฆ‚ๆžœๅฐšๆœชๅฎŒๆˆ๏ผ‰
-git clone https://github.com/HKUDS/DeepTutor.git
-cd DeepTutor
-
-# ๅˆ›ๅปบๅนถ้…็ฝฎ .env ๆ–‡ไปถ
-cp .env.example .env
-# ็ผ–่พ‘ .env ๅกซๅ…ฅๆ‚จ็š„ API ๅฏ†้’ฅ
-
-# ๆž„ๅปบๅนถๅฏๅŠจ
-docker compose up
-
-# ้ฆ–ๆฌก่ฟ่กŒๅœจ Mac Mini M4 ไธŠ็บฆ้œ€ 11 ๅˆ†้’Ÿ
-```
-
-#### ๅธธ็”จๅ‘ฝไปค
-
-```bash
-# ๅŽๅฐๅฏๅŠจ
-docker compose up -d
-
-# ๅœๆญขๆœๅŠก
-docker compose down
-
-# ๆŸฅ็œ‹ๆ—ฅๅฟ—
-docker compose logs -f
-
-# ไปฃ็ ๆ›ดๆ”นๅŽ้‡ๅปบ
-docker compose up --build
-
-# ๆธ…้™ค็ผ“ๅญ˜ๅนถ้‡ๅปบ
-docker compose build --no-cache
-```
-
-</div>
-
-<div class="method-tabs">
-
-### ้€‰้กน B๏ผšๆ‹‰ๅ–้ข„ๆž„ๅปบ้•œๅƒ๏ผˆๆ›ดๅฟซ๏ผ‰
-
-ไฝฟ็”จๆˆ‘ไปฌๅœจ GitHub Container Registry ไธŠ็š„ๅฎ˜ๆ–น้ข„ๆž„ๅปบ้•œๅƒใ€‚
-
-```bash
-# ้€‚็”จไบŽๆ‰€ๆœ‰ๅนณๅฐ - Docker ่‡ชๅŠจๆฃ€ๆต‹ๆ‚จ็š„ๆžถๆž„
-docker run -d --name deeptutor \
- -p 8001:8001 -p 3782:3782 \
- --env-file .env \
- -v $(pwd)/data:/app/data \
- -v $(pwd)/config:/app/config:ro \
- ghcr.io/hkuds/deeptutor:latest
-```
-
-::: warning Windows PowerShell
-ไฝฟ็”จ `${PWD}` ไปฃๆ›ฟ `$(pwd)`๏ผš
-
-```powershell
-docker run -d --name deeptutor `
- -p 8001:8001 -p 3782:3782 `
- --env-file .env `
- -v ${PWD}/data:/app/data `
- -v ${PWD}/config:/app/config:ro `
- ghcr.io/hkuds/deeptutor:latest
-```
-:::
-
-</div>
-
-## ๅฏ็”จ้•œๅƒๆ ‡็ญพ
-
-| ๆ ‡็ญพ | ๆžถๆž„ | ่ฏดๆ˜Ž |
-|:----|:--------------|:------------|
-| `:latest` | AMD64 + ARM64 | ๆœ€ๆ–ฐ็จณๅฎš็‰ˆ๏ผˆ่‡ชๅŠจๆฃ€ๆต‹ๆžถๆž„๏ผ‰ |
-| `:v0.5.x` | AMD64 + ARM64 | ็‰นๅฎš็‰ˆๆœฌ๏ผˆ่‡ชๅŠจๆฃ€ๆต‹ๆžถๆž„๏ผ‰ |
-| `:v0.5.x-amd64` | ไป… AMD64 | ๆ˜พๅผ AMD64 ้•œๅƒ |
-| `:v0.5.x-arm64` | ไป… ARM64 | ๆ˜พๅผ ARM64 ้•œๅƒ |
-
-::: tip ๅคšๆžถๆž„ๆ”ฏๆŒ
-`:latest` ๆ ‡็ญพๆ˜ฏ**ๅคšๆžถๆž„้•œๅƒ**โ€”โ€”Docker ไผš่‡ชๅŠจไธบๆ‚จ็š„็ณป็ปŸ๏ผˆIntel/AMD ๆˆ– Apple Silicon/ARM๏ผ‰ๆ‹‰ๅ–ๆญฃ็กฎ็š„็‰ˆๆœฌใ€‚
-:::
-
-## ไบ‘็ซฏ้ƒจ็ฝฒ
-
-้ƒจ็ฝฒๅˆฐไบ‘ๆœๅŠกๅ™จๆ—ถ๏ผŒๅฟ…้กป่ฎพ็ฝฎๅค–้ƒจ API URL๏ผš
-
-```bash
-docker run -d --name deeptutor \
- -p 8001:8001 -p 3782:3782 \
- -e NEXT_PUBLIC_API_BASE_EXTERNAL=https://your-server.com:8001 \
- --env-file .env \
- -v $(pwd)/data:/app/data \
- ghcr.io/hkuds/deeptutor:latest
-```
-
-::: warning ไธบไป€ไนˆ้œ€่ฆ่ฟ™ๆ ทๅš๏ผŸ
-้ป˜่ฎค API URL ๆ˜ฏ `localhost:8001`๏ผŒๅœจๆต่งˆๅ™จไธญ่ฟ™ๆŒ‡ๅ‘็”จๆˆท็š„ๆœฌๅœฐๆœบๅ™จ๏ผŒ่€Œไธๆ˜ฏๆ‚จ็š„ๆœๅŠกๅ™จใ€‚่ฎพ็ฝฎ `NEXT_PUBLIC_API_BASE_EXTERNAL` ็กฎไฟๅ‰็ซฏ่ฟžๆŽฅๅˆฐๆ‚จๆœๅŠกๅ™จ็š„ๅ…ฌๅ…ฑๅœฐๅ€ใ€‚
-:::
-
-## ่‡ชๅฎšไน‰็ซฏๅฃ
-
-ไฝฟ็”จไธๅŒ็š„็ซฏๅฃ๏ผš
-
-```bash
-docker run -d --name deeptutor \
- -p 9001:9001 -p 4000:4000 \
- -e BACKEND_PORT=9001 \
- -e FRONTEND_PORT=4000 \
- -e NEXT_PUBLIC_API_BASE_EXTERNAL=http://localhost:9001 \
- --env-file .env \
- -v $(pwd)/data:/app/data \
- ghcr.io/hkuds/deeptutor:latest
-```
-
-::: warning ้‡่ฆ
-`-p` ็ซฏๅฃๆ˜ ๅฐ„ๅฟ…้กปไธŽ `BACKEND_PORT`/`FRONTEND_PORT` ๅ€ผๅŒน้…ใ€‚
-:::
-
-## ่ฎฟ้—ฎๅœฐๅ€
-
-| ๆœๅŠก | URL | ่ฏดๆ˜Ž |
-|:---:|:---|:---|
-| **ๅ‰็ซฏ** | http://localhost:3782 | ไธป Web ็•Œ้ข |
-| **API ๆ–‡ๆกฃ** | http://localhost:8001/docs | ไบคไบ’ๅผ API ๆ–‡ๆกฃ |
-
-## ๅฎนๅ™จ็ฎก็†
-
-### ๆŸฅ็œ‹่ฟ่กŒไธญ็š„ๅฎนๅ™จ
-
-```bash
-docker ps
-```
-
-### ๅœๆญขๅฎนๅ™จ
-
-```bash
-docker stop deeptutor
-```
-
-### ๅˆ ้™คๅฎนๅ™จ
-
-```bash
-docker rm deeptutor
-```
-
-### ๆŸฅ็œ‹ๆ—ฅๅฟ—
-
-```bash
-# ๆ‰€ๆœ‰ๆ—ฅๅฟ—
-docker logs deeptutor
-
-# ๅฎžๆ—ถ่ทŸ่ธชๆ—ฅๅฟ—
-docker logs -f deeptutor
-
-# ๆœ€ๅŽ 100 ่กŒ
-docker logs --tail 100 deeptutor
-```
-
-## ๆ•…้šœๆŽ’้™ค
-
-### ไบ‘็ซฏ้ƒจ็ฝฒๆ—ถๅ‰็ซฏๆ— ๆณ•่ฟžๆŽฅ
-
-**้—ฎ้ข˜๏ผš** ๅ‰็ซฏๆ˜พ็คบ "Failed to fetch" ๆˆ– "NEXT_PUBLIC_API_BASE is not configured"
-
-**่งฃๅ†ณๆ–นๆกˆ๏ผš** ๅฐ† `NEXT_PUBLIC_API_BASE_EXTERNAL` ่ฎพ็ฝฎไธบๆ‚จๆœๅŠกๅ™จ็š„ๅ…ฌๅ…ฑ URL๏ผš
-
-```bash
--e NEXT_PUBLIC_API_BASE_EXTERNAL=https://your-server.com:8001
-```
-
-### ไฝฟ็”จ HTTPS ๅๅ‘ไปฃ็†ๆ—ถ่ฎพ็ฝฎ้กต้ขๆ˜พ็คบ "Error loading data"
-
-**้—ฎ้ข˜๏ผš** HTTPS ่ฏทๆฑ‚่ขซ้‡ๅฎšๅ‘ๅˆฐ HTTP๏ผˆ307 ้‡ๅฎšๅ‘๏ผ‰
-
-**่งฃๅ†ณๆ–นๆกˆ๏ผš** ๆญค้—ฎ้ข˜ๅทฒๅœจ v0.5.0+ ไธญไฟฎๅคใ€‚่ฏทๆ›ดๆ–ฐๅˆฐๆœ€ๆ–ฐ็‰ˆๆœฌใ€‚
-
-**nginx ้…็ฝฎ๏ผš**
-
-```nginx
-# ๅ‰็ซฏ
-location / {
- proxy_pass http://localhost:3782;
- proxy_set_header Host $host;
- proxy_set_header X-Forwarded-Proto $scheme;
-}
-
-# ๅŽ็ซฏ API
-location /api/ {
- proxy_pass http://localhost:8001;
- proxy_set_header Host $host;
- proxy_set_header X-Forwarded-Proto $scheme;
-}
-
-# WebSocket ๆ”ฏๆŒ
-location /api/v1/ {
- proxy_pass http://localhost:8001;
- proxy_http_version 1.1;
- proxy_set_header Upgrade $http_upgrade;
- proxy_set_header Connection "upgrade";
- proxy_set_header X-Forwarded-Proto $scheme;
-}
-```
-
-### ้‡ๅฏๅŽๆ•ฐๆฎๆœชไฟ็•™
-
-**่งฃๅ†ณๆ–นๆกˆ๏ผš** ็กฎไฟๆŒ‚่ฝฝไบ†ๆ•ฐๆฎ็›ฎๅฝ•๏ผš
-
-```bash
--v $(pwd)/data:/app/data
-```
-
-### HuggingFace ๆจกๅž‹ไธ‹่ฝฝๅคฑ่ดฅ๏ผˆๅ—้™็ฝ‘็ปœ๏ผ‰
-
-**่งฃๅ†ณๆ–นๆกˆ๏ผš** ๅœจ `.env` ไธญๆทปๅŠ  HuggingFace ้…็ฝฎ๏ผš
-
-```bash
-# ไฝฟ็”จ้•œๅƒ็ซฏ็‚น
-HF_ENDPOINT=https://your-hf-mirror.example.com
-
-# ๆˆ–ๅผบๅˆถ็ฆป็บฟๆจกๅผ๏ผˆ้œ€่ฆ้ข„็ผ“ๅญ˜็š„ๆจกๅž‹๏ผ‰
-HF_HUB_OFFLINE=1
-```
-
----
-
-**ไธ‹ไธ€ๆญฅ๏ผš** [ๅ‚ไธŽ่ดก็Œฎ โ†’](/zh/contribution)
-
-<style>
-.method-tabs {
- background: var(--vp-c-bg-soft);
- border: 1px solid var(--vp-c-border);
- border-radius: 12px;
- padding: 20px;
- margin: 16px 0;
-}
-
-.method-tabs h3 {
- margin-top: 0;
- padding-top: 0;
- border-top: none;
-}
-</style>
diff --git a/docs/zh/guide/local-start.md b/docs/zh/guide/local-start.md
deleted file mode 100644
index a01d8c0a7..000000000
--- a/docs/zh/guide/local-start.md
+++ /dev/null
@@ -1,61 +0,0 @@
-# ๆœฌๅœฐๅฏๅŠจ
-
-DeepTutor ็Žฐๅœจๅชๆœ‰ไธ€ๅฅ—ๅฎ˜ๆ–นๆœฌๆœบๅผ•ๅฏผๆต็จ‹ใ€‚
-
-## ๆŽจ่ๆต็จ‹
-
-1. `git clone` ้กน็›ฎใ€‚
-2. ๆฟ€ๆดป Python 3.11+ ็Žฏๅขƒใ€‚
-3. ไปŽๆบ็ ๅฎ‰่ฃ…๏ผš
-
-```bash
-pip install -e .
-pip install ".[server]"
-pip install ".[math-animator]" # ๅฏ้€‰
-```
-
-4. ่ฟ่กŒ๏ผš
-
-```bash
-python scripts/start_tour.py
-```
-
-ๅผ•ๅฏผไผš็›ดๆŽฅๅœจ็ปˆ็ซฏ้‡Œ่ฟ่กŒ๏ผŒๅนถๅ…ˆ่ฏข้—ฎไฝ ๆƒณไฝฟ็”จ `Web` ่ฟ˜ๆ˜ฏ `CLI`ใ€‚
-
-ไธค็งๆจกๅผๆœ€็ปˆ้ƒฝไผšๅ†™ๅ…ฅ้กน็›ฎๆ น็›ฎๅฝ• `.env`ใ€‚่ฟ่กŒ่กŒไธบ้…็ฝฎๅชไปŽไธ‹้ข่ฟ™ไบ›ๆ–‡ไปถ่ฏปๅ–๏ผš
-
-- `data/user/settings/main.yaml`
-- `data/user/settings/agents.yaml`
-- `data/user/settings/interface.json`
-
-## ๅผ•ๅฏผไผšๅฎŒๆˆไป€ไนˆ
-
-- ้€‰ๆ‹ฉ DeepTutor ๅŽ็ปญไธ€็›ดไฝฟ็”จ็š„ๅ‰็ซฏ็ซฏๅฃๅ’ŒๅŽ็ซฏ็ซฏๅฃ
-- ๅฎ‰่ฃ…ๆ‰€้€‰ๆกฃไฝ็š„ไพ่ต–
-- ๆ”ถ้›† LLMใ€Embeddingใ€ๅฏ้€‰ Search ้…็ฝฎ
-- ๅœจๆœ€็ปˆๅ†™ๅ…ฅๅ‰ๆต‹่ฏ• LLM ๅ’Œ Embedding
-- ๅ†™ๅ…ฅ `.env`๏ผŒๅนถๆธ…็†ๅฏ่ƒฝๆฎ‹็•™็š„ไธดๆ—ถ่‰็จฟ `data/user/settings/env.json`
-
-## ๅผ•ๅฏผๅฎŒๆˆๅŽๅฏๅŠจๅบ”็”จ
-
-```bash
-python scripts/start_web.py
-```
-
-่ฟ™ไธชๅฏๅŠจๅ™จไผš่ฏปๅ–้กน็›ฎๆ น็›ฎๅฝ• `.env`๏ผŒๅฏๅŠจ FastAPI ๅŽ็ซฏ๏ผŒๅนถ่‡ชๅŠจๆŠŠ `NEXT_PUBLIC_API_BASE` ๆณจๅ…ฅๅ‰็ซฏ่ฟ›็จ‹ใ€‚
-
-## ไป…ไฝฟ็”จ CLI
-
-ๅฆ‚ๆžœไฝ ๅชๆƒณไฝฟ็”จ็ปˆ็ซฏๅทฅไฝœๆต๏ผŒๅœจ `start_tour.py` ้‡Œ้€‰ๆ‹ฉ `CLI` ๅณๅฏใ€‚ไน‹ๅŽๅธธ็”จๅ‘ฝไปคไป็„ถๆ˜ฏ๏ผš
-
-```bash
-deeptutor chat
-deeptutor kb list
-deeptutor serve --port 8001
-```
-
-## ่ฏดๆ˜Ž
-
-- `config/` ๅทฒไธๅ†ๅ‚ไธŽ่ฟ่กŒๆ—ถๅŠ ่ฝฝใ€‚
-- `web/.env.local` ไธๅ†ๆ˜ฏๅฎ˜ๆ–นๆœฌๆœบ้…็ฝฎๆต็จ‹็š„ไธ€้ƒจๅˆ†ใ€‚
-- TTS ่ฎพ็ฝฎๅทฒไธๅ†ๅฑžไบŽๅฎ˜ๆ–น้…็ฝฎ้ขใ€‚
diff --git a/docs/zh/guide/pre-config.md b/docs/zh/guide/pre-config.md
deleted file mode 100644
index 6d776d58d..000000000
--- a/docs/zh/guide/pre-config.md
+++ /dev/null
@@ -1,193 +0,0 @@
-# ้ข„้…็ฝฎ
-
-ๅœจๅฏๅŠจ DeepTutor ไน‹ๅ‰๏ผŒๆ‚จ้œ€่ฆๅฎŒๆˆไปฅไธ‹่ฎพ็ฝฎๆญฅ้ชคใ€‚
-
-## 1. ๅ…‹้š†ไป“ๅบ“
-
-```bash
-git clone https://github.com/HKUDS/DeepTutor.git
-cd DeepTutor
-```
-
-## 2. ็Žฏๅขƒๅ˜้‡้…็ฝฎ
-
-ไปŽๆจกๆฟๅˆ›ๅปบ `.env` ๆ–‡ไปถ๏ผš
-
-```bash
-cp .env.example .env
-```
-
-็„ถๅŽ็ผ–่พ‘ `.env` ๆ–‡ไปถ๏ผŒๅกซๅ…ฅๆ‚จ็š„ API ๅฏ†้’ฅ๏ผš
-
-```bash
-# ============================================================================
-# ๆœๅŠกๅ™จ้…็ฝฎ
-# ============================================================================
-BACKEND_PORT=8001 # ๅŽ็ซฏ API ็ซฏๅฃ
-FRONTEND_PORT=3782 # ๅ‰็ซฏ Web ็ซฏๅฃ
-
-# ่ฟœ็จ‹/ๅฑ€ๅŸŸ็ฝ‘่ฎฟ้—ฎ - ่ฎพ็ฝฎไธบๆ‚จๆœๅŠกๅ™จ็š„ IP ๅœฐๅ€
-# NEXT_PUBLIC_API_BASE=http://192.168.1.100:8001
-
-# ============================================================================
-# LLM (ๅคง่ฏญ่จ€ๆจกๅž‹) ้…็ฝฎ - ๅฟ…ๅกซ
-# ============================================================================
-LLM_BINDING=openai # ๆไพ›ๅ•†: openai, anthropic, azure_openai, ollama ็ญ‰
-LLM_MODEL=gpt-4o # ๆจกๅž‹ๅ: gpt-4o, deepseek-chat, claude-3-5-sonnet ็ญ‰
-LLM_HOST=https://api.openai.com/v1 # API ็ซฏ็‚น URL
-LLM_API_KEY=your_api_key # ๆ‚จ็š„ LLM API ๅฏ†้’ฅ
-
-# ============================================================================
-# ๅตŒๅ…ฅๆจกๅž‹้…็ฝฎ - ็Ÿฅ่ฏ†ๅบ“ๅฟ…ๅกซ
-# ============================================================================
-EMBEDDING_BINDING=openai # ๆไพ›ๅ•†็ฑปๅž‹
-EMBEDDING_MODEL=text-embedding-3-large # ๅตŒๅ…ฅๆจกๅž‹ๅ็งฐ
-EMBEDDING_DIMENSION=3072 # ๅฟ…้กปไธŽๆจกๅž‹็ปดๅบฆๅŒน้…
-EMBEDDING_HOST=https://api.openai.com/v1 # API ็ซฏ็‚น
-EMBEDDING_API_KEY=your_api_key # ๅตŒๅ…ฅ API ๅฏ†้’ฅ
-
-# ============================================================================
-# ็ฝ‘็ปœๆœ็ดข้…็ฝฎ - ๅฏ้€‰
-# ============================================================================
-SEARCH_PROVIDER=perplexity # ้€‰้กน: perplexity, tavily, serper, jina, exa, baidu
-SEARCH_API_KEY=your_search_api_key # ๆœ็ดขๆไพ›ๅ•†็š„ API ๅฏ†้’ฅ
-```
-
-### ็Žฏๅขƒๅ˜้‡ๅ‚่€ƒ
-
-| ๅ˜้‡ | ๅฟ…ๅกซ | ่ฏดๆ˜Ž |
-|:---|:---:|:---|
-| `LLM_MODEL` | **ๆ˜ฏ** | ๆจกๅž‹ๅ็งฐ (ๅฆ‚ `gpt-4o`, `deepseek-chat`) |
-| `LLM_API_KEY` | **ๆ˜ฏ** | ๆ‚จ็š„ LLM API ๅฏ†้’ฅ |
-| `LLM_HOST` | **ๆ˜ฏ** | API ็ซฏ็‚น URL |
-| `EMBEDDING_MODEL` | **ๆ˜ฏ** | ๅตŒๅ…ฅๆจกๅž‹ๅ็งฐ |
-| `EMBEDDING_DIMENSION` | **ๆ˜ฏ** | ๅฟ…้กปไธŽๆจกๅž‹่พ“ๅ‡บ็ปดๅบฆๅŒน้… |
-| `EMBEDDING_API_KEY` | **ๆ˜ฏ** | ๅตŒๅ…ฅ API ๅฏ†้’ฅ |
-| `EMBEDDING_HOST` | **ๆ˜ฏ** | ๅตŒๅ…ฅ API ็ซฏ็‚น |
-| `BACKEND_PORT` | ๅฆ | ๅŽ็ซฏ็ซฏๅฃ (้ป˜่ฎค: `8001`) |
-| `FRONTEND_PORT` | ๅฆ | ๅ‰็ซฏ็ซฏๅฃ (้ป˜่ฎค: `3782`) |
-| `NEXT_PUBLIC_API_BASE` | ๅฆ | ่ฎพ็ฝฎ็”จไบŽ่ฟœ็จ‹/ๅฑ€ๅŸŸ็ฝ‘่ฎฟ้—ฎ |
-| `SEARCH_PROVIDER` | ๅฆ | ็ฝ‘็ปœๆœ็ดขๆไพ›ๅ•† |
-| `SEARCH_API_KEY` | ๅฆ | ๆœ็ดข API ๅฏ†้’ฅ |
-
-### ๆ”ฏๆŒ็š„ LLM ๆไพ›ๅ•†
-
-| ๆไพ›ๅ•† | `LLM_BINDING` ๅ€ผ | ่ฏดๆ˜Ž |
-|:---------|:--------------------|:------|
-| OpenAI | `openai` | GPT-4o, GPT-4, GPT-3.5 |
-| Anthropic | `anthropic` | Claude 3.5, Claude 3 |
-| Azure OpenAI | `azure_openai` | ไผไธš้ƒจ็ฝฒ |
-| Ollama | `ollama` | ๆœฌๅœฐๆจกๅž‹ |
-| DeepSeek | `deepseek` | DeepSeek-V3, DeepSeek-R1 |
-| Groq | `groq` | ๅฟซ้€ŸๆŽจ็† |
-| OpenRouter | `openrouter` | ๅคšๆจกๅž‹็ฝ‘ๅ…ณ |
-| Google Gemini | `gemini` | OpenAI ๅ…ผๅฎนๆจกๅผ |
-
-### ๆ”ฏๆŒ็š„ๅตŒๅ…ฅๆไพ›ๅ•†
-
-| ๆไพ›ๅ•† | `EMBEDDING_BINDING` ๅ€ผ | ่ฏดๆ˜Ž |
-|:---------|:--------------------------|:------|
-| OpenAI | `openai` | text-embedding-3-large/small |
-| Azure OpenAI | `azure_openai` | ไผไธš้ƒจ็ฝฒ |
-| Jina AI | `jina` | jina-embeddings-v3 |
-| Cohere | `cohere` | embed-v3 ็ณปๅˆ— |
-| Ollama | `ollama` | ๆœฌๅœฐๅตŒๅ…ฅๆจกๅž‹ |
-| LM Studio | `lm_studio` | ๆœฌๅœฐๆŽจ็†ๆœๅŠกๅ™จ |
-| HuggingFace | `huggingface` | OpenAI ๅ…ผๅฎน็ซฏ็‚น |
-
-## 3. ้…็ฝฎๆ–‡ไปถ
-
-DeepTutor ไฝฟ็”จไธคไธช YAML ้…็ฝฎๆ–‡ไปถ่ฟ›่กŒ่‡ชๅฎšไน‰๏ผš
-
-### `config/agents.yaml` - Agent ๅ‚ๆ•ฐ
-
-ๆญคๆ–‡ไปถๆŽงๅˆถๆฏไธชๆจกๅ—็š„ LLM ๅ‚ๆ•ฐ๏ผš
-
-```yaml
-# ่งฃ้ข˜ๆจกๅ— - ้—ฎ้ข˜ๆฑ‚่งฃ agents
-solve:
- temperature: 0.3
- max_tokens: 8192
-
-# ็ ”็ฉถๆจกๅ— - ๆทฑๅบฆ็ ”็ฉถ agents
-research:
- temperature: 0.5
- max_tokens: 12000
-
-# ้ข˜็›ฎๆจกๅ— - ้ข˜็›ฎ็”Ÿๆˆ agents
-question:
- temperature: 0.7
- max_tokens: 4096
-
-# ๅผ•ๅฏผๆจกๅ— - ๅญฆไน ๅผ•ๅฏผ agents
-guide:
- temperature: 0.5
- max_tokens: 16192
-
-# ๅไฝœๅ†™ไฝœๆจกๅ— - ๅไฝœๅ†™ไฝœ agents
-co_writer:
- temperature: 0.7
- max_tokens: 4096
-```
-
-### `data/user/settings/main.yaml` - ็ณป็ปŸ่ฎพ็ฝฎ
-
-ๆญคๆ–‡ไปถๆŽงๅˆถ่ทฏๅพ„ใ€ๅทฅๅ…ทๅ’Œๆจกๅ—็‰นๅฎš่ฎพ็ฝฎ๏ผš
-
-```yaml
-# ็ณป็ปŸ่ฏญ่จ€
-system:
- language: en
-
-# ๆ•ฐๆฎ่ทฏๅพ„
-paths:
- user_data_dir: ./data/user
- knowledge_bases_dir: ./data/knowledge_bases
-
-# ๅทฅๅ…ท้…็ฝฎ
-tools:
- rag_tool:
- kb_base_dir: ./data/knowledge_bases
- default_kb: ai_textbook
- run_code:
- workspace: ./data/user/workspace/chat/_detached_code_execution
- web_search:
- enabled: true
-
-# ๆจกๅ—็‰นๅฎš่ฎพ็ฝฎ
-research:
- researching:
- execution_mode: series # "series" ๆˆ– "parallel"
- max_iterations: 5
- enable_rag_hybrid: true
- enable_paper_search: true
- enable_web_search: true
-```
-
-> **ๆ็คบ๏ผš** ๅฏนไบŽๅคงๅคšๆ•ฐ็”จๆˆท๏ผŒ้ป˜่ฎค้…็ฝฎๅทฒ็ป่ถณๅคŸๅฅฝ็”จใ€‚ๅชๆœ‰ๅœจ้œ€่ฆ็‰นๅฎš่‡ชๅฎšไน‰ๆ—ถๆ‰ไฟฎๆ”น่ฟ™ไบ›ๆ–‡ไปถใ€‚
-
-## 4. ็Ÿฅ่ฏ†ๅบ“ๅ‡†ๅค‡๏ผˆๅฏ้€‰๏ผ‰
-
-ๆ‚จๅฏไปฅไฝฟ็”จๆˆ‘ไปฌ้ข„ๆž„ๅปบ็š„็คบไพ‹็Ÿฅ่ฏ†ๅบ“ๆฅๅฟซ้€Ÿๅผ€ๅง‹ใ€‚
-
-### ไธ‹่ฝฝ็คบไพ‹็Ÿฅ่ฏ†ๅบ“
-
-ไปŽ [Google Drive](https://drive.google.com/drive/folders/1iWwfZXiTuQKQqUYb5fGDZjLCeTUP6DA6?usp=sharing) ไธ‹่ฝฝๅนถ่งฃๅŽ‹ๅˆฐ `data/` ็›ฎๅฝ•ใ€‚
-
-::: info ้‡่ฆๆ็คบ
-็คบไพ‹็Ÿฅ่ฏ†ๅบ“ไฝฟ็”จ `text-embedding-3-large`๏ผŒ`dimensions = 3072`ใ€‚่ฏท็กฎไฟๆ‚จ็š„ๅตŒๅ…ฅๆจกๅž‹ๅ…ทๆœ‰ๅŒน้…็š„็ปดๅบฆใ€‚
-:::
-
-### ๅˆ›ๅปบๆ‚จ่‡ชๅทฑ็š„็Ÿฅ่ฏ†ๅบ“
-
-ๅฏๅŠจ DeepTutor ๅŽ๏ผš
-
-1. ๅฏผ่ˆชๅˆฐ `http://localhost:3782/knowledge`
-2. ็‚นๅ‡ป **"New Knowledge Base"**
-3. ่พ“ๅ…ฅๅ”ฏไธ€็š„ๅ็งฐ
-4. ไธŠไผ  PDF/TXT/MD ๆ–‡ไปถ
-5. ๅœจ็ปˆ็ซฏไธญ็›‘ๆŽง่ฟ›ๅบฆ
-
----
-
-**ไธ‹ไธ€ๆญฅ๏ผš** [ๆ•ฐๆฎๅ‡†ๅค‡ โ†’](/zh/guide/data-preparation)
diff --git a/docs/zh/guide/troubleshooting.md b/docs/zh/guide/troubleshooting.md
deleted file mode 100644
index 9be19db2c..000000000
--- a/docs/zh/guide/troubleshooting.md
+++ /dev/null
@@ -1,48 +0,0 @@
-# ๅธธ่ง้—ฎ้ข˜
-
-ๅฟซ้€Ÿ่งฃๅ†ณๅธธ่ง้—ฎ้ข˜ใ€‚
-
-## ๅฏๅŠจ้—ฎ้ข˜
-
-| ้—ฎ้ข˜ | ่งฃๅ†ณๆ–นๆกˆ |
-|:--------|:---------|
-| ๅŽ็ซฏๅฏๅŠจๅคฑ่ดฅ | ๆฃ€ๆŸฅ Python โ‰ฅ 3.11๏ผŒ้ชŒ่ฏ `.env` ้…็ฝฎ |
-| `npm: command not found` | ๅฎ‰่ฃ… Node.js: `conda install -c conda-forge nodejs` |
-| ็ซฏๅฃๅทฒ่ขซๅ ็”จ | ็ปˆๆญข่ฟ›็จ‹๏ผš`lsof -i :8001` โ†’ `kill -9 <PID>` |
-
-## ่ฟžๆŽฅ้—ฎ้ข˜
-
-| ้—ฎ้ข˜ | ่งฃๅ†ณๆ–นๆกˆ |
-|:--------|:---------|
-| ๅ‰็ซฏๆ— ๆณ•่ฟžๆŽฅๅŽ็ซฏ | ็กฎ่ฎคๅŽ็ซฏ่ฟ่กŒๅœจ <http://localhost:8001/docs> |
-| WebSocket ่ฟžๆŽฅๅคฑ่ดฅ | ๆฃ€ๆŸฅ้˜ฒ็ซๅข™๏ผŒ็กฎ่ฎค `ws://localhost:8001/api/v1/...` ๆ ผๅผ |
-| ่ฟœ็จ‹่ฎฟ้—ฎๅคฑ่ดฅ | ๅœจ `.env` ไธญ่ฎพ็ฝฎ `NEXT_PUBLIC_API_BASE=http://your-ip:8001` |
-
-## Docker ้—ฎ้ข˜
-
-| ้—ฎ้ข˜ | ่งฃๅ†ณๆ–นๆกˆ |
-|:--------|:---------|
-| ไบ‘็ซฏๅ‰็ซฏๆ— ๆณ•่ฟžๆŽฅ | ่ฎพ็ฝฎ `NEXT_PUBLIC_API_BASE_EXTERNAL=https://your-server:8001` |
-| ๆžถๆž„ไธๅŒน้… | ไฝฟ็”จ `uname -m` ๆฃ€ๆŸฅ๏ผšAMD64 ็”จ `:latest`๏ผŒARM ็”จ `:latest-arm64` |
-
-## ็Ÿฅ่ฏ†ๅบ“้—ฎ้ข˜
-
-| ้—ฎ้ข˜ | ่งฃๅ†ณๆ–นๆกˆ |
-|:--------|:---------|
-| ๅค„็†ๅกไฝ | ๆฃ€ๆŸฅ็ปˆ็ซฏๆ—ฅๅฟ—๏ผŒ้ชŒ่ฏ API ๅฏ†้’ฅ |
-| `uvloop.Loop` ้”™่ฏฏ | ่ฏฅ็ผ–ๅทๆก็›ฎๆๅ–ๆต็จ‹ๅทฒ็งป้™ค๏ผˆllamaindex-only๏ผ‰๏ผŒๆ— ้œ€้ขๅค–ๅค„็† |
-
-## ็ปˆๆญขๅŽๅฐ่ฟ›็จ‹
-
-```bash
-# macOS/Linux
-lsof -i :8001 && kill -9 <PID>
-
-# Windows
-netstat -ano | findstr :8001
-taskkill /PID <PID> /F
-```
-
----
-
-๐Ÿ“– **ๅฎŒๆ•ด FAQ**: [GitHub README](https://github.com/HKUDS/DeepTutor#-faq)
diff --git a/docs/zh/index.md b/docs/zh/index.md
deleted file mode 100644
index 505cd9cd1..000000000
--- a/docs/zh/index.md
+++ /dev/null
@@ -1,77 +0,0 @@
----
-layout: home
-
-hero:
- name: "DeepTutor"
- text: "ไฝ ็š„ AI ๅญฆไน ไผ™ไผด"
- tagline: ๅฐ†ไปปไฝ•ๆ–‡ๆกฃ่ฝฌๅŒ–ไธบๅคšๆ™บ่ƒฝไฝ“้ฉฑๅŠจ็š„ไบ’ๅŠจๅญฆไน ไฝ“้ชŒ
- image:
- src: /logo.png
- alt: DeepTutor
- actions:
- - theme: brand
- text: ๅฟซ้€Ÿๅผ€ๅง‹ โ†’
- link: /zh/guide/pre-config
- - theme: alt
- text: GitHub
- link: https://github.com/HKUDS/DeepTutor
-
-features:
- - icon: ๐Ÿ“š
- title: ๆตท้‡ๆ–‡ๆกฃ้—ฎ็ญ”
- details: ไธŠไผ ๆ•™ๆใ€่ฎบๆ–‡ๅ’Œๆ‰‹ๅ†Œ๏ผŒๆž„ๅปบๅŸบไบŽ RAG ๅ’Œ็Ÿฅ่ฏ†ๅ›พ่ฐฑ็š„ AI ็Ÿฅ่ฏ†ๅบ“ใ€‚
- - icon: ๐Ÿง 
- title: ๆ™บ่ƒฝ่งฃ้ข˜
- details: ๅŒๅพช็ŽฏๆŽจ็†ๆžถๆž„้…ๅˆๅคšๆ™บ่ƒฝไฝ“ๅไฝœ๏ผŒๆไพ›ๅธฆๆœ‰็ฒพๅ‡†ๆ–‡ๆกฃๅผ•็”จ็š„้€ๆญฅ่งฃ็ญ”ใ€‚
- - icon: ๐ŸŽฏ
- title: ้ข˜็›ฎ็”Ÿๆˆ
- details: ๅŸบไบŽ็Ÿฅ่ฏ†ๅบ“็”Ÿๆˆ่‡ชๅฎšไน‰ๆต‹้ชŒ๏ผŒๆˆ–ๆจกๆ‹Ÿ็œŸๅฎž่€ƒ่ฏ•้ฃŽๆ ผ่ฟ›่กŒ็ปƒไน ใ€‚
- - icon: ๐ŸŽ“
- title: ๅผ•ๅฏผๅญฆไน 
- details: ไธชๆ€งๅŒ–ๅญฆไน ่ทฏๅพ„๏ผŒ้…ๅˆไบคไบ’ๅผๅฏ่ง†ๅŒ–ๅ’Œ่‡ช้€‚ๅบ”่ฎฒ่งฃใ€‚
- - icon: ๐Ÿ”ฌ
- title: ๆทฑๅบฆ็ ”็ฉถ
- details: ็ณป็ปŸๅŒ–ไธป้ข˜ๆŽข็ดข๏ผŒๆ•ดๅˆ็ฝ‘็ปœๆœ็ดขใ€่ฎบๆ–‡ๆฃ€็ดขๅ’Œๆ–‡็Œฎ็ปผๅˆใ€‚
- - icon: ๐Ÿ’ก
- title: ็ตๆ„Ÿ็”Ÿๆˆ
- details: AI ่พ…ๅŠฉๅคด่„‘้ฃŽๆšด๏ผŒ็Ÿฅ่ฏ†ๆๅ–ไธŽๅคš้˜ถๆฎต็ญ›้€‰ใ€‚
----
-
-## ไธบไป€ไนˆ้€‰ๆ‹ฉ DeepTutor๏ผŸ
-
-- **ๆทฑๅบฆ็†่งฃ** โ€” ไธๅชๆ˜ฏ็ญ”ๆกˆ๏ผŒ่€Œๆ˜ฏๅธฆๆœ‰ๅฏ่ง†ๅŒ–่ฎฒ่งฃ็š„ๅผ•ๅฏผๅผๅญฆไน ไน‹ๆ—…
-- **ๅคšๆจกๆ€ๆ”ฏๆŒ** โ€” PDFใ€LaTeXใ€ๅ›พ็‰‡ใ€ไปฃ็ ๆ‰ง่กŒ็ญ‰ๅ…จ้ขๆ”ฏๆŒ
-- **็Ÿฅ่ฏ†ๆฃ€็ดข** โ€” ๅŸบไบŽ llamaindex ็š„็ปŸไธ€ๆฃ€็ดข่ƒฝๅŠ›๏ผŒๅฎž็Žฐๆ›ดๅฅฝ็š„็†่งฃ
-- **ไธ€็ซ™ๅผๅนณๅฐ** โ€” ่งฃ้ข˜ใ€้ข˜็›ฎ็”Ÿๆˆใ€็ ”็ฉถใ€็ตๆ„Ÿ็”Ÿๆˆ้›†ไบŽไธ€ไฝ“
-
-<style>
-:root {
- --vp-home-hero-name-color: transparent;
- --vp-home-hero-name-background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
- --vp-home-hero-image-background-image: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 50%, rgba(240, 147, 251, 0.15) 100%);
- --vp-home-hero-image-filter: blur(72px);
-}
-
-.dark {
- --vp-home-hero-image-background-image: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 50%, rgba(240, 147, 251, 0.1) 100%);
-}
-
-.VPHero .name {
- font-size: 4.5rem !important;
- line-height: 1.1 !important;
-}
-
-.VPHero .text {
- font-size: 2.4rem !important;
- font-weight: 600 !important;
-}
-
-@media (max-width: 768px) {
- .VPHero .name {
- font-size: 3rem !important;
- }
- .VPHero .text {
- font-size: 1.8rem !important;
- }
-}
-</style>
diff --git a/docs/zh/roadmap.md b/docs/zh/roadmap.md
deleted file mode 100644
index a5df883f3..000000000
--- a/docs/zh/roadmap.md
+++ /dev/null
@@ -1,177 +0,0 @@
-# ่ทฏ็บฟๅ›พ
-
-## โšก ๅฝ“ๅ‰้‡็‚น
-
-- ๐Ÿ”„ **ๆ›ดๅคš RAG ็ฎก้“** โ€” ๆ‰ฉๅฑ•ๆฃ€็ดขๆžถๆž„ๅ’ŒๅŽ็ซฏ
-- **ๆ•ฐๆฎๅบ“็จณๅฎšๆ€งไธŽๅฏ่ง†ๅŒ–** โ€” ็จณๅฎšๆ€งๆ”น่ฟ›ๅ’Œๅฏ่ง†ๅŒ–ๆดžๅฏŸ
-- ๐Ÿ”„ **Bug ไฟฎๅค** โ€” ๅค„็†ๅทฒๆŠฅๅ‘Š็š„้—ฎ้ข˜ๅ’Œ่พน็ผ˜ๆƒ…ๅ†ต
-
-## ๐Ÿ“ฌ ็คพๅŒบ้œ€ๆฑ‚ๆธ…ๅ•
-
-ๆฅ่‡ช็คพๅŒบ็š„ๅŠŸ่ƒฝ่ฏทๆฑ‚๏ผš
-
-- ๐Ÿ‘ฅ **ๅคš็”จๆˆทๅไฝœๅญฆไน ** โ€” ๅฎžๆ—ถๅ…ฑไบซๅญฆไน ไผš่ฏ
-- ๐ŸŽ“ **้€š็”จๅผ•ๅฏผๅญฆไน ** โ€” ๆ›ดๅนฟๆณ›็š„่‡ช้€‚ๅบ”ๅญฆไน ่ทฏๅพ„
-- ๐Ÿ“ **่‡ชๅŠจ็ฌ”่ฎฐ็”Ÿๆˆ** โ€” AI ้ฉฑๅŠจ็š„ๆ‘˜่ฆๅ’Œ็ฌ”่ฎฐๅˆ›ๅปบ
-
----
-
-<div class="community-wrapper">
-
-<div class="community-header">
- <h2>๐Ÿค ๅ…ฑๅˆ›ๆœชๆฅ๏ผ</h2>
- <p>DeepTutor ็”ฑ็คพๅŒบๆž„ๅปบ๏ผŒไธบ็คพๅŒบๆœๅŠกใ€‚</p>
-</div>
-
-<div class="community-grid">
-
-<div class="community-card">
- <div class="card-icon">๐Ÿ’ก</div>
- <div class="card-title">ๆƒณๆณ•</div>
- <div class="card-desc">ๅˆ†ไบซๅ้ฆˆ๏ผŒๆๅ‡บๅŠŸ่ƒฝๅปบ่ฎฎ</div>
- <div class="card-links">
- <div class="link-row">
- <a href="https://discord.gg/zpP9cssj" class="discord">Discord</a>
- <a href="https://github.com/HKUDS/DeepTutor/issues/78" class="wechat">ๅพฎไฟก็พค</a>
- </div>
- <div class="link-row">
- <a href="https://github.com/HKUDS/DeepTutor/discussions" class="github">GitHub Discussions</a>
- </div>
- </div>
-</div>
-
-<div class="community-card">
- <div class="card-icon">๐Ÿ”ง</div>
- <div class="card-title">ไปฃ็ </div>
- <div class="card-desc">ๆฌข่ฟŽๅ‘ <code>dev</code> ๅˆ†ๆ”ฏๆไบค PR</div>
- <div class="card-links">
- <a href="https://github.com/HKUDS/DeepTutor/blob/main/CONTRIBUTING.md" class="github">่ดก็ŒฎๆŒ‡ๅ— โ†’</a>
- </div>
-</div>
-
-</div>
-
-</div>
-
-<style>
-.community-wrapper {
- margin-top: 24px;
- padding: 40px;
- background: linear-gradient(135deg, rgba(102, 126, 234, 0.03) 0%, rgba(118, 75, 162, 0.03) 100%);
- border: 1px solid rgba(102, 126, 234, 0.1);
- border-radius: 16px;
-}
-
-.community-header {
- text-align: center;
- margin-bottom: 32px;
-}
-
-.community-header h2 {
- margin: 0 0 8px;
- font-size: 1.6rem;
- border: none;
-}
-
-.community-header p {
- margin: 0;
- color: var(--vp-c-text-2);
- font-size: 1rem;
-}
-
-.community-grid {
- display: grid;
- grid-template-columns: repeat(2, 1fr);
- gap: 20px;
- max-width: 600px;
- margin: 0 auto;
-}
-
-@media (max-width: 640px) {
- .community-grid {
- grid-template-columns: 1fr;
- }
-}
-
-.community-card {
- background: var(--vp-c-bg);
- border: 1px solid var(--vp-c-divider);
- border-radius: 12px;
- padding: 24px;
- text-align: center;
- transition: all 0.25s ease;
-}
-
-.community-card:hover {
- border-color: rgba(102, 126, 234, 0.4);
- box-shadow: 0 4px 20px rgba(102, 126, 234, 0.08);
- transform: translateY(-2px);
-}
-
-.card-icon {
- font-size: 2rem;
- margin-bottom: 12px;
-}
-
-.card-title {
- font-size: 1.15rem;
- font-weight: 600;
- margin-bottom: 6px;
- color: var(--vp-c-text-1);
-}
-
-.card-desc {
- font-size: 0.9rem;
- color: var(--vp-c-text-2);
- margin-bottom: 16px;
-}
-
-.card-links {
- display: flex;
- flex-direction: column;
- align-items: center;
- gap: 8px;
-}
-
-.link-row {
- display: flex;
- gap: 8px;
- justify-content: center;
-}
-
-.card-links a {
- font-size: 0.85rem;
- font-weight: 500;
- text-decoration: none;
- padding: 6px 14px;
- border-radius: 6px;
- transition: all 0.2s;
-}
-
-/* Discord - ่“็ดซ่‰ฒ */
-.card-links a.discord {
- color: #5865F2;
- background: rgba(88, 101, 242, 0.1);
-}
-.card-links a.discord:hover {
- background: rgba(88, 101, 242, 0.2);
-}
-
-/* WeChat - ็ปฟ่‰ฒ */
-.card-links a.wechat {
- color: #07C160;
- background: rgba(7, 193, 96, 0.1);
-}
-.card-links a.wechat:hover {
- background: rgba(7, 193, 96, 0.2);
-}
-
-/* GitHub - ๆทฑ็ฐ็ดซ */
-.card-links a.github {
- color: #6e5494;
- background: rgba(110, 84, 148, 0.1);
-}
-.card-links a.github:hover {
- background: rgba(110, 84, 148, 0.2);
-}
-</style>
diff --git a/scripts/start_tour.py b/scripts/start_tour.py
index 250741dcb..f9d6eee71 100644
--- a/scripts/start_tour.py
+++ b/scripts/start_tour.py
@@ -18,6 +18,30 @@ PROJECT_ROOT = Path(__file__).resolve().parent.parent
if str(PROJECT_ROOT) not in sys.path:
sys.path.insert(0, str(PROJECT_ROOT))
+
+def _resolve_python() -> str:
+ """Return a validated path to the current Python interpreter.
+
+ ``sys.executable`` can be empty or point to a non-existent path on
+ some platforms (notably Windows with Python 3.14+). This helper
+ resolves the real path first, then falls back to ``shutil.which``.
+ """
+ exe = sys.executable
+ if exe:
+ resolved = str(Path(exe).resolve())
+ if Path(resolved).exists():
+ return resolved
+ if Path(exe).exists():
+ return exe
+ for name in ("python3", "python"):
+ found = shutil.which(name)
+ if found:
+ return found
+ return exe or "python3"
+
+
+_PYTHON: str = _resolve_python()
+
# ---------------------------------------------------------------------------
# Bootstrap: ensure minimum packages required to import project modules
# ---------------------------------------------------------------------------
@@ -33,7 +57,7 @@ def _bootstrap() -> None:
return
print(f" Installing bootstrap dependencies: {', '.join(missing)} ...")
subprocess.check_call(
- [sys.executable, "-m", "pip", "install", *missing, "-q"],
+ [_PYTHON, "-m", "pip", "install", *missing, "-q"],
stdout=subprocess.DEVNULL,
stderr=subprocess.DEVNULL,
)
@@ -350,10 +374,10 @@ def _install_commands(
cmds: list[tuple[list[str], Path]] = []
for req in PROFILE_COMMANDS[profile]:
- cmds.append(([sys.executable, "-m", "pip", "install", "-r", req], PROJECT_ROOT))
+ cmds.append(([_PYTHON, "-m", "pip", "install", "-r", req], PROJECT_ROOT))
if include_math_animator:
- cmds.append(([sys.executable, "-m", "pip", "install", "-r", MATH_ANIMATOR_REQUIREMENTS], PROJECT_ROOT))
- cmds.append(([sys.executable, "-m", "pip", "install", "-e", ".", "--no-deps"], PROJECT_ROOT))
+ cmds.append(([_PYTHON, "-m", "pip", "install", "-r", MATH_ANIMATOR_REQUIREMENTS], PROJECT_ROOT))
+ cmds.append(([_PYTHON, "-m", "pip", "install", "-e", ".", "--no-deps"], PROJECT_ROOT))
if profile.startswith("web"):
cmds.append((["npm", "install"], PROJECT_ROOT / "web"))
# Provider SDKs are now bundled in cli.txt, no separate install needed.
@@ -653,7 +677,7 @@ def _run_web_tour() -> None:
frontend_env = os.environ.copy()
frontend_env["NEXT_PUBLIC_API_BASE"] = f"http://localhost:{ports['backend']}"
- backend_cmd = [sys.executable, "-m", "deeptutor.api.run_server"]
+ backend_cmd = [_PYTHON, "-m", "deeptutor.api.run_server"]
frontend_cmd = [npm, "run", "dev", "--", "--port", str(ports["frontend"])]
log_info("Starting temporary server ...")
@@ -714,7 +738,7 @@ def _run_web_tour() -> None:
countdown(remaining, "Launching in")
print()
- os.execvp(sys.executable, [sys.executable, str(PROJECT_ROOT / "scripts" / "start_web.py")])
+ os.execvp(_PYTHON, [_PYTHON, str(PROJECT_ROOT / "scripts" / "start_web.py")])
# ===================================================================
diff --git a/tests/api/test_notebook_router.py b/tests/api/test_notebook_router.py
new file mode 100644
index 000000000..ec1b406d0
--- /dev/null
+++ b/tests/api/test_notebook_router.py
@@ -0,0 +1,206 @@
+from __future__ import annotations
+
+import asyncio
+import importlib
+from pathlib import Path
+
+import pytest
+
+pytest.importorskip("fastapi")
+
+FastAPI = pytest.importorskip("fastapi").FastAPI
+TestClient = pytest.importorskip("fastapi.testclient").TestClient
+notebook_router = importlib.import_module(
+ "deeptutor.api.routers.question_notebook"
+).router
+sessions_router = importlib.import_module("deeptutor.api.routers.sessions").router
+
+from deeptutor.services.session.sqlite_store import SQLiteSessionStore
+
+
+def _build_app(store: SQLiteSessionStore) -> FastAPI:
+ app = FastAPI()
+ app.include_router(notebook_router, prefix="/api/v1/question-notebook")
+ app.include_router(sessions_router, prefix="/api/v1/sessions")
+ return app
+
+
+def store(tmp_path: Path, monkeypatch) -> SQLiteSessionStore:
+ instance = SQLiteSessionStore(db_path=tmp_path / "router-test.db")
+ monkeypatch.setattr(
+ "deeptutor.api.routers.question_notebook.get_sqlite_session_store",
+ lambda: instance,
+ )
+ monkeypatch.setattr(
+ "deeptutor.api.routers.sessions.get_sqlite_session_store",
+ lambda: instance,
+ )
+ return instance
+
+
+def _quiz_answers():
+ return [
+ {
+ "question_id": "q1",
+ "question": "Capital of France?",
+ "question_type": "choice",
+ "options": {"A": "Berlin", "B": "Paris"},
+ "user_answer": "A",
+ "correct_answer": "B",
+ "explanation": "Paris is the capital.",
+ "difficulty": "easy",
+ "is_correct": False,
+ },
+ {
+ "question_id": "q2",
+ "question": "2+2?",
+ "question_type": "choice",
+ "options": {"A": "3", "B": "4"},
+ "user_answer": "B",
+ "correct_answer": "B",
+ "is_correct": True,
+ },
+ ]
+
+
+def test_list_entries_empty(store: SQLiteSessionStore) -> None:
+ with TestClient(_build_app(store)) as client:
+ resp = client.get("/api/v1/question-notebook/entries")
+ assert resp.status_code == 200
+ assert resp.json() == {"items": [], "total": 0}
+
+
+def test_quiz_results_populates_notebook(store: SQLiteSessionStore) -> None:
+ session = asyncio.run(store.create_session(title="Quiz Session"))
+ sid = session["id"]
+
+ with TestClient(_build_app(store)) as client:
+ resp = client.post(
+ f"/api/v1/sessions/{sid}/quiz-results",
+ json={"answers": _quiz_answers()},
+ )
+ assert resp.status_code == 200
+ body = resp.json()
+ assert body["recorded"] is True
+ assert body["notebook_count"] == 2
+ assert "[Quiz Performance]" in body["content"]
+
+ listing = client.get("/api/v1/question-notebook/entries")
+ assert listing.status_code == 200
+ items = listing.json()["items"]
+ assert len(items) == 2
+
+
+def test_quiz_results_upserts_on_retry(store: SQLiteSessionStore) -> None:
+ session = asyncio.run(store.create_session())
+ sid = session["id"]
+
+ with TestClient(_build_app(store)) as client:
+ client.post(f"/api/v1/sessions/{sid}/quiz-results", json={"answers": _quiz_answers()})
+ updated = _quiz_answers()
+ updated[0]["user_answer"] = "B"
+ updated[0]["is_correct"] = True
+ client.post(f"/api/v1/sessions/{sid}/quiz-results", json={"answers": updated})
+
+ listing = client.get("/api/v1/question-notebook/entries").json()
+ assert listing["total"] == 2
+ q1 = next(e for e in listing["items"] if e["question_id"] == "q1")
+ assert q1["is_correct"] is True
+ assert q1["user_answer"] == "B"
+
+
+def test_bookmark_toggle(store: SQLiteSessionStore) -> None:
+ session = asyncio.run(store.create_session())
+ asyncio.run(store.upsert_notebook_entries(session["id"], [{
+ "question_id": "q1", "question": "Q?", "is_correct": False,
+ }]))
+ eid = asyncio.run(store.list_notebook_entries())["items"][0]["id"]
+
+ with TestClient(_build_app(store)) as client:
+ resp = client.patch(
+ f"/api/v1/question-notebook/entries/{eid}",
+ json={"bookmarked": True},
+ )
+ assert resp.status_code == 200
+
+ bm = client.get("/api/v1/question-notebook/entries?bookmarked=true").json()
+ assert bm["total"] == 1
+
+ client.patch(f"/api/v1/question-notebook/entries/{eid}", json={"bookmarked": False})
+ bm2 = client.get("/api/v1/question-notebook/entries?bookmarked=true").json()
+ assert bm2["total"] == 0
+
+
+def test_delete_entry(store: SQLiteSessionStore) -> None:
+ session = asyncio.run(store.create_session())
+ asyncio.run(store.upsert_notebook_entries(session["id"], [{
+ "question_id": "q1", "question": "Q?", "is_correct": False,
+ }]))
+ eid = asyncio.run(store.list_notebook_entries())["items"][0]["id"]
+
+ with TestClient(_build_app(store)) as client:
+ assert client.delete(f"/api/v1/question-notebook/entries/{eid}").status_code == 200
+ assert client.delete(f"/api/v1/question-notebook/entries/{eid}").status_code == 404
+
+
+def test_category_crud_and_association(store: SQLiteSessionStore) -> None:
+ session = asyncio.run(store.create_session())
+ asyncio.run(store.upsert_notebook_entries(session["id"], [{
+ "question_id": "q1", "question": "Q?", "is_correct": False,
+ }]))
+ eid = asyncio.run(store.list_notebook_entries())["items"][0]["id"]
+
+ with TestClient(_build_app(store)) as client:
+ cat_resp = client.post(
+ "/api/v1/question-notebook/categories",
+ json={"name": "Math"},
+ )
+ assert cat_resp.status_code == 201
+ cat_id = cat_resp.json()["id"]
+
+ cats = client.get("/api/v1/question-notebook/categories").json()
+ assert len(cats) == 1
+ assert cats[0]["name"] == "Math"
+
+ add_resp = client.post(
+ f"/api/v1/question-notebook/entries/{eid}/categories",
+ json={"category_id": cat_id},
+ )
+ assert add_resp.status_code == 200
+
+ by_cat = client.get(f"/api/v1/question-notebook/entries?category_id={cat_id}").json()
+ assert by_cat["total"] == 1
+
+ rm_resp = client.delete(f"/api/v1/question-notebook/entries/{eid}/categories/{cat_id}")
+ assert rm_resp.status_code == 200
+ by_cat2 = client.get(f"/api/v1/question-notebook/entries?category_id={cat_id}").json()
+ assert by_cat2["total"] == 0
+
+ client.patch(f"/api/v1/question-notebook/categories/{cat_id}", json={"name": "Algebra"})
+ cats2 = client.get("/api/v1/question-notebook/categories").json()
+ assert cats2[0]["name"] == "Algebra"
+
+ client.delete(f"/api/v1/question-notebook/categories/{cat_id}")
+ assert client.get("/api/v1/question-notebook/categories").json() == []
+
+
+def test_lookup_entry_by_question(store: SQLiteSessionStore) -> None:
+ session = asyncio.run(store.create_session())
+ asyncio.run(store.upsert_notebook_entries(session["id"], [{
+ "question_id": "q1", "question": "Q?", "is_correct": False,
+ }]))
+
+ with TestClient(_build_app(store)) as client:
+ resp = client.get(
+ "/api/v1/question-notebook/entries/lookup/by-question",
+ params={"session_id": session["id"], "question_id": "q1"},
+ )
+ assert resp.status_code == 200
+ assert resp.json()["question_id"] == "q1"
+
+ resp404 = client.get(
+ "/api/v1/question-notebook/entries/lookup/by-question",
+ params={"session_id": session["id"], "question_id": "nope"},
+ )
+ assert resp404.status_code == 404
diff --git a/tests/api/test_wrong_answers_router.py b/tests/api/test_wrong_answers_router.py
deleted file mode 100644
index 95f518541..000000000
--- a/tests/api/test_wrong_answers_router.py
+++ /dev/null
@@ -1,191 +0,0 @@
-from __future__ import annotations
-
-import importlib
-from pathlib import Path
-
-import pytest
-
-pytest.importorskip("fastapi")
-
-FastAPI = pytest.importorskip("fastapi").FastAPI
-TestClient = pytest.importorskip("fastapi.testclient").TestClient
-wrong_answers_router = importlib.import_module(
- "deeptutor.api.routers.wrong_answers"
-).router
-sessions_router = importlib.import_module("deeptutor.api.routers.sessions").router
-
-from deeptutor.services.session.sqlite_store import SQLiteSessionStore
-
-
-def _build_app(store: SQLiteSessionStore) -> FastAPI:
- app = FastAPI()
- app.include_router(wrong_answers_router, prefix="/api/v1/wrong-answers")
- app.include_router(sessions_router, prefix="/api/v1/sessions")
- return app
-
-
-def store(tmp_path: Path, monkeypatch) -> SQLiteSessionStore:
- instance = SQLiteSessionStore(db_path=tmp_path / "router-test.db")
- monkeypatch.setattr(
- "deeptutor.api.routers.wrong_answers.get_sqlite_session_store",
- lambda: instance,
- )
- monkeypatch.setattr(
- "deeptutor.api.routers.sessions.get_sqlite_session_store",
- lambda: instance,
- )
- return instance
-
-
-def test_list_wrong_answers_empty(store: SQLiteSessionStore) -> None:
- with TestClient(_build_app(store)) as client:
- response = client.get("/api/v1/wrong-answers")
- assert response.status_code == 200
- payload = response.json()
- assert payload == {"items": [], "total": 0}
-
-
-def test_record_quiz_results_populates_wrong_answers(
- store: SQLiteSessionStore,
-) -> None:
- import asyncio
-
- session = asyncio.run(store.create_session(title="Quiz Session"))
- session_id = session["id"]
-
- with TestClient(_build_app(store)) as client:
-
- resp = client.post(
- f"/api/v1/sessions/{session_id}/quiz-results",
- json={
- "answers": [
- {
- "question_id": "q1",
- "question": "Capital of France?",
- "user_answer": "Berlin",
- "correct_answer": "Paris",
- "is_correct": False,
- },
- {
- "question_id": "q2",
- "question": "2+2?",
- "user_answer": "4",
- "correct_answer": "4",
- "is_correct": True,
- },
- ]
- },
- )
- assert resp.status_code == 200
- body = resp.json()
- assert body["recorded"] is True
- assert body["answer_count"] == 2
- assert body["wrong_answer_count"] == 1
- # Regression: the formatted text message is still added.
- assert "[Quiz Performance]" in body["content"]
-
- listing = client.get("/api/v1/wrong-answers")
- assert listing.status_code == 200
- items = listing.json()["items"]
- assert len(items) == 1
- assert items[0]["question_id"] == "q1"
- assert items[0]["resolved"] is False
- assert items[0]["session_title"] == "Quiz Session"
-
-
-def test_update_wrong_answer_resolved_endpoint(
- store: SQLiteSessionStore,
-) -> None:
- import asyncio
-
- session = asyncio.run(store.create_session())
- asyncio.run(
- store.add_wrong_answers(
- session["id"],
- [{"question": "Q?", "is_correct": False}],
- )
- )
- rows = asyncio.run(store.list_wrong_answers())
- row_id = rows[0]["id"]
-
- with TestClient(_build_app(store)) as client:
- resp = client.patch(
- f"/api/v1/wrong-answers/{row_id}",
- json={"resolved": True},
- )
- assert resp.status_code == 200
- assert resp.json() == {
- "updated": True,
- "id": row_id,
- "resolved": True,
- }
-
- listing = client.get(
- "/api/v1/wrong-answers", params={"resolved": "false"}
- )
- assert listing.json()["items"] == []
-
- not_found = client.patch(
- "/api/v1/wrong-answers/99999",
- json={"resolved": True},
- )
- assert not_found.status_code == 404
-
-
-def test_delete_wrong_answer_endpoint(store: SQLiteSessionStore) -> None:
- import asyncio
-
- session = asyncio.run(store.create_session())
- asyncio.run(
- store.add_wrong_answers(
- session["id"],
- [{"question": "Q?", "is_correct": False}],
- )
- )
- row_id = asyncio.run(store.list_wrong_answers())[0]["id"]
-
- with TestClient(_build_app(store)) as client:
- resp = client.delete(f"/api/v1/wrong-answers/{row_id}")
- assert resp.status_code == 200
- assert resp.json() == {"deleted": True, "id": row_id}
-
- missing = client.delete(f"/api/v1/wrong-answers/{row_id}")
- assert missing.status_code == 404
-
-
-def test_list_wrong_answers_filter_by_resolved(
- store: SQLiteSessionStore,
-) -> None:
- import asyncio
-
- session = asyncio.run(store.create_session())
- asyncio.run(
- store.add_wrong_answers(
- session["id"],
- [
- {"question": "Q1", "is_correct": False},
- {"question": "Q2", "is_correct": False},
- ],
- )
- )
- rows = asyncio.run(store.list_wrong_answers())
- asyncio.run(store.update_wrong_answer_resolved(rows[0]["id"], True))
-
- with TestClient(_build_app(store)) as client:
- all_resp = client.get("/api/v1/wrong-answers").json()
- assert all_resp["total"] == 2
- assert len(all_resp["items"]) == 2
-
- unresolved = client.get(
- "/api/v1/wrong-answers", params={"resolved": "false"}
- ).json()
- assert unresolved["total"] == 1
- assert len(unresolved["items"]) == 1
- assert unresolved["items"][0]["resolved"] is False
-
- resolved = client.get(
- "/api/v1/wrong-answers", params={"resolved": "true"}
- ).json()
- assert resolved["total"] == 1
- assert resolved["items"][0]["resolved"] is True
diff --git a/tests/scripts/test_start_tour.py b/tests/scripts/test_start_tour.py
index 26e0341b1..94cdccce2 100644
--- a/tests/scripts/test_start_tour.py
+++ b/tests/scripts/test_start_tour.py
@@ -3,8 +3,10 @@ from __future__ import annotations
import importlib.util
import locale
from pathlib import Path
+import shutil
import sys
import types
+from unittest import mock
def _load_start_tour_module():
@@ -71,3 +73,70 @@ def test_stream_text_kwargs_use_best_effort_decoding() -> None:
assert kwargs["text"] is True
assert kwargs["errors"] == "replace"
assert kwargs["encoding"] == locale.getpreferredencoding(False)
+
+
+# ---------------------------------------------------------------------------
+# _resolve_python tests (issue #289 โ€” Python 3.14+ compatibility)
+# ---------------------------------------------------------------------------
+
+def _get_resolve_python():
+ """Import _resolve_python without triggering full module load."""
+ start_tour = _load_start_tour_module()
+ return start_tour._resolve_python
+
+
+class TestResolvePython:
+ """Verify _resolve_python handles broken sys.executable gracefully."""
+
+ def test_returns_resolved_path_when_executable_exists(self) -> None:
+ resolve = _get_resolve_python()
+ real_python = sys.executable
+ with mock.patch("sys.executable", real_python):
+ result = resolve()
+ assert Path(result).exists()
+
+ def test_falls_back_to_shutil_which_when_executable_missing(self) -> None:
+ """Simulates Python 3.14+ on Windows where sys.executable is bogus."""
+ resolve = _get_resolve_python()
+ fake_path = "/nonexistent/python3.14"
+ expected = shutil.which("python3") or shutil.which("python") or "python3"
+ with mock.patch("sys.executable", fake_path):
+ result = resolve()
+ assert result == expected
+
+ def test_falls_back_when_executable_is_empty(self) -> None:
+ """sys.executable can be '' in embedded or frozen environments."""
+ resolve = _get_resolve_python()
+ expected = shutil.which("python3") or shutil.which("python") or "python3"
+ with mock.patch("sys.executable", ""):
+ result = resolve()
+ assert result == expected
+
+ def test_ultimate_fallback_when_nothing_found(self) -> None:
+ """If sys.executable is empty and PATH has no python, return 'python3'."""
+ resolve = _get_resolve_python()
+ with (
+ mock.patch("sys.executable", ""),
+ mock.patch("shutil.which", return_value=None),
+ ):
+ result = resolve()
+ assert result == "python3"
+
+ def test_preserves_valid_sys_executable(self) -> None:
+ """Normal case: sys.executable points to a real file."""
+ resolve = _get_resolve_python()
+ result = resolve()
+ assert Path(result).exists()
+ assert "python" in Path(result).name.lower()
+
+ def test_install_commands_use_resolved_python(self) -> None:
+ """_install_commands should embed _PYTHON, not raw sys.executable."""
+ start_tour = _load_start_tour_module()
+ python_used = start_tour._PYTHON
+ catalog: dict = {"services": {}}
+ cmds = start_tour._install_commands("cli-core", catalog)
+ for cmd, _cwd in cmds:
+ if cmd[0] != "npm":
+ assert cmd[0] == python_used, (
+ f"Expected resolved python {python_used!r}, got {cmd[0]!r}"
+ )
diff --git a/tests/services/session/test_sqlite_store.py b/tests/services/session/test_sqlite_store.py
index 2728103e0..5a33654ab 100644
--- a/tests/services/session/test_sqlite_store.py
+++ b/tests/services/session/test_sqlite_store.py
@@ -56,164 +56,180 @@ def store(tmp_path: Path) -> SQLiteSessionStore:
return SQLiteSessionStore(db_path=tmp_path / "test.db")
-def _run(coro):
- return asyncio.get_event_loop().run_until_complete(coro) if False else asyncio.run(coro)
-
-
-def test_add_wrong_answers_only_persists_incorrect(store: SQLiteSessionStore) -> None:
- session = _run(store.create_session(title="Test"))
- session_id = session["id"]
-
- items = [
- {
- "question_id": "q1",
- "question": "What is 2+2?",
- "user_answer": "5",
- "correct_answer": "4",
- "is_correct": False,
- },
- {
- "question_id": "q2",
- "question": "What is 3+3?",
- "user_answer": "6",
- "correct_answer": "6",
- "is_correct": True,
- },
- {
- "question_id": "q3",
- "question": "What is 5+5?",
- "user_answer": "9",
- "correct_answer": "10",
- "is_correct": False,
- },
- ]
-
- inserted = _run(store.add_wrong_answers(session_id, items))
- assert inserted == 2
-
- listed = _run(store.list_wrong_answers())
- assert len(listed) == 2
- question_ids = {row["question_id"] for row in listed}
- assert question_ids == {"q1", "q3"}
- assert all(row["resolved"] is False for row in listed)
- assert all(row["session_title"] == "Test" for row in listed)
-
-
-def test_add_wrong_answers_skips_blank_questions(store: SQLiteSessionStore) -> None:
- session = _run(store.create_session())
+def _make_items(*specs):
+ """Build notebook entry dicts from (qid, question, is_correct) tuples."""
+ items = []
+ for qid, question, is_correct in specs:
+ items.append({
+ "question_id": qid,
+ "question": question,
+ "question_type": "choice",
+ "options": {"A": "opt_a", "B": "opt_b"},
+ "user_answer": "A",
+ "correct_answer": "B",
+ "explanation": "expl",
+ "difficulty": "medium",
+ "is_correct": is_correct,
+ })
+ return items
+
+
+# โ”€โ”€ Notebook entries โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
+
+def test_upsert_notebook_entries_persists_all(store: SQLiteSessionStore) -> None:
+ session = asyncio.run(store.create_session(title="Test"))
+ items = _make_items(("q1", "2+2?", False), ("q2", "3+3?", True), ("q3", "5+5?", False))
+ upserted = asyncio.run(store.upsert_notebook_entries(session["id"], items))
+ assert upserted == 3
+ result = asyncio.run(store.list_notebook_entries())
+ assert result["total"] == 3
+ assert all(e["session_title"] == "Test" for e in result["items"])
+
+
+def test_upsert_notebook_entries_updates_on_conflict(store: SQLiteSessionStore) -> None:
+ session = asyncio.run(store.create_session())
+ sid = session["id"]
+ asyncio.run(store.upsert_notebook_entries(sid, _make_items(("q1", "Q?", False))))
+ result = asyncio.run(store.list_notebook_entries())
+ assert result["items"][0]["is_correct"] is False
+
+ asyncio.run(store.upsert_notebook_entries(sid, [{
+ "question_id": "q1", "question": "Q?", "user_answer": "B",
+ "correct_answer": "B", "is_correct": True,
+ }]))
+ result = asyncio.run(store.list_notebook_entries())
+ assert result["total"] == 1
+ assert result["items"][0]["is_correct"] is True
+ assert result["items"][0]["user_answer"] == "B"
+
+
+def test_upsert_skips_blank_questions(store: SQLiteSessionStore) -> None:
+ session = asyncio.run(store.create_session())
items = [
- {"question": "", "is_correct": False},
- {"question": " ", "is_correct": False},
- {"question": "Valid?", "is_correct": False},
+ {"question_id": "q1", "question": "", "is_correct": False},
+ {"question_id": "", "question": "Valid?", "is_correct": False},
+ {"question_id": "q3", "question": "OK?", "is_correct": False},
]
- inserted = _run(store.add_wrong_answers(session["id"], items))
- assert inserted == 1
+ upserted = asyncio.run(store.upsert_notebook_entries(session["id"], items))
+ assert upserted == 1
-def test_add_wrong_answers_unknown_session_raises(store: SQLiteSessionStore) -> None:
+def test_upsert_unknown_session_raises(store: SQLiteSessionStore) -> None:
with pytest.raises(ValueError, match="Session not found"):
- _run(
- store.add_wrong_answers(
- "does_not_exist",
- [{"question": "Q?", "is_correct": False}],
- )
- )
-
-
-def test_list_wrong_answers_filters_by_resolved(store: SQLiteSessionStore) -> None:
- session = _run(store.create_session())
- session_id = session["id"]
- _run(
- store.add_wrong_answers(
- session_id,
- [
- {"question": "Q1", "is_correct": False},
- {"question": "Q2", "is_correct": False},
- ],
- )
- )
- listed = _run(store.list_wrong_answers())
- first_id = listed[0]["id"]
- _run(store.update_wrong_answer_resolved(first_id, True))
-
- unresolved = _run(store.list_wrong_answers(resolved=False))
- resolved = _run(store.list_wrong_answers(resolved=True))
- all_rows = _run(store.list_wrong_answers())
-
- assert len(unresolved) == 1
- assert unresolved[0]["id"] != first_id
- assert len(resolved) == 1
- assert resolved[0]["id"] == first_id
- assert resolved[0]["resolved"] is True
- assert resolved[0]["resolved_at"] is not None
- assert len(all_rows) == 2
-
-
-def test_count_wrong_answers(store: SQLiteSessionStore) -> None:
- session = _run(store.create_session())
- _run(
- store.add_wrong_answers(
- session["id"],
- [
- {"question": "Q1", "is_correct": False},
- {"question": "Q2", "is_correct": False},
- {"question": "Q3", "is_correct": True},
- ],
- )
- )
- assert _run(store.count_wrong_answers()) == 2
- assert _run(store.count_wrong_answers(resolved=False)) == 2
- assert _run(store.count_wrong_answers(resolved=True)) == 0
-
-
-def test_update_wrong_answer_resolved_roundtrip(store: SQLiteSessionStore) -> None:
- session = _run(store.create_session())
- _run(
- store.add_wrong_answers(
- session["id"],
- [{"question": "Q?", "is_correct": False}],
- )
- )
- rows = _run(store.list_wrong_answers())
- row_id = rows[0]["id"]
-
- assert _run(store.update_wrong_answer_resolved(row_id, True)) is True
- assert _run(store.list_wrong_answers())[0]["resolved"] is True
-
- assert _run(store.update_wrong_answer_resolved(row_id, False)) is True
- resurrected = _run(store.list_wrong_answers())[0]
- assert resurrected["resolved"] is False
- assert resurrected["resolved_at"] is None
-
- assert _run(store.update_wrong_answer_resolved(99999, True)) is False
-
-
-def test_delete_wrong_answer(store: SQLiteSessionStore) -> None:
- session = _run(store.create_session())
- _run(
- store.add_wrong_answers(
- session["id"],
- [
- {"question": "Q1", "is_correct": False},
- {"question": "Q2", "is_correct": False},
- ],
- )
- )
- rows = _run(store.list_wrong_answers())
- first_id = rows[0]["id"]
- assert _run(store.delete_wrong_answer(first_id)) is True
- assert len(_run(store.list_wrong_answers())) == 1
- assert _run(store.delete_wrong_answer(99999)) is False
-
-
-def test_wrong_answers_cascade_on_session_delete(store: SQLiteSessionStore) -> None:
- session = _run(store.create_session())
- _run(
- store.add_wrong_answers(
- session["id"],
- [{"question": "Q?", "is_correct": False}],
- )
- )
- assert len(_run(store.list_wrong_answers())) == 1
- _run(store.delete_session(session["id"]))
- assert _run(store.list_wrong_answers()) == []
+ asyncio.run(store.upsert_notebook_entries("nope", _make_items(("q1", "Q?", False))))
+
+
+def test_list_entries_filters_bookmarked(store: SQLiteSessionStore) -> None:
+ session = asyncio.run(store.create_session())
+ asyncio.run(store.upsert_notebook_entries(session["id"], _make_items(
+ ("q1", "Q1?", False), ("q2", "Q2?", True),
+ )))
+ entries = asyncio.run(store.list_notebook_entries())["items"]
+ asyncio.run(store.update_notebook_entry(entries[0]["id"], {"bookmarked": True}))
+ bm = asyncio.run(store.list_notebook_entries(bookmarked=True))
+ assert bm["total"] == 1
+ assert bm["items"][0]["bookmarked"] is True
+
+
+def test_list_entries_filters_is_correct(store: SQLiteSessionStore) -> None:
+ session = asyncio.run(store.create_session())
+ asyncio.run(store.upsert_notebook_entries(session["id"], _make_items(
+ ("q1", "Q1?", False), ("q2", "Q2?", True),
+ )))
+ wrong = asyncio.run(store.list_notebook_entries(is_correct=False))
+ assert wrong["total"] == 1
+ assert wrong["items"][0]["question_id"] == "q1"
+
+
+def test_update_notebook_entry_bookmark_roundtrip(store: SQLiteSessionStore) -> None:
+ session = asyncio.run(store.create_session())
+ asyncio.run(store.upsert_notebook_entries(session["id"], _make_items(("q1", "Q?", False))))
+ eid = asyncio.run(store.list_notebook_entries())["items"][0]["id"]
+ assert asyncio.run(store.update_notebook_entry(eid, {"bookmarked": True})) is True
+ assert asyncio.run(store.get_notebook_entry(eid))["bookmarked"] is True
+ assert asyncio.run(store.update_notebook_entry(eid, {"bookmarked": False})) is True
+ assert asyncio.run(store.get_notebook_entry(eid))["bookmarked"] is False
+ assert asyncio.run(store.update_notebook_entry(99999, {"bookmarked": True})) is False
+
+
+def test_update_followup_session_id(store: SQLiteSessionStore) -> None:
+ session = asyncio.run(store.create_session())
+ asyncio.run(store.upsert_notebook_entries(session["id"], _make_items(("q1", "Q?", False))))
+ eid = asyncio.run(store.list_notebook_entries())["items"][0]["id"]
+ asyncio.run(store.update_notebook_entry(eid, {"followup_session_id": "sess_fu"}))
+ entry = asyncio.run(store.get_notebook_entry(eid))
+ assert entry["followup_session_id"] == "sess_fu"
+
+
+def test_find_notebook_entry(store: SQLiteSessionStore) -> None:
+ session = asyncio.run(store.create_session())
+ asyncio.run(store.upsert_notebook_entries(session["id"], _make_items(("q1", "Q?", False))))
+ found = asyncio.run(store.find_notebook_entry(session["id"], "q1"))
+ assert found is not None
+ assert found["question_id"] == "q1"
+ assert asyncio.run(store.find_notebook_entry(session["id"], "nope")) is None
+
+
+def test_delete_notebook_entry(store: SQLiteSessionStore) -> None:
+ session = asyncio.run(store.create_session())
+ asyncio.run(store.upsert_notebook_entries(session["id"], _make_items(
+ ("q1", "Q1?", False), ("q2", "Q2?", False),
+ )))
+ eid = asyncio.run(store.list_notebook_entries())["items"][0]["id"]
+ assert asyncio.run(store.delete_notebook_entry(eid)) is True
+ assert asyncio.run(store.list_notebook_entries())["total"] == 1
+ assert asyncio.run(store.delete_notebook_entry(99999)) is False
+
+
+def test_entries_cascade_on_session_delete(store: SQLiteSessionStore) -> None:
+ session = asyncio.run(store.create_session())
+ asyncio.run(store.upsert_notebook_entries(session["id"], _make_items(("q1", "Q?", False))))
+ assert asyncio.run(store.list_notebook_entries())["total"] == 1
+ asyncio.run(store.delete_session(session["id"]))
+ assert asyncio.run(store.list_notebook_entries())["total"] == 0
+
+
+# โ”€โ”€ Categories โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
+
+def test_category_crud(store: SQLiteSessionStore) -> None:
+ cat = asyncio.run(store.create_category("Math"))
+ assert cat["name"] == "Math"
+ cats = asyncio.run(store.list_categories())
+ assert len(cats) == 1
+ assert cats[0]["entry_count"] == 0
+
+ asyncio.run(store.rename_category(cat["id"], "Algebra"))
+ cats = asyncio.run(store.list_categories())
+ assert cats[0]["name"] == "Algebra"
+
+ asyncio.run(store.delete_category(cat["id"]))
+ assert asyncio.run(store.list_categories()) == []
+
+
+def test_entry_category_association(store: SQLiteSessionStore) -> None:
+ session = asyncio.run(store.create_session())
+ asyncio.run(store.upsert_notebook_entries(session["id"], _make_items(("q1", "Q?", False))))
+ eid = asyncio.run(store.list_notebook_entries())["items"][0]["id"]
+ cat = asyncio.run(store.create_category("Physics"))
+
+ assert asyncio.run(store.add_entry_to_category(eid, cat["id"])) is True
+ entry = asyncio.run(store.get_notebook_entry(eid))
+ assert len(entry["categories"]) == 1
+ assert entry["categories"][0]["name"] == "Physics"
+
+ by_cat = asyncio.run(store.list_notebook_entries(category_id=cat["id"]))
+ assert by_cat["total"] == 1
+
+ asyncio.run(store.remove_entry_from_category(eid, cat["id"]))
+ assert asyncio.run(store.get_entry_categories(eid)) == []
+
+
+def test_category_cascade_on_entry_delete(store: SQLiteSessionStore) -> None:
+ session = asyncio.run(store.create_session())
+ asyncio.run(store.upsert_notebook_entries(session["id"], _make_items(("q1", "Q?", False))))
+ eid = asyncio.run(store.list_notebook_entries())["items"][0]["id"]
+ cat = asyncio.run(store.create_category("History"))
+ asyncio.run(store.add_entry_to_category(eid, cat["id"]))
+ asyncio.run(store.delete_notebook_entry(eid))
+ cats = asyncio.run(store.list_categories())
+ assert cats[0]["entry_count"] == 0
diff --git a/web/app/(utility)/knowledge/page.tsx b/web/app/(utility)/knowledge/page.tsx
index 3657eba1a..f35cb8a9d 100644
--- a/web/app/(utility)/knowledge/page.tsx
+++ b/web/app/(utility)/knowledge/page.tsx
@@ -1,27 +1,34 @@
"use client";
import dynamic from "next/dynamic";
-import { useEffect, useMemo, useRef, useState } from "react";
-import { useRouter } from "next/navigation";
+import Link from "next/link";
+import { Suspense, useCallback, useEffect, useMemo, useRef, useState } from "react";
+import { useRouter, useSearchParams } from "next/navigation";
import { useTranslation } from "react-i18next";
import {
+ AlertTriangle,
ArrowRight,
+ Bookmark,
BookOpen,
ChevronDown,
ChevronRight,
+ ClipboardList,
Database,
ExternalLink,
FileUp,
+ FolderOpen,
GraduationCap,
Loader2,
MessageSquare,
NotebookPen,
+ Pencil,
PenLine,
Plus,
Search,
Star,
Trash2,
Upload,
+ X,
} from "lucide-react";
import { apiUrl, wsUrl } from "@/lib/api";
import {
@@ -30,9 +37,16 @@ import {
listRagProviders,
} from "@/lib/knowledge-api";
import {
- getNotebookDetail,
- invalidateNotebookCaches,
- listNotebooks,
+ listCategories,
+ listNotebookEntries,
+ createCategory,
+ deleteCategory,
+ renameCategory,
+ updateNotebookEntry,
+ deleteNotebookEntry,
+ removeEntryFromCategory,
+ type NotebookEntry,
+ type NotebookCategory,
} from "@/lib/notebook-api";
const MarkdownRenderer = dynamic(() => import("@/components/common/MarkdownRenderer"), {
@@ -127,10 +141,14 @@ const kbNeedsReindex = (kb: KnowledgeBase): boolean =>
const kbIsUploadable = (kb: KnowledgeBase): boolean =>
resolveKbStatus(kb) === "ready" && !kbNeedsReindex(kb);
-export default function KnowledgePage() {
+type TabKey = "knowledge" | "notebooks" | "questions";
+
+function KnowledgePageContent() {
const router = useRouter();
+ const searchParams = useSearchParams();
const { t } = useTranslation();
- const [tab, setTab] = useState<"knowledge" | "notebooks">("knowledge");
+ const initialTab = (searchParams.get("tab") as TabKey) || "knowledge";
+ const [tab, setTab] = useState<TabKey>(initialTab);
const [knowledgeBases, setKnowledgeBases] = useState<KnowledgeBase[]>([]);
const [notebooks, setNotebooks] = useState<NotebookInfo[]>([]);
const [providers, setProviders] = useState<RAGProvider[]>([]);
@@ -160,6 +178,131 @@ export default function KnowledgePage() {
const createFileRef = useRef<HTMLInputElement>(null);
const uploadFileRef = useRef<HTMLInputElement>(null);
+ // โ”€โ”€ Question Notebook state โ”€โ”€
+ type QFilterMode = "all" | "bookmarked" | "wrong";
+ const [qItems, setQItems] = useState<NotebookEntry[]>([]);
+ const [qTotal, setQTotal] = useState(0);
+ const [qLoading, setQLoading] = useState(true);
+ const [qError, setQError] = useState<string | null>(null);
+ const [qRefreshing, setQRefreshing] = useState(false);
+ const [qFilter, setQFilter] = useState<QFilterMode>("all");
+ const [qActiveCategoryId, setQActiveCategoryId] = useState<number | null>(null);
+ const [qCategories, setQCategories] = useState<NotebookCategory[]>([]);
+ const [qPendingId, setQPendingId] = useState<number | null>(null);
+ const [qShowCategoryManager, setQShowCategoryManager] = useState(false);
+ const [qNewCatName, setQNewCatName] = useState("");
+ const [qRenamingCat, setQRenamingCat] = useState<{ id: number; name: string } | null>(null);
+
+ // โ”€โ”€ Question Notebook handlers โ”€โ”€
+ const loadQCategories = useCallback(async () => {
+ try { setQCategories(await listCategories()); } catch { /* ignore */ }
+ }, []);
+
+ const loadQItems = useCallback(
+ async (mode: QFilterMode, catId: number | null) => {
+ setQRefreshing(true);
+ setQError(null);
+ try {
+ const response = await listNotebookEntries({
+ bookmarked: mode === "bookmarked" ? true : undefined,
+ is_correct: mode === "wrong" ? false : undefined,
+ category_id: catId ?? undefined,
+ limit: 200,
+ });
+ setQItems(response.items);
+ setQTotal(response.total);
+ } catch (err) {
+ setQError(String(err instanceof Error ? err.message : err));
+ } finally {
+ setQLoading(false);
+ setQRefreshing(false);
+ }
+ },
+ [],
+ );
+
+ const handleQToggleBookmark = useCallback(
+ async (item: NotebookEntry) => {
+ const next = !item.bookmarked;
+ setQPendingId(item.id);
+ try {
+ await updateNotebookEntry(item.id, { bookmarked: next });
+ setQItems((prev) =>
+ qFilter === "bookmarked" && !next
+ ? prev.filter((e) => e.id !== item.id)
+ : prev.map((e) => (e.id === item.id ? { ...e, bookmarked: next } : e)),
+ );
+ if (qFilter === "bookmarked" && !next) setQTotal((p) => Math.max(0, p - 1));
+ } catch { /* ignore */ }
+ setQPendingId(null);
+ },
+ [qFilter],
+ );
+
+ const handleQDelete = useCallback(
+ async (item: NotebookEntry) => {
+ if (!window.confirm(t("Delete this entry?"))) return;
+ setQPendingId(item.id);
+ try {
+ await deleteNotebookEntry(item.id);
+ setQItems((prev) => prev.filter((e) => e.id !== item.id));
+ setQTotal((p) => Math.max(0, p - 1));
+ } catch { /* ignore */ }
+ setQPendingId(null);
+ },
+ [t],
+ );
+
+ const handleQRemoveFromCategory = useCallback(
+ async (item: NotebookEntry) => {
+ if (qActiveCategoryId === null) return;
+ setQPendingId(item.id);
+ try {
+ await removeEntryFromCategory(item.id, qActiveCategoryId);
+ setQItems((prev) => prev.filter((e) => e.id !== item.id));
+ setQTotal((p) => Math.max(0, p - 1));
+ } catch { /* ignore */ }
+ setQPendingId(null);
+ },
+ [qActiveCategoryId],
+ );
+
+ const handleQCreateCategory = useCallback(async () => {
+ if (!qNewCatName.trim()) return;
+ try {
+ await createCategory(qNewCatName.trim());
+ setQNewCatName("");
+ await loadQCategories();
+ } catch { /* ignore */ }
+ }, [loadQCategories, qNewCatName]);
+
+ const handleQRenameCategory = useCallback(async () => {
+ if (!qRenamingCat || !qRenamingCat.name.trim()) return;
+ try {
+ await renameCategory(qRenamingCat.id, qRenamingCat.name.trim());
+ setQRenamingCat(null);
+ await loadQCategories();
+ } catch { /* ignore */ }
+ }, [loadQCategories, qRenamingCat]);
+
+ const handleQDeleteCategory = useCallback(
+ async (catId: number) => {
+ if (!window.confirm(t("Delete this category?"))) return;
+ try {
+ await deleteCategory(catId);
+ if (qActiveCategoryId === catId) setQActiveCategoryId(null);
+ await loadQCategories();
+ } catch { /* ignore */ }
+ },
+ [qActiveCategoryId, loadQCategories, t],
+ );
+
+ const Q_FILTERS: { mode: QFilterMode; label: string }[] = [
+ { mode: "all", label: "All" },
+ { mode: "bookmarked", label: "Bookmarked" },
+ { mode: "wrong", label: "Wrong Only" },
+ ];
+
const getProcessSetter = (kind: ProcessKind) =>
kind === "create" ? setCreateProcess : setUploadProcess;
@@ -254,10 +397,10 @@ export default function KnowledgePage() {
setLoading(true);
setPageError(null);
try {
- const [kbs, providerData, nextNotebooks] = await Promise.all([
+ const [kbs, providerData, cats] = await Promise.all([
listKnowledgeBases(),
listRagProviders(),
- listNotebooks(),
+ listCategories(),
]);
setKnowledgeBases(kbs);
setProviders(
@@ -271,6 +414,11 @@ export default function KnowledgePage() {
},
],
);
+ const nextNotebooks: NotebookInfo[] = cats.map((c) => ({
+ id: String(c.id),
+ name: c.name,
+ record_count: c.entry_count ?? 0,
+ }));
setNotebooks(nextNotebooks);
if (!selectedNotebookId && nextNotebooks.length > 0) {
void loadNotebookDetail(nextNotebooks[0].id);
@@ -328,6 +476,14 @@ export default function KnowledgePage() {
// eslint-disable-next-line react-hooks/exhaustive-deps
}, []);
+ useEffect(() => {
+ if (tab === "questions") {
+ void loadQItems(qFilter, qActiveCategoryId);
+ void loadQCategories();
+ }
+ // eslint-disable-next-line react-hooks/exhaustive-deps
+ }, [tab, qFilter, qActiveCategoryId]);
+
const subscribeProgress = (kbName: string, expectedTaskId?: string) => {
closeProgressSocket(kbName);
@@ -494,15 +650,7 @@ export default function KnowledgePage() {
const createNotebook = async () => {
if (!newNotebookName.trim()) return;
- await fetch(apiUrl("/api/v1/notebook/create"), {
- method: "POST",
- headers: { "Content-Type": "application/json" },
- body: JSON.stringify({
- name: newNotebookName.trim(),
- description: newNotebookDescription.trim(),
- }),
- });
- invalidateNotebookCaches();
+ await createCategory(newNotebookName.trim());
setNewNotebookName("");
setNewNotebookDescription("");
await loadAll();
@@ -513,8 +661,25 @@ export default function KnowledgePage() {
setExpandedRecordId(null);
setLoadingNotebookDetail(true);
try {
- const notebook = (await getNotebookDetail(notebookId)) as NotebookDetail;
- setSelectedNotebook(notebook);
+ const info = notebooks.find((n) => n.id === notebookId);
+ const data = await listNotebookEntries({ category_id: Number(notebookId) });
+ const records: NotebookRecord[] = (data.items || []).map((e) => ({
+ id: String(e.id),
+ type: e.question_type,
+ title: e.question,
+ summary: e.explanation,
+ user_query: e.question,
+ output: e.correct_answer,
+ created_at: e.created_at,
+ }));
+ setSelectedNotebook({
+ id: notebookId,
+ name: info?.name ?? "",
+ description: info?.description,
+ record_count: data.total,
+ color: info?.color,
+ records,
+ });
} catch {
setSelectedNotebook(null);
} finally {
@@ -607,10 +772,11 @@ export default function KnowledgePage() {
{[
{ key: "knowledge", label: t("Knowledge Bases"), icon: Database },
{ key: "notebooks", label: t("Notebooks"), icon: NotebookPen },
+ { key: "questions", label: t("Question Notebook"), icon: ClipboardList },
].map((item) => (
<button
key={item.key}
- onClick={() => setTab(item.key as "knowledge" | "notebooks")}
+ onClick={() => setTab(item.key as TabKey)}
className={`inline-flex items-center gap-1.5 rounded-md px-3.5 py-1.5 text-[13px] font-medium transition-all ${
tab === item.key
? "bg-[var(--card)] text-[var(--foreground)] shadow-sm"
@@ -961,7 +1127,7 @@ export default function KnowledgePage() {
</div>
</section>
</div>
- ) : (
+ ) : tab === "notebooks" ? (
<div className="space-y-5">
{/* Create notebook */}
<section className="rounded-xl border border-[var(--border)] bg-[var(--card)] p-5 shadow-sm">
@@ -1166,8 +1332,386 @@ export default function KnowledgePage() {
</div>
</section>
</div>
+ ) : (
+ /* โ”€โ”€ Questions tab content โ”€โ”€ */
+ <div className="space-y-0">
+ {/* Category manager */}
+ <div className={`mb-4 overflow-hidden rounded-xl border transition-colors ${qShowCategoryManager ? "border-[var(--border)] bg-[var(--card)]" : "border-[var(--border)]/50 bg-transparent"}`}>
+ <button
+ onClick={() => setQShowCategoryManager((v) => !v)}
+ className="flex w-full items-center justify-between px-4 py-2.5 text-[13px] font-medium text-[var(--foreground)] transition-colors hover:bg-[var(--muted)]/40"
+ >
+ <span className="flex items-center gap-2">
+ <FolderOpen className="h-3.5 w-3.5 text-[var(--muted-foreground)]" />
+ {t("Manage Categories")}
+ {qCategories.length > 0 && (
+ <span className="rounded-full bg-[var(--muted)] px-1.5 py-0.5 text-[10px] text-[var(--muted-foreground)]">
+ {qCategories.length}
+ </span>
+ )}
+ </span>
+ <ChevronDown className={`h-3.5 w-3.5 text-[var(--muted-foreground)] transition-transform duration-200 ${qShowCategoryManager ? "rotate-180" : ""}`} />
+ </button>
+
+ {qShowCategoryManager && (
+ <div className="border-t border-[var(--border)] px-4 pb-4 pt-3">
+ <div className="space-y-1.5">
+ {qCategories.map((cat) => (
+ <div key={cat.id} className="flex items-center justify-between gap-2 rounded-lg bg-[var(--muted)]/30 px-3 py-2">
+ {qRenamingCat?.id === cat.id ? (
+ <input
+ autoFocus
+ value={qRenamingCat.name}
+ onChange={(e) => setQRenamingCat({ ...qRenamingCat, name: e.target.value })}
+ onKeyDown={(e) => { if (e.key === "Enter") void handleQRenameCategory(); if (e.key === "Escape") setQRenamingCat(null); }}
+ onBlur={() => void handleQRenameCategory()}
+ className="flex-1 rounded border border-[var(--border)] bg-[var(--background)] px-2 py-0.5 text-[12px] text-[var(--foreground)] outline-none"
+ />
+ ) : (
+ <span className="text-[12px] text-[var(--foreground)]">
+ {cat.name}
+ <span className="ml-1.5 text-[var(--muted-foreground)]">({cat.entry_count})</span>
+ </span>
+ )}
+ <div className="flex items-center gap-1">
+ <button onClick={() => setQRenamingCat({ id: cat.id, name: cat.name })} className="rounded p-1 text-[var(--muted-foreground)] transition-colors hover:bg-[var(--muted)] hover:text-[var(--foreground)]">
+ <Pencil size={12} />
+ </button>
+ <button onClick={() => void handleQDeleteCategory(cat.id)} className="rounded p-1 text-[var(--muted-foreground)] transition-colors hover:bg-red-50 hover:text-red-500 dark:hover:bg-red-950/30">
+ <Trash2 size={12} />
+ </button>
+ </div>
+ </div>
+ ))}
+ {!qCategories.length && (
+ <p className="py-2 text-center text-[12px] text-[var(--muted-foreground)]">
+ {t("No categories yet.")}
+ </p>
+ )}
+ </div>
+ <div className="mt-3 flex items-center gap-1.5">
+ <input
+ value={qNewCatName}
+ onChange={(e) => setQNewCatName(e.target.value)}
+ onKeyDown={(e) => e.key === "Enter" && void handleQCreateCategory()}
+ placeholder={t("New category name...")}
+ className="flex-1 rounded-lg border border-[var(--border)] bg-[var(--background)] px-3 py-1.5 text-[12px] text-[var(--foreground)] outline-none placeholder:text-[var(--muted-foreground)]"
+ />
+ <button
+ onClick={() => void handleQCreateCategory()}
+ disabled={!qNewCatName.trim()}
+ className="rounded-lg bg-[var(--primary)] px-3 py-1.5 text-[12px] font-medium text-white disabled:opacity-30"
+ >
+ <Plus size={13} />
+ </button>
+ </div>
+ </div>
+ )}
+ </div>
+
+ {/* Filter bar */}
+ <div className="mb-5 flex items-center justify-between border-b border-[var(--border)]/50 pb-3">
+ <div className="flex items-center gap-1 overflow-x-auto">
+ {Q_FILTERS.map(({ mode, label }) => {
+ const active = qFilter === mode && qActiveCategoryId === null;
+ return (
+ <button
+ key={mode}
+ onClick={() => { setQFilter(mode); setQActiveCategoryId(null); }}
+ className={`inline-flex shrink-0 items-center gap-1.5 rounded-lg px-3 py-1.5 text-[13px] transition-colors ${
+ active
+ ? "bg-[var(--muted)] font-medium text-[var(--foreground)]"
+ : "text-[var(--muted-foreground)] hover:text-[var(--foreground)]"
+ }`}
+ >
+ {t(label)}
+ </button>
+ );
+ })}
+ {qCategories.length > 0 && (
+ <span className="mx-1 text-[var(--border)]">|</span>
+ )}
+ {qCategories.map((cat) => {
+ const active = qActiveCategoryId === cat.id;
+ return (
+ <button
+ key={cat.id}
+ onClick={() => { setQActiveCategoryId(cat.id); setQFilter("all"); }}
+ className={`inline-flex shrink-0 items-center gap-1.5 rounded-lg px-3 py-1.5 text-[13px] transition-colors ${
+ active
+ ? "bg-[var(--muted)] font-medium text-[var(--foreground)]"
+ : "text-[var(--muted-foreground)] hover:text-[var(--foreground)]"
+ }`}
+ >
+ <FolderOpen size={12} />
+ {cat.name}
+ </button>
+ );
+ })}
+ </div>
+ <span className="shrink-0 text-[12px] text-[var(--muted-foreground)]">
+ {t("Total")}: {qTotal}
+ </span>
+ </div>
+
+ {/* Content */}
+ {qLoading ? (
+ <div className="flex min-h-[420px] items-center justify-center">
+ <Loader2 className="h-5 w-5 animate-spin text-[var(--muted-foreground)]" />
+ </div>
+ ) : qError ? (
+ <div className="flex min-h-[320px] flex-col items-center justify-center rounded-xl border border-dashed border-red-300 text-center dark:border-red-900">
+ <div className="mb-3 rounded-xl bg-red-50 p-2.5 text-red-500 dark:bg-red-950/30">
+ <AlertTriangle size={18} />
+ </div>
+ <p className="text-[14px] font-medium text-[var(--foreground)]">
+ {t("Failed to load entries")}
+ </p>
+ <p className="mt-1.5 max-w-xs text-[13px] text-[var(--muted-foreground)]">{qError}</p>
+ <button
+ onClick={() => void loadQItems(qFilter, qActiveCategoryId)}
+ className="mt-3 rounded-lg bg-[var(--primary)] px-4 py-1.5 text-[12px] font-medium text-white"
+ >
+ {t("Retry")}
+ </button>
+ </div>
+ ) : qItems.length === 0 ? (
+ <div className="flex min-h-[320px] flex-col items-center justify-center rounded-xl border border-dashed border-[var(--border)] text-center">
+ <div className="mb-3 rounded-xl bg-[var(--muted)] p-2.5 text-[var(--muted-foreground)]">
+ <ClipboardList size={18} />
+ </div>
+ <p className="text-[14px] font-medium text-[var(--foreground)]">
+ {t("No entries yet")}
+ </p>
+ <p className="mt-1.5 max-w-xs text-[13px] text-[var(--muted-foreground)]">
+ {t("Questions from your quizzes will appear here.")}
+ </p>
+ </div>
+ ) : (
+ <ul className="flex flex-col gap-3">
+ {qItems.map((item) => {
+ const disabled = qPendingId === item.id;
+ return (
+ <li
+ key={item.id}
+ className={`rounded-xl border border-[var(--border)] px-5 py-4 transition-opacity ${
+ disabled ? "opacity-60" : ""
+ }`}
+ >
+ {/* Question header */}
+ <div className="mb-3 flex items-start justify-between gap-3">
+ <div className="min-w-0 flex-1">
+ <div className="mb-1.5 flex flex-wrap items-center gap-1.5">
+ {item.difficulty && (
+ <span className={`rounded-md px-1.5 py-0.5 text-[10px] font-medium uppercase ${
+ item.difficulty === "hard"
+ ? "bg-red-50 text-red-600 dark:bg-red-950/30 dark:text-red-400"
+ : item.difficulty === "medium"
+ ? "bg-amber-50 text-amber-600 dark:bg-amber-950/30 dark:text-amber-400"
+ : "bg-green-50 text-green-600 dark:bg-green-950/30 dark:text-green-400"
+ }`}>{item.difficulty}</span>
+ )}
+ {item.question_type && (
+ <span className="rounded-md bg-[var(--muted)] px-1.5 py-0.5 text-[10px] font-medium text-[var(--muted-foreground)]">
+ {item.question_type}
+ </span>
+ )}
+ <span className={`rounded-md px-1.5 py-0.5 text-[10px] font-semibold ${
+ item.is_correct
+ ? "bg-green-100 text-green-700 dark:bg-green-950/30 dark:text-green-400"
+ : "bg-red-100 text-red-700 dark:bg-red-950/30 dark:text-red-400"
+ }`}>
+ {item.is_correct ? t("Correct") : t("Incorrect")}
+ </span>
+ </div>
+ <div className="text-[14px] font-medium text-[var(--foreground)]">
+ <MarkdownRenderer
+ content={item.question}
+ variant="prose"
+ className="text-[14px] leading-relaxed"
+ />
+ </div>
+ </div>
+ <div className="flex items-center gap-1">
+ <button
+ onClick={() => void handleQToggleBookmark(item)}
+ disabled={disabled}
+ title={item.bookmarked ? t("Remove Bookmark") : t("Bookmark")}
+ className={`rounded-lg p-1.5 transition-colors disabled:opacity-40 ${
+ item.bookmarked
+ ? "text-[var(--primary)]"
+ : "text-[var(--muted-foreground)] hover:text-[var(--foreground)]"
+ }`}
+ >
+ <Bookmark className="h-4 w-4" fill={item.bookmarked ? "currentColor" : "none"} />
+ </button>
+ {qActiveCategoryId !== null && (
+ <button
+ onClick={() => void handleQRemoveFromCategory(item)}
+ disabled={disabled}
+ title={t("Remove from category")}
+ className="rounded-lg p-1.5 text-[var(--muted-foreground)] transition-colors hover:text-[var(--foreground)] disabled:opacity-40"
+ >
+ <X className="h-4 w-4" />
+ </button>
+ )}
+ <button
+ onClick={() => void handleQDelete(item)}
+ disabled={disabled}
+ title={t("Delete")}
+ className="rounded-lg p-1.5 text-[var(--muted-foreground)] transition-colors hover:text-[var(--foreground)] disabled:opacity-40"
+ >
+ <Trash2 className="h-4 w-4" />
+ </button>
+ </div>
+ </div>
+
+ {/* Options for choice questions */}
+ {item.options && Object.keys(item.options).length > 0 && (
+ <div className="mb-3 space-y-1.5">
+ {Object.entries(item.options).map(([key, text]) => {
+ const isUserAnswer = item.user_answer?.toUpperCase() === key.toUpperCase();
+ const isCorrectAnswer = item.correct_answer?.toUpperCase() === key.toUpperCase();
+ const isWrongPick = isUserAnswer && !item.is_correct;
+ return (
+ <div
+ key={key}
+ className={`flex items-start gap-2.5 rounded-lg border px-3 py-2 text-[13px] transition-colors ${
+ isCorrectAnswer
+ ? "border-green-200 bg-green-50/60 dark:border-green-900 dark:bg-green-950/20"
+ : isWrongPick
+ ? "border-red-200 bg-red-50/60 dark:border-red-900 dark:bg-red-950/20"
+ : "border-transparent bg-[var(--muted)]/30"
+ }`}
+ >
+ <span className={`mt-px shrink-0 font-semibold ${
+ isCorrectAnswer
+ ? "text-green-600 dark:text-green-400"
+ : isWrongPick
+ ? "text-red-600 dark:text-red-400"
+ : "text-[var(--muted-foreground)]"
+ }`}>
+ {key}.
+ </span>
+ <span className={`flex-1 ${
+ isCorrectAnswer || isWrongPick ? "text-[var(--foreground)]" : "text-[var(--muted-foreground)]"
+ }`}>
+ {text}
+ </span>
+ {isCorrectAnswer && (
+ <span className="mt-px shrink-0 text-[10px] font-medium text-green-600 dark:text-green-400">โœ“ {t("Correct")}</span>
+ )}
+ {isWrongPick && (
+ <span className="mt-px shrink-0 text-[10px] font-medium text-red-600 dark:text-red-400">โœ— {t("Your pick")}</span>
+ )}
+ </div>
+ );
+ })}
+ </div>
+ )}
+
+ {/* Answers for coding / written / fill-in questions */}
+ {(!item.options || Object.keys(item.options).length === 0) && (
+ <div className="mb-3 space-y-2 text-[13px]">
+ <div className={`rounded-lg border px-3 py-2.5 ${
+ !item.is_correct
+ ? "border-red-200/60 bg-red-50/40 dark:border-red-900/40 dark:bg-red-950/15"
+ : "border-green-200/60 bg-green-50/40 dark:border-green-900/40 dark:bg-green-950/15"
+ }`}>
+ <div className={`mb-1 text-[11px] font-medium uppercase tracking-wide ${
+ !item.is_correct
+ ? "text-red-500 dark:text-red-400"
+ : "text-green-600 dark:text-green-400"
+ }`}>
+ {t("Your Answer")} {item.is_correct ? "โœ“" : "โœ—"}
+ </div>
+ <div className="text-[var(--foreground)]">
+ {item.user_answer ? (
+ item.question_type === "coding" ? (
+ <MarkdownRenderer content={`\`\`\`python\n${item.user_answer}\n\`\`\``} variant="prose" className="text-[13px]" />
+ ) : (
+ <MarkdownRenderer content={item.user_answer} variant="prose" className="text-[13px] leading-relaxed" />
+ )
+ ) : (
+ <span className="text-[var(--muted-foreground)]">โ€”</span>
+ )}
+ </div>
+ </div>
+ <div className="rounded-lg border border-green-200/60 bg-green-50/40 px-3 py-2.5 dark:border-green-900/40 dark:bg-green-950/15">
+ <div className="mb-1 text-[11px] font-medium uppercase tracking-wide text-green-600 dark:text-green-400">
+ {t("Reference Answer")}
+ </div>
+ <div className="text-[var(--foreground)]">
+ {item.correct_answer ? (
+ item.question_type === "coding" ? (
+ <MarkdownRenderer content={item.correct_answer.trimStart().startsWith("```") ? item.correct_answer : `\`\`\`python\n${item.correct_answer}\n\`\`\``} variant="prose" className="text-[13px]" />
+ ) : (
+ <MarkdownRenderer content={item.correct_answer} variant="prose" className="text-[13px] leading-relaxed" />
+ )
+ ) : (
+ <span className="text-[var(--muted-foreground)]">โ€”</span>
+ )}
+ </div>
+ </div>
+ </div>
+ )}
+
+ {/* Explanation */}
+ {item.explanation && (
+ <div className="mb-3 rounded-lg border border-blue-200/60 bg-blue-50/30 px-3 py-2.5 dark:border-blue-900/40 dark:bg-blue-950/15">
+ <div className="mb-1 text-[11px] font-medium uppercase tracking-wide text-blue-600 dark:text-blue-400">
+ {t("Explanation")}
+ </div>
+ <div className="text-[13px] leading-relaxed text-[var(--foreground)]">
+ <MarkdownRenderer content={item.explanation} variant="prose" className="text-[13px] leading-relaxed" />
+ </div>
+ </div>
+ )}
+
+ {/* Footer */}
+ <div className="mt-3 flex flex-wrap items-center justify-between gap-2 text-[11px]">
+ <div className="flex items-center gap-2">
+ <Link
+ href={`/?session=${encodeURIComponent(item.session_id)}`}
+ className="inline-flex items-center gap-1.5 rounded-md border border-[var(--border)] bg-[var(--muted)]/40 px-2.5 py-1 text-[var(--muted-foreground)] transition-colors hover:bg-[var(--muted)] hover:text-[var(--foreground)]"
+ >
+ <ExternalLink size={10} />
+ {item.session_title || t("Original Session")}
+ </Link>
+ {item.followup_session_id && (
+ <Link
+ href={`/?session=${encodeURIComponent(item.followup_session_id)}`}
+ className="inline-flex items-center gap-1.5 rounded-md border border-[var(--border)] bg-[var(--muted)]/40 px-2.5 py-1 text-[var(--muted-foreground)] transition-colors hover:bg-[var(--muted)] hover:text-[var(--foreground)]"
+ >
+ <MessageSquare size={10} />
+ {t("Follow-up")}
+ </Link>
+ )}
+ </div>
+ <span className="text-[var(--muted-foreground)]">{new Date(item.created_at * 1000).toLocaleString()}</span>
+ </div>
+ </li>
+ );
+ })}
+ </ul>
+ )}
+ </div>
)}
</div>
</div>
);
}
+
+export default function KnowledgePage() {
+ return (
+ <Suspense
+ fallback={
+ <div className="flex min-h-[50vh] items-center justify-center text-[13px] text-[var(--muted-foreground)]">
+ <Loader2 className="h-5 w-5 animate-spin" />
+ </div>
+ }
+ >
+ <KnowledgePageContent />
+ </Suspense>
+ );
+}
diff --git a/web/app/(utility)/notebook/page.tsx b/web/app/(utility)/notebook/page.tsx
new file mode 100644
index 000000000..b97860b3a
--- /dev/null
+++ b/web/app/(utility)/notebook/page.tsx
@@ -0,0 +1,550 @@
+"use client";
+
+import dynamic from "next/dynamic";
+import Link from "next/link";
+import { useCallback, useEffect, useState } from "react";
+import {
+ AlertTriangle,
+ Bookmark,
+ ChevronDown,
+ ExternalLink,
+ FolderOpen,
+ Loader2,
+ MessageSquare,
+ NotebookPen,
+ Pencil,
+ Plus,
+ Trash2,
+ X,
+} from "lucide-react";
+import { useTranslation } from "react-i18next";
+import {
+ createCategory,
+ deleteCategory,
+ deleteNotebookEntry,
+ listCategories,
+ listNotebookEntries,
+ removeEntryFromCategory,
+ renameCategory,
+ updateNotebookEntry,
+ type NotebookCategory,
+ type NotebookEntry,
+} from "@/lib/notebook-api";
+
+const MarkdownRenderer = dynamic(
+ () => import("@/components/common/MarkdownRenderer"),
+ { ssr: false },
+);
+
+type FilterMode = "all" | "bookmarked" | "wrong";
+
+export default function NotebookPage() {
+ const { t } = useTranslation();
+ const [items, setItems] = useState<NotebookEntry[]>([]);
+ const [total, setTotal] = useState(0);
+ const [loading, setLoading] = useState(true);
+ const [error, setError] = useState<string | null>(null);
+ const [refreshing, setRefreshing] = useState(false);
+ const [filter, setFilter] = useState<FilterMode>("all");
+ const [activeCategoryId, setActiveCategoryId] = useState<number | null>(null);
+ const [categories, setCategories] = useState<NotebookCategory[]>([]);
+ const [pendingId, setPendingId] = useState<number | null>(null);
+
+ const [showCategoryManager, setShowCategoryManager] = useState(false);
+ const [newCatName, setNewCatName] = useState("");
+ const [renamingCat, setRenamingCat] = useState<{ id: number; name: string } | null>(null);
+
+ const loadCategories = useCallback(async () => {
+ try {
+ setCategories(await listCategories());
+ } catch { /* ignore */ }
+ }, []);
+
+ const loadItems = useCallback(
+ async (mode: FilterMode, catId: number | null) => {
+ setRefreshing(true);
+ setError(null);
+ try {
+ const response = await listNotebookEntries({
+ bookmarked: mode === "bookmarked" ? true : undefined,
+ is_correct: mode === "wrong" ? false : undefined,
+ category_id: catId ?? undefined,
+ limit: 200,
+ });
+ setItems(response.items);
+ setTotal(response.total);
+ } catch (err) {
+ setError(String(err instanceof Error ? err.message : err));
+ } finally {
+ setLoading(false);
+ setRefreshing(false);
+ }
+ },
+ [],
+ );
+
+ useEffect(() => {
+ void loadItems(filter, activeCategoryId);
+ void loadCategories();
+ }, [filter, activeCategoryId, loadItems, loadCategories]);
+
+ const handleToggleBookmark = useCallback(
+ async (item: NotebookEntry) => {
+ const next = !item.bookmarked;
+ setPendingId(item.id);
+ try {
+ await updateNotebookEntry(item.id, { bookmarked: next });
+ setItems((prev) =>
+ filter === "bookmarked" && !next
+ ? prev.filter((e) => e.id !== item.id)
+ : prev.map((e) => (e.id === item.id ? { ...e, bookmarked: next } : e)),
+ );
+ if (filter === "bookmarked" && !next) setTotal((p) => Math.max(0, p - 1));
+ } catch { /* ignore */ }
+ setPendingId(null);
+ },
+ [filter],
+ );
+
+ const handleDelete = useCallback(
+ async (item: NotebookEntry) => {
+ if (!window.confirm(t("Delete this entry?"))) return;
+ setPendingId(item.id);
+ try {
+ await deleteNotebookEntry(item.id);
+ setItems((prev) => prev.filter((e) => e.id !== item.id));
+ setTotal((p) => Math.max(0, p - 1));
+ } catch { /* ignore */ }
+ setPendingId(null);
+ },
+ [t],
+ );
+
+ const handleRemoveFromCategory = useCallback(
+ async (item: NotebookEntry) => {
+ if (activeCategoryId === null) return;
+ setPendingId(item.id);
+ try {
+ await removeEntryFromCategory(item.id, activeCategoryId);
+ setItems((prev) => prev.filter((e) => e.id !== item.id));
+ setTotal((p) => Math.max(0, p - 1));
+ } catch { /* ignore */ }
+ setPendingId(null);
+ },
+ [activeCategoryId],
+ );
+
+ const handleCreateCategory = useCallback(async () => {
+ if (!newCatName.trim()) return;
+ try {
+ await createCategory(newCatName.trim());
+ setNewCatName("");
+ await loadCategories();
+ } catch { /* ignore */ }
+ }, [loadCategories, newCatName]);
+
+ const handleRenameCategory = useCallback(async () => {
+ if (!renamingCat || !renamingCat.name.trim()) return;
+ try {
+ await renameCategory(renamingCat.id, renamingCat.name.trim());
+ setRenamingCat(null);
+ await loadCategories();
+ } catch { /* ignore */ }
+ }, [loadCategories, renamingCat]);
+
+ const handleDeleteCategory = useCallback(
+ async (catId: number) => {
+ if (!window.confirm(t("Delete this category?"))) return;
+ try {
+ await deleteCategory(catId);
+ if (activeCategoryId === catId) setActiveCategoryId(null);
+ await loadCategories();
+ } catch { /* ignore */ }
+ },
+ [activeCategoryId, loadCategories, t],
+ );
+
+ const FILTERS: { mode: FilterMode; label: string }[] = [
+ { mode: "all", label: "All" },
+ { mode: "bookmarked", label: "Bookmarked" },
+ { mode: "wrong", label: "Wrong Only" },
+ ];
+
+ return (
+ <div className="h-full overflow-y-auto [scrollbar-gutter:stable]">
+ <div className="mx-auto max-w-[960px] px-6 py-8">
+ {/* Header */}
+ <div className="mb-6 flex items-start justify-between">
+ <div>
+ <h1 className="text-[24px] font-semibold tracking-tight text-[var(--foreground)]">
+ {t("Question Notebook")}
+ </h1>
+ <p className="mt-1 text-[13px] text-[var(--muted-foreground)]">
+ {t("Review and organize quiz questions across sessions.")}
+ </p>
+ </div>
+ </div>
+
+ <div className={`mb-4 overflow-hidden rounded-xl border transition-colors ${showCategoryManager ? "border-[var(--border)] bg-[var(--card)]" : "border-[var(--border)]/50 bg-transparent"}`}>
+ <button
+ onClick={() => setShowCategoryManager((v) => !v)}
+ className="flex w-full items-center justify-between px-4 py-2.5 text-[13px] font-medium text-[var(--foreground)] transition-colors hover:bg-[var(--muted)]/40"
+ >
+ <span className="flex items-center gap-2">
+ <FolderOpen className="h-3.5 w-3.5 text-[var(--muted-foreground)]" />
+ {t("Manage Categories")}
+ {categories.length > 0 && (
+ <span className="rounded-full bg-[var(--muted)] px-1.5 py-0.5 text-[10px] text-[var(--muted-foreground)]">
+ {categories.length}
+ </span>
+ )}
+ </span>
+ <ChevronDown className={`h-3.5 w-3.5 text-[var(--muted-foreground)] transition-transform duration-200 ${showCategoryManager ? "rotate-180" : ""}`} />
+ </button>
+
+ {showCategoryManager && (
+ <div className="border-t border-[var(--border)] px-4 pb-4 pt-3">
+ <div className="space-y-1.5">
+ {categories.map((cat) => (
+ <div key={cat.id} className="flex items-center justify-between gap-2 rounded-lg bg-[var(--muted)]/30 px-3 py-2">
+ {renamingCat?.id === cat.id ? (
+ <input
+ autoFocus
+ value={renamingCat.name}
+ onChange={(e) => setRenamingCat({ ...renamingCat, name: e.target.value })}
+ onKeyDown={(e) => { if (e.key === "Enter") void handleRenameCategory(); if (e.key === "Escape") setRenamingCat(null); }}
+ onBlur={() => void handleRenameCategory()}
+ className="flex-1 rounded border border-[var(--border)] bg-[var(--background)] px-2 py-0.5 text-[12px] text-[var(--foreground)] outline-none"
+ />
+ ) : (
+ <span className="text-[12px] text-[var(--foreground)]">
+ {cat.name}
+ <span className="ml-1.5 text-[var(--muted-foreground)]">({cat.entry_count})</span>
+ </span>
+ )}
+ <div className="flex items-center gap-1">
+ <button onClick={() => setRenamingCat({ id: cat.id, name: cat.name })} className="rounded p-1 text-[var(--muted-foreground)] transition-colors hover:bg-[var(--muted)] hover:text-[var(--foreground)]">
+ <Pencil size={12} />
+ </button>
+ <button onClick={() => void handleDeleteCategory(cat.id)} className="rounded p-1 text-[var(--muted-foreground)] transition-colors hover:bg-red-50 hover:text-red-500 dark:hover:bg-red-950/30">
+ <Trash2 size={12} />
+ </button>
+ </div>
+ </div>
+ ))}
+ {!categories.length && (
+ <p className="py-2 text-center text-[12px] text-[var(--muted-foreground)]">
+ {t("No categories yet.")}
+ </p>
+ )}
+ </div>
+ <div className="mt-3 flex items-center gap-1.5">
+ <input
+ value={newCatName}
+ onChange={(e) => setNewCatName(e.target.value)}
+ onKeyDown={(e) => e.key === "Enter" && void handleCreateCategory()}
+ placeholder={t("New category name...")}
+ className="flex-1 rounded-lg border border-[var(--border)] bg-[var(--background)] px-3 py-1.5 text-[12px] text-[var(--foreground)] outline-none placeholder:text-[var(--muted-foreground)]"
+ />
+ <button
+ onClick={() => void handleCreateCategory()}
+ disabled={!newCatName.trim()}
+ className="rounded-lg bg-[var(--primary)] px-3 py-1.5 text-[12px] font-medium text-white disabled:opacity-30"
+ >
+ <Plus size={13} />
+ </button>
+ </div>
+ </div>
+ )}
+ </div>
+
+ {/* Filter bar */}
+ <div className="mb-5 flex items-center justify-between border-b border-[var(--border)]/50 pb-3">
+ <div className="flex items-center gap-1 overflow-x-auto">
+ {FILTERS.map(({ mode, label }) => {
+ const active = filter === mode && activeCategoryId === null;
+ return (
+ <button
+ key={mode}
+ onClick={() => { setFilter(mode); setActiveCategoryId(null); }}
+ className={`inline-flex shrink-0 items-center gap-1.5 rounded-lg px-3 py-1.5 text-[13px] transition-colors ${
+ active
+ ? "bg-[var(--muted)] font-medium text-[var(--foreground)]"
+ : "text-[var(--muted-foreground)] hover:text-[var(--foreground)]"
+ }`}
+ >
+ {t(label)}
+ </button>
+ );
+ })}
+ {categories.length > 0 && (
+ <span className="mx-1 text-[var(--border)]">|</span>
+ )}
+ {categories.map((cat) => {
+ const active = activeCategoryId === cat.id;
+ return (
+ <button
+ key={cat.id}
+ onClick={() => { setActiveCategoryId(cat.id); setFilter("all"); }}
+ className={`inline-flex shrink-0 items-center gap-1.5 rounded-lg px-3 py-1.5 text-[13px] transition-colors ${
+ active
+ ? "bg-[var(--muted)] font-medium text-[var(--foreground)]"
+ : "text-[var(--muted-foreground)] hover:text-[var(--foreground)]"
+ }`}
+ >
+ <FolderOpen size={12} />
+ {cat.name}
+ </button>
+ );
+ })}
+ </div>
+ <span className="shrink-0 text-[12px] text-[var(--muted-foreground)]">
+ {t("Total")}: {total}
+ </span>
+ </div>
+
+ {/* Content */}
+ {loading ? (
+ <div className="flex min-h-[420px] items-center justify-center">
+ <Loader2 className="h-5 w-5 animate-spin text-[var(--muted-foreground)]" />
+ </div>
+ ) : error ? (
+ <div className="flex min-h-[320px] flex-col items-center justify-center rounded-xl border border-dashed border-red-300 text-center dark:border-red-900">
+ <div className="mb-3 rounded-xl bg-red-50 p-2.5 text-red-500 dark:bg-red-950/30">
+ <AlertTriangle size={18} />
+ </div>
+ <p className="text-[14px] font-medium text-[var(--foreground)]">
+ {t("Failed to load entries")}
+ </p>
+ <p className="mt-1.5 max-w-xs text-[13px] text-[var(--muted-foreground)]">{error}</p>
+ <button
+ onClick={() => void loadItems(filter, activeCategoryId)}
+ className="mt-3 rounded-lg bg-[var(--primary)] px-4 py-1.5 text-[12px] font-medium text-white"
+ >
+ {t("Retry")}
+ </button>
+ </div>
+ ) : items.length === 0 ? (
+ <div className="flex min-h-[320px] flex-col items-center justify-center rounded-xl border border-dashed border-[var(--border)] text-center">
+ <div className="mb-3 rounded-xl bg-[var(--muted)] p-2.5 text-[var(--muted-foreground)]">
+ <NotebookPen size={18} />
+ </div>
+ <p className="text-[14px] font-medium text-[var(--foreground)]">
+ {t("No entries yet")}
+ </p>
+ <p className="mt-1.5 max-w-xs text-[13px] text-[var(--muted-foreground)]">
+ {t("Questions from your quizzes will appear here.")}
+ </p>
+ </div>
+ ) : (
+ <ul className="flex flex-col gap-3">
+ {items.map((item) => {
+ const disabled = pendingId === item.id;
+ return (
+ <li
+ key={item.id}
+ className={`rounded-xl border border-[var(--border)] px-5 py-4 transition-opacity ${
+ disabled ? "opacity-60" : ""
+ }`}
+ >
+ {/* Question header */}
+ <div className="mb-3 flex items-start justify-between gap-3">
+ <div className="min-w-0 flex-1">
+ <div className="mb-1.5 flex flex-wrap items-center gap-1.5">
+ {item.difficulty && (
+ <span className={`rounded-md px-1.5 py-0.5 text-[10px] font-medium uppercase ${
+ item.difficulty === "hard"
+ ? "bg-red-50 text-red-600 dark:bg-red-950/30 dark:text-red-400"
+ : item.difficulty === "medium"
+ ? "bg-amber-50 text-amber-600 dark:bg-amber-950/30 dark:text-amber-400"
+ : "bg-green-50 text-green-600 dark:bg-green-950/30 dark:text-green-400"
+ }`}>{item.difficulty}</span>
+ )}
+ {item.question_type && (
+ <span className="rounded-md bg-[var(--muted)] px-1.5 py-0.5 text-[10px] font-medium text-[var(--muted-foreground)]">
+ {item.question_type}
+ </span>
+ )}
+ <span className={`rounded-md px-1.5 py-0.5 text-[10px] font-semibold ${
+ item.is_correct
+ ? "bg-green-100 text-green-700 dark:bg-green-950/30 dark:text-green-400"
+ : "bg-red-100 text-red-700 dark:bg-red-950/30 dark:text-red-400"
+ }`}>
+ {item.is_correct ? t("Correct") : t("Incorrect")}
+ </span>
+ </div>
+ <div className="text-[14px] font-medium text-[var(--foreground)]">
+ <MarkdownRenderer
+ content={item.question}
+ variant="prose"
+ className="text-[14px] leading-relaxed"
+ />
+ </div>
+ </div>
+ <div className="flex items-center gap-1">
+ <button
+ onClick={() => void handleToggleBookmark(item)}
+ disabled={disabled}
+ title={item.bookmarked ? t("Remove Bookmark") : t("Bookmark")}
+ className={`rounded-lg p-1.5 transition-colors disabled:opacity-40 ${
+ item.bookmarked
+ ? "text-[var(--primary)]"
+ : "text-[var(--muted-foreground)] hover:text-[var(--foreground)]"
+ }`}
+ >
+ <Bookmark className="h-4 w-4" fill={item.bookmarked ? "currentColor" : "none"} />
+ </button>
+ {activeCategoryId !== null && (
+ <button
+ onClick={() => void handleRemoveFromCategory(item)}
+ disabled={disabled}
+ title={t("Remove from category")}
+ className="rounded-lg p-1.5 text-[var(--muted-foreground)] transition-colors hover:text-[var(--foreground)] disabled:opacity-40"
+ >
+ <X className="h-4 w-4" />
+ </button>
+ )}
+ <button
+ onClick={() => void handleDelete(item)}
+ disabled={disabled}
+ title={t("Delete")}
+ className="rounded-lg p-1.5 text-[var(--muted-foreground)] transition-colors hover:text-[var(--foreground)] disabled:opacity-40"
+ >
+ <Trash2 className="h-4 w-4" />
+ </button>
+ </div>
+ </div>
+
+ {/* Options for choice questions */}
+ {item.options && Object.keys(item.options).length > 0 && (
+ <div className="mb-3 space-y-1.5">
+ {Object.entries(item.options).map(([key, text]) => {
+ const isUserAnswer = item.user_answer?.toUpperCase() === key.toUpperCase();
+ const isCorrectAnswer = item.correct_answer?.toUpperCase() === key.toUpperCase();
+ const isWrongPick = isUserAnswer && !item.is_correct;
+ return (
+ <div
+ key={key}
+ className={`flex items-start gap-2.5 rounded-lg border px-3 py-2 text-[13px] transition-colors ${
+ isCorrectAnswer
+ ? "border-green-200 bg-green-50/60 dark:border-green-900 dark:bg-green-950/20"
+ : isWrongPick
+ ? "border-red-200 bg-red-50/60 dark:border-red-900 dark:bg-red-950/20"
+ : "border-transparent bg-[var(--muted)]/30"
+ }`}
+ >
+ <span className={`mt-px shrink-0 font-semibold ${
+ isCorrectAnswer
+ ? "text-green-600 dark:text-green-400"
+ : isWrongPick
+ ? "text-red-600 dark:text-red-400"
+ : "text-[var(--muted-foreground)]"
+ }`}>
+ {key}.
+ </span>
+ <span className={`flex-1 ${
+ isCorrectAnswer || isWrongPick ? "text-[var(--foreground)]" : "text-[var(--muted-foreground)]"
+ }`}>
+ {text}
+ </span>
+ {isCorrectAnswer && (
+ <span className="mt-px shrink-0 text-[10px] font-medium text-green-600 dark:text-green-400">โœ“ {t("Correct")}</span>
+ )}
+ {isWrongPick && (
+ <span className="mt-px shrink-0 text-[10px] font-medium text-red-600 dark:text-red-400">โœ— {t("Your pick")}</span>
+ )}
+ </div>
+ );
+ })}
+ </div>
+ )}
+
+ {/* Answers for coding / written / fill-in questions */}
+ {(!item.options || Object.keys(item.options).length === 0) && (
+ <div className="mb-3 space-y-2 text-[13px]">
+ <div className={`rounded-lg border px-3 py-2.5 ${
+ !item.is_correct
+ ? "border-red-200/60 bg-red-50/40 dark:border-red-900/40 dark:bg-red-950/15"
+ : "border-green-200/60 bg-green-50/40 dark:border-green-900/40 dark:bg-green-950/15"
+ }`}>
+ <div className={`mb-1 text-[11px] font-medium uppercase tracking-wide ${
+ !item.is_correct
+ ? "text-red-500 dark:text-red-400"
+ : "text-green-600 dark:text-green-400"
+ }`}>
+ {t("Your Answer")} {item.is_correct ? "โœ“" : "โœ—"}
+ </div>
+ <div className="text-[var(--foreground)]">
+ {item.user_answer ? (
+ item.question_type === "coding" ? (
+ <MarkdownRenderer content={`\`\`\`python\n${item.user_answer}\n\`\`\``} variant="prose" className="text-[13px]" />
+ ) : (
+ <MarkdownRenderer content={item.user_answer} variant="prose" className="text-[13px] leading-relaxed" />
+ )
+ ) : (
+ <span className="text-[var(--muted-foreground)]">โ€”</span>
+ )}
+ </div>
+ </div>
+ <div className="rounded-lg border border-green-200/60 bg-green-50/40 px-3 py-2.5 dark:border-green-900/40 dark:bg-green-950/15">
+ <div className="mb-1 text-[11px] font-medium uppercase tracking-wide text-green-600 dark:text-green-400">
+ {t("Reference Answer")}
+ </div>
+ <div className="text-[var(--foreground)]">
+ {item.correct_answer ? (
+ item.question_type === "coding" ? (
+ <MarkdownRenderer content={item.correct_answer.trimStart().startsWith("```") ? item.correct_answer : `\`\`\`python\n${item.correct_answer}\n\`\`\``} variant="prose" className="text-[13px]" />
+ ) : (
+ <MarkdownRenderer content={item.correct_answer} variant="prose" className="text-[13px] leading-relaxed" />
+ )
+ ) : (
+ <span className="text-[var(--muted-foreground)]">โ€”</span>
+ )}
+ </div>
+ </div>
+ </div>
+ )}
+
+ {/* Explanation */}
+ {item.explanation && (
+ <div className="mb-3 rounded-lg border border-blue-200/60 bg-blue-50/30 px-3 py-2.5 dark:border-blue-900/40 dark:bg-blue-950/15">
+ <div className="mb-1 text-[11px] font-medium uppercase tracking-wide text-blue-600 dark:text-blue-400">
+ {t("Explanation")}
+ </div>
+ <div className="text-[13px] leading-relaxed text-[var(--foreground)]">
+ <MarkdownRenderer content={item.explanation} variant="prose" className="text-[13px] leading-relaxed" />
+ </div>
+ </div>
+ )}
+
+ {/* Footer */}
+ <div className="mt-3 flex flex-wrap items-center justify-between gap-2 text-[11px]">
+ <div className="flex items-center gap-2">
+ <Link
+ href={`/?session=${encodeURIComponent(item.session_id)}`}
+ className="inline-flex items-center gap-1.5 rounded-md border border-[var(--border)] bg-[var(--muted)]/40 px-2.5 py-1 text-[var(--muted-foreground)] transition-colors hover:bg-[var(--muted)] hover:text-[var(--foreground)]"
+ >
+ <ExternalLink size={10} />
+ {item.session_title || t("Original Session")}
+ </Link>
+ {item.followup_session_id && (
+ <Link
+ href={`/?session=${encodeURIComponent(item.followup_session_id)}`}
+ className="inline-flex items-center gap-1.5 rounded-md border border-[var(--border)] bg-[var(--muted)]/40 px-2.5 py-1 text-[var(--muted-foreground)] transition-colors hover:bg-[var(--muted)] hover:text-[var(--foreground)]"
+ >
+ <MessageSquare size={10} />
+ {t("Follow-up")}
+ </Link>
+ )}
+ </div>
+ <span className="text-[var(--muted-foreground)]">{new Date(item.created_at * 1000).toLocaleString()}</span>
+ </div>
+ </li>
+ );
+ })}
+ </ul>
+ )}
+ </div>
+ </div>
+ );
+}
diff --git a/web/app/(utility)/settings/page.tsx b/web/app/(utility)/settings/page.tsx
index dfbd0efcf..3ad310543 100644
--- a/web/app/(utility)/settings/page.tsx
+++ b/web/app/(utility)/settings/page.tsx
@@ -66,7 +66,7 @@ type Catalog = {
};
type UiSettings = {
- theme: "light" | "dark";
+ theme: "light" | "dark" | "glass";
language: "en" | "zh";
};
@@ -367,7 +367,7 @@ function SettingsPageContent() {
const isTourMode = searchParams.get("tour") === "true";
const [status, setStatus] = useState<SystemStatus | null>(null);
- const [theme, setTheme] = useState<"light" | "dark">("light");
+ const [theme, setTheme] = useState<"light" | "dark" | "glass">("light");
const [language, setLanguage] = useState<"en" | "zh">("en");
const [catalog, setCatalog] = useState<Catalog>(defaultCatalog());
const [draft, setDraft] = useState<Catalog>(defaultCatalog());
@@ -460,7 +460,7 @@ function SettingsPageContent() {
// -- UI preference helpers ----------------------------------------------
- const persistUi = async (nextTheme: "light" | "dark", nextLanguage: "en" | "zh") => {
+ const persistUi = async (nextTheme: "light" | "dark" | "glass", nextLanguage: "en" | "zh") => {
await fetch(apiUrl("/api/v1/settings/ui"), {
method: "PUT",
headers: { "Content-Type": "application/json" },
@@ -468,7 +468,7 @@ function SettingsPageContent() {
});
};
- const updateTheme = async (nextTheme: "light" | "dark") => {
+ const updateTheme = async (nextTheme: "light" | "dark" | "glass") => {
setTheme(nextTheme);
applyThemePreference(nextTheme);
await persistUi(nextTheme, language);
@@ -861,7 +861,7 @@ function SettingsPageContent() {
<div className="flex items-center gap-2">
<span className="text-[12px] text-[var(--muted-foreground)]">{t("Theme")}</span>
<div className="flex gap-0.5 rounded-lg bg-[var(--muted)] p-0.5">
- {(["light", "dark"] as const).map((v) => (
+ {(["light", "dark", "glass"] as const).map((v) => (
<button
key={v}
onClick={() => updateTheme(v)}
@@ -871,7 +871,7 @@ function SettingsPageContent() {
: "text-[var(--muted-foreground)] hover:text-[var(--foreground)]"
}`}
>
- {v === "light" ? t("Light") : t("Dark")}
+ {v === "light" ? t("Light") : v === "dark" ? t("Dark") : t("Glass")}
</button>
))}
</div>
diff --git a/web/app/(utility)/wrong-answers/page.tsx b/web/app/(utility)/wrong-answers/page.tsx
deleted file mode 100644
index 3490976bd..000000000
--- a/web/app/(utility)/wrong-answers/page.tsx
+++ /dev/null
@@ -1,263 +0,0 @@
-"use client";
-
-import dynamic from "next/dynamic";
-import Link from "next/link";
-import { useCallback, useEffect, useState } from "react";
-import {
- CheckCircle2,
- Circle,
- Loader2,
- NotebookPen,
- RefreshCw,
- Trash2,
-} from "lucide-react";
-import { useTranslation } from "react-i18next";
-import {
- deleteWrongAnswer,
- listWrongAnswers,
- updateWrongAnswerResolved,
- type WrongAnswer,
-} from "@/lib/wrong-answer-api";
-
-const MarkdownRenderer = dynamic(
- () => import("@/components/common/MarkdownRenderer"),
- { ssr: false },
-);
-
-type FilterMode = "unresolved" | "all";
-
-function formatDate(value: number): string {
- const date = new Date(value * 1000);
- if (Number.isNaN(date.getTime())) return "";
- return date.toLocaleString();
-}
-
-export default function WrongAnswersPage() {
- const { t } = useTranslation();
- const [items, setItems] = useState<WrongAnswer[]>([]);
- const [total, setTotal] = useState(0);
- const [loading, setLoading] = useState(true);
- const [refreshing, setRefreshing] = useState(false);
- const [filter, setFilter] = useState<FilterMode>("unresolved");
- const [pendingId, setPendingId] = useState<number | null>(null);
-
- const loadItems = useCallback(
- async (mode: FilterMode) => {
- setRefreshing(true);
- try {
- const response = await listWrongAnswers({
- resolved: mode === "unresolved" ? false : undefined,
- limit: 200,
- });
- setItems(response.items);
- setTotal(response.total);
- } catch (error) {
- console.error("Failed to load wrong answers", error);
- } finally {
- setLoading(false);
- setRefreshing(false);
- }
- },
- [],
- );
-
- useEffect(() => {
- void loadItems(filter);
- }, [filter, loadItems]);
-
- const handleToggleResolved = useCallback(
- async (item: WrongAnswer) => {
- const nextResolved = !item.resolved;
- setPendingId(item.id);
- try {
- await updateWrongAnswerResolved(item.id, nextResolved);
- setItems((prev) =>
- filter === "unresolved" && nextResolved
- ? prev.filter((entry) => entry.id !== item.id)
- : prev.map((entry) =>
- entry.id === item.id
- ? { ...entry, resolved: nextResolved }
- : entry,
- ),
- );
- if (filter === "unresolved" && nextResolved) {
- setTotal((prev) => Math.max(0, prev - 1));
- }
- } catch (error) {
- console.error("Failed to update wrong answer", error);
- } finally {
- setPendingId(null);
- }
- },
- [filter],
- );
-
- const handleDelete = useCallback(
- async (item: WrongAnswer) => {
- if (!window.confirm(t("Delete this wrong answer?"))) return;
- setPendingId(item.id);
- try {
- await deleteWrongAnswer(item.id);
- setItems((prev) => prev.filter((entry) => entry.id !== item.id));
- setTotal((prev) => Math.max(0, prev - 1));
- } catch (error) {
- console.error("Failed to delete wrong answer", error);
- } finally {
- setPendingId(null);
- }
- },
- [t],
- );
-
- return (
- <div className="h-full overflow-y-auto [scrollbar-gutter:stable]">
- <div className="mx-auto max-w-[960px] px-6 py-8">
- <div className="mb-6 flex items-start justify-between">
- <div>
- <h1 className="text-[24px] font-semibold tracking-tight text-[var(--foreground)]">
- {t("Wrong Answer Note")}
- </h1>
- <p className="mt-1 text-[13px] text-[var(--muted-foreground)]">
- {t("Review mistakes from past quizzes across sessions.")}
- </p>
- </div>
- <button
- onClick={() => void loadItems(filter)}
- disabled={refreshing}
- className="inline-flex items-center gap-1.5 rounded-lg border border-[var(--border)]/50 px-3 py-1.5 text-[12px] font-medium text-[var(--muted-foreground)] transition-colors hover:border-[var(--border)] hover:text-[var(--foreground)] disabled:opacity-40"
- >
- {refreshing ? (
- <Loader2 className="h-3 w-3 animate-spin" />
- ) : (
- <RefreshCw className="h-3 w-3" />
- )}
- {t("Refresh")}
- </button>
- </div>
-
- <div className="mb-5 flex items-center justify-between border-b border-[var(--border)]/50 pb-3">
- <div className="flex items-center gap-1">
- {(["unresolved", "all"] as const).map((mode) => {
- const active = filter === mode;
- return (
- <button
- key={mode}
- onClick={() => setFilter(mode)}
- className={`inline-flex items-center gap-1.5 rounded-lg px-3 py-1.5 text-[13px] transition-colors ${
- active
- ? "bg-[var(--muted)] font-medium text-[var(--foreground)]"
- : "text-[var(--muted-foreground)] hover:text-[var(--foreground)]"
- }`}
- >
- {mode === "unresolved" ? t("Unresolved") : t("All")}
- </button>
- );
- })}
- </div>
- <span className="text-[12px] text-[var(--muted-foreground)]">
- {t("Total")}: {total}
- </span>
- </div>
-
- {loading ? (
- <div className="flex min-h-[420px] items-center justify-center">
- <Loader2 className="h-5 w-5 animate-spin text-[var(--muted-foreground)]" />
- </div>
- ) : items.length === 0 ? (
- <div className="flex min-h-[320px] flex-col items-center justify-center rounded-xl border border-dashed border-[var(--border)] text-center">
- <div className="mb-3 rounded-xl bg-[var(--muted)] p-2.5 text-[var(--muted-foreground)]">
- <NotebookPen size={18} />
- </div>
- <p className="text-[14px] font-medium text-[var(--foreground)]">
- {t("No wrong answers yet")}
- </p>
- <p className="mt-1.5 max-w-xs text-[13px] text-[var(--muted-foreground)]">
- {t("Mistakes from your quizzes will appear here for review.")}
- </p>
- </div>
- ) : (
- <ul className="flex flex-col gap-3">
- {items.map((item) => {
- const disabled = pendingId === item.id;
- return (
- <li
- key={item.id}
- className={`rounded-xl border border-[var(--border)] px-5 py-4 transition-opacity ${
- disabled ? "opacity-60" : ""
- } ${item.resolved ? "bg-[var(--muted)]/30" : ""}`}
- >
- <div className="mb-3 flex items-start justify-between gap-3">
- <div className="flex-1 min-w-0">
- <div className="text-[14px] font-medium text-[var(--foreground)]">
- <MarkdownRenderer
- content={item.question}
- variant="prose"
- className="text-[14px] leading-relaxed"
- />
- </div>
- </div>
- <div className="flex items-center gap-1">
- <button
- onClick={() => void handleToggleResolved(item)}
- disabled={disabled}
- title={
- item.resolved
- ? t("Mark as Unresolved")
- : t("Mark as Resolved")
- }
- className="rounded-lg p-1.5 text-[var(--muted-foreground)] transition-colors hover:bg-[var(--muted)] hover:text-[var(--foreground)] disabled:opacity-40"
- >
- {item.resolved ? (
- <CheckCircle2 className="h-4 w-4 text-[var(--primary)]" />
- ) : (
- <Circle className="h-4 w-4" />
- )}
- </button>
- <button
- onClick={() => void handleDelete(item)}
- disabled={disabled}
- title={t("Delete")}
- className="rounded-lg p-1.5 text-[var(--muted-foreground)] transition-colors hover:bg-[var(--muted)] hover:text-[var(--foreground)] disabled:opacity-40"
- >
- <Trash2 className="h-4 w-4" />
- </button>
- </div>
- </div>
-
- <div className="grid gap-2 text-[13px] sm:grid-cols-2">
- <div className="rounded-lg bg-[var(--muted)]/40 px-3 py-2">
- <div className="text-[11px] uppercase tracking-wide text-[var(--muted-foreground)]">
- {t("Your Answer")}
- </div>
- <div className="mt-1 text-[var(--foreground)]">
- {item.user_answer || <span className="text-[var(--muted-foreground)]">โ€”</span>}
- </div>
- </div>
- <div className="rounded-lg bg-[var(--muted)]/40 px-3 py-2">
- <div className="text-[11px] uppercase tracking-wide text-[var(--muted-foreground)]">
- {t("Correct Answer")}
- </div>
- <div className="mt-1 text-[var(--foreground)]">
- {item.correct_answer || <span className="text-[var(--muted-foreground)]">โ€”</span>}
- </div>
- </div>
- </div>
-
- <div className="mt-3 flex items-center justify-between text-[11px] text-[var(--muted-foreground)]">
- <Link
- href={`/?session=${encodeURIComponent(item.session_id)}`}
- className="truncate hover:text-[var(--foreground)] hover:underline"
- >
- {t("From session")}: {item.session_title || item.session_id}
- </Link>
- <span>{formatDate(item.created_at)}</span>
- </div>
- </li>
- );
- })}
- </ul>
- )}
- </div>
- </div>
- );
-}
diff --git a/web/app/(workspace)/guide/hooks/useNotebookSelection.ts b/web/app/(workspace)/guide/hooks/useNotebookSelection.ts
index 3b2361419..4e1d6a9ea 100644
--- a/web/app/(workspace)/guide/hooks/useNotebookSelection.ts
+++ b/web/app/(workspace)/guide/hooks/useNotebookSelection.ts
@@ -1,5 +1,5 @@
import { useState, useCallback } from "react";
-import { getNotebookDetail, listNotebooks } from "@/lib/notebook-api";
+import { listCategories, listNotebookEntries } from "@/lib/notebook-api";
import { Notebook, NotebookRecord, SelectedRecord } from "../types";
/**
@@ -23,16 +23,16 @@ export function useNotebookSelection() {
const fetchNotebooks = useCallback(async () => {
try {
- const data = await listNotebooks();
- const notebooksWithRecords = data
- .filter((nb) => (nb.record_count ?? 0) > 0)
+ const categories = await listCategories();
+ const notebooksWithRecords = categories
+ .filter((cat) => (cat.entry_count ?? 0) > 0)
.map(
- (nb): Notebook => ({
- id: nb.id,
- name: nb.name,
- description: nb.description ?? "",
- record_count: nb.record_count ?? 0,
- color: nb.color ?? "",
+ (cat): Notebook => ({
+ id: String(cat.id),
+ name: cat.name,
+ description: "",
+ record_count: cat.entry_count ?? 0,
+ color: "",
}),
);
setNotebooks(notebooksWithRecords);
@@ -53,15 +53,15 @@ export function useNotebookSelection() {
return newSet;
});
try {
- const data = await getNotebookDetail(notebookId);
- const records = (data.records || []).map(
- (record): NotebookRecord => ({
- id: record.id,
- title: record.title,
- summary: record.summary,
- user_query: record.user_query ?? "",
- output: record.output,
- type: record.type,
+ const data = await listNotebookEntries({ category_id: Number(notebookId) });
+ const records = (data.items || []).map(
+ (entry): NotebookRecord => ({
+ id: String(entry.id),
+ title: entry.question,
+ summary: entry.explanation,
+ user_query: entry.question,
+ output: entry.correct_answer,
+ type: entry.question_type,
}),
);
setNotebookRecordsMap((prev) =>
diff --git a/web/app/(workspace)/page.tsx b/web/app/(workspace)/page.tsx
index e84508765..e6ca48cd5 100644
--- a/web/app/(workspace)/page.tsx
+++ b/web/app/(workspace)/page.tsx
@@ -161,7 +161,7 @@ const CAPABILITIES: CapabilityDef[] = [
{
value: "visualize",
label: "Visualize",
- description: "Generate SVG or Chart.js visualizations",
+ description: "Generate SVG, Chart.js, or Mermaid visualizations",
icon: BarChart3,
allowedTools: [],
defaultTools: [],
diff --git a/web/app/globals.css b/web/app/globals.css
index 1c2772899..e085f56e9 100644
--- a/web/app/globals.css
+++ b/web/app/globals.css
@@ -47,6 +47,57 @@
--ring: #D4734B;
}
+ .theme-glass {
+ --background: #111111;
+ --foreground: #ffffff;
+ --card: rgba(255, 255, 255, 0.05);
+ --card-foreground: #ffffff;
+ --popover: rgba(255, 255, 255, 0.1);
+ --popover-foreground: #ffffff;
+ --primary: #9d50bb;
+ --primary-foreground: #ffffff;
+ --secondary: rgba(255, 255, 255, 0.03);
+ --secondary-foreground: #eeeeee;
+ --muted: rgba(255, 255, 255, 0.05);
+ --muted-foreground: #aaaaaa;
+ --accent: rgba(255, 255, 255, 0.1);
+ --accent-foreground: #ffffff;
+ --border: rgba(255, 255, 255, 0.1);
+ --input: rgba(255, 255, 255, 0.05);
+ --ring: #6e48aa;
+ }
+
+ .theme-glass body {
+ background: radial-gradient(circle at 50% 50%, #1a1a2e 0%, #0f0f1a 100%);
+ background-attachment: fixed;
+ }
+
+ .theme-glass .surface-card {
+ backdrop-filter: blur(8px);
+ -webkit-backdrop-filter: blur(8px);
+ border: 1px solid rgba(255, 255, 255, 0.1);
+ box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
+ }
+
+ @media (min-width: 768px) {
+ .theme-glass .surface-card {
+ backdrop-filter: blur(12px);
+ -webkit-backdrop-filter: blur(12px);
+ }
+ }
+
+ .theme-glass .btn-primary {
+ background: linear-gradient(45deg, #9d50bb, #6e48aa);
+ box-shadow: 0 0 15px rgba(157, 80, 187, 0.4);
+ border: none;
+ transition: all 0.3s ease;
+ }
+
+ .theme-glass .btn-primary:hover {
+ box-shadow: 0 0 25px rgba(157, 80, 187, 0.6);
+ transform: translateY(-1px);
+ }
+
* {
@apply border-[color:var(--border)];
scrollbar-width: thin;
diff --git a/web/components/ThemeScript.tsx b/web/components/ThemeScript.tsx
index 7772f3eae..c3ba44874 100644
--- a/web/components/ThemeScript.tsx
+++ b/web/components/ThemeScript.tsx
@@ -10,10 +10,14 @@ export default function ThemeScript() {
try {
const stored = localStorage.getItem('deeptutor-theme');
+ document.documentElement.classList.remove('dark', 'theme-glass');
+
if (stored === 'dark') {
document.documentElement.classList.add('dark');
+ } else if (stored === 'glass') {
+ document.documentElement.classList.add('dark', 'theme-glass');
} else if (stored === 'light') {
- document.documentElement.classList.remove('dark');
+ // already clean
} else {
// Use system preference if not set
if (window.matchMedia('(prefers-color-scheme: dark)').matches) {
diff --git a/web/components/chat/home/ChatMessages.tsx b/web/components/chat/home/ChatMessages.tsx
index 45701f0d9..60cdba21a 100644
--- a/web/components/chat/home/ChatMessages.tsx
+++ b/web/components/chat/home/ChatMessages.tsx
@@ -315,6 +315,7 @@ export function ChatMessageList({
<>
{messageRows.map(({ msg, pairedUserMessage }, i) => {
if (msg.role === "user") {
+ if (msg.content.startsWith("[Quiz Performance]")) return null;
const showInlineControls =
i === activeUserIndex &&
(!msg.capability || msg.capability === "chat") &&
diff --git a/web/components/notebook/SaveToNotebookModal.tsx b/web/components/notebook/SaveToNotebookModal.tsx
index 7755d494a..7cf0cf80a 100644
--- a/web/components/notebook/SaveToNotebookModal.tsx
+++ b/web/components/notebook/SaveToNotebookModal.tsx
@@ -4,7 +4,7 @@ import { useEffect, useMemo, useRef, useState } from "react";
import { Loader2, X } from "lucide-react";
import { useTranslation } from "react-i18next";
import { apiUrl } from "@/lib/api";
-import { invalidateNotebookCaches, listNotebooks } from "@/lib/notebook-api";
+import { listCategories } from "@/lib/notebook-api";
type RecordType =
| "solve"
@@ -83,7 +83,8 @@ export default function SaveToNotebookModal({
setSelectedIds([]);
void (async () => {
try {
- setNotebooks(await listNotebooks());
+ const cats = await listCategories();
+ setNotebooks(cats.map((c) => ({ id: String(c.id), name: c.name })));
} catch {
setNotebooks([]);
}
@@ -162,7 +163,6 @@ export default function SaveToNotebookModal({
} else if (type === "result") {
const summary = String(event.payload.summary || finalSummary);
setSummaryPreview(summary);
- invalidateNotebookCaches();
onSaved?.({ summary });
setIsLoading(false);
onClose();
diff --git a/web/components/quiz/QuizViewer.tsx b/web/components/quiz/QuizViewer.tsx
index ef3a1c61c..93397ba15 100644
--- a/web/components/quiz/QuizViewer.tsx
+++ b/web/components/quiz/QuizViewer.tsx
@@ -1,13 +1,33 @@
"use client";
import { useCallback, useEffect, useMemo, useRef, useState } from "react";
-import { Check, ChevronLeft, ChevronRight, Eye, RotateCcw } from "lucide-react";
+import {
+ Bookmark,
+ Check,
+ ChevronDown,
+ ChevronLeft,
+ ChevronRight,
+ Eye,
+ FolderPlus,
+ Loader2,
+ Plus,
+ RotateCcw,
+} from "lucide-react";
import { useTranslation } from "react-i18next";
import MarkdownRenderer from "@/components/common/MarkdownRenderer";
import QuestionFollowupPanel, {
type FollowupThreadState,
} from "@/components/quiz/QuestionFollowupPanel";
import { buildQuizFollowupConfig, type QuizQuestion } from "@/lib/quiz-types";
+import {
+ addEntryToCategory,
+ createCategory,
+ listCategories,
+ lookupNotebookEntry,
+ updateNotebookEntry,
+ upsertNotebookEntry,
+ type NotebookCategory,
+} from "@/lib/notebook-api";
import { recordQuizResults } from "@/lib/session-api";
import { shouldAppendEventContent } from "@/lib/stream";
import { type StartTurnMessage, type StreamEvent, UnifiedWSClient } from "@/lib/unified-ws";
@@ -86,6 +106,13 @@ export default function QuizViewer({
Map<string, { questionKey: string; client: UnifiedWSClient }>
>(new Map());
+ const [entryIds, setEntryIds] = useState<Record<string, number>>({});
+ const [bookmarked, setBookmarked] = useState<Record<string, boolean>>({});
+ const [categories, setCategories] = useState<NotebookCategory[]>([]);
+ const [categoryDropdownKey, setCategoryDropdownKey] = useState<string | null>(null);
+ const [newCategoryName, setNewCategoryName] = useState("");
+ const [categoryBusy, setCategoryBusy] = useState(false);
+
const q = questions[idx];
const ans = answers[idx] ?? EMPTY_ANSWER;
const total = questions.length;
@@ -130,6 +157,108 @@ export default function QuizViewer({
[],
);
+ // โ”€โ”€ Notebook integration โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
+
+ const refreshEntryId = useCallback(
+ async (qKey: string, sId: string, questionIndex?: number) => {
+ try {
+ const entry = await lookupNotebookEntry(sId, qKey);
+ if (entry) {
+ setEntryIds((prev) => ({ ...prev, [qKey]: entry.id }));
+ setBookmarked((prev) => ({ ...prev, [qKey]: entry.bookmarked }));
+ if (questionIndex !== undefined && entry.user_answer) {
+ setAnswers((prev) => {
+ if (prev[questionIndex]?.submitted) return prev;
+ return {
+ ...prev,
+ [questionIndex]: {
+ selected: entry.user_answer || null,
+ typed: entry.user_answer || "",
+ submitted: true,
+ },
+ };
+ });
+ }
+ }
+ } catch {
+ /* entry may not exist yet */
+ }
+ },
+ [],
+ );
+
+ useEffect(() => {
+ if (!sessionId) return;
+ questions.forEach((question, i) => {
+ const key = getQuestionKey(question, i);
+ void refreshEntryId(key, sessionId, i);
+ });
+ }, [sessionId, questions, refreshEntryId]);
+
+ const handleToggleBookmark = useCallback(async () => {
+ if (!q || !sessionId) return;
+ const key = getQuestionKey(q, idx);
+ const eId = entryIds[key];
+ if (!eId) return;
+ const next = !bookmarked[key];
+ setBookmarked((prev) => ({ ...prev, [key]: next }));
+ try {
+ await updateNotebookEntry(eId, { bookmarked: next });
+ } catch {
+ setBookmarked((prev) => ({ ...prev, [key]: !next }));
+ }
+ }, [bookmarked, entryIds, idx, q, sessionId]);
+
+ const loadCategories = useCallback(async () => {
+ try {
+ setCategories(await listCategories());
+ } catch { /* ignore */ }
+ }, []);
+
+ const handleOpenCategoryDropdown = useCallback(() => {
+ if (!q) return;
+ const key = getQuestionKey(q, idx);
+ if (categoryDropdownKey === key) {
+ setCategoryDropdownKey(null);
+ return;
+ }
+ setCategoryDropdownKey(key);
+ void loadCategories();
+ }, [categoryDropdownKey, idx, loadCategories, q]);
+
+ const handleAddToCategory = useCallback(
+ async (catId: number) => {
+ if (!q) return;
+ const key = getQuestionKey(q, idx);
+ const eId = entryIds[key];
+ if (!eId) return;
+ setCategoryBusy(true);
+ try {
+ await addEntryToCategory(eId, catId);
+ setCategoryDropdownKey(null);
+ } catch { /* ignore */ }
+ setCategoryBusy(false);
+ },
+ [entryIds, idx, q],
+ );
+
+ const handleCreateAndAdd = useCallback(async () => {
+ if (!q || !newCategoryName.trim()) return;
+ const key = getQuestionKey(q, idx);
+ const eId = entryIds[key];
+ if (!eId) return;
+ setCategoryBusy(true);
+ try {
+ const cat = await createCategory(newCategoryName.trim());
+ await addEntryToCategory(eId, cat.id);
+ setNewCategoryName("");
+ setCategoryDropdownKey(null);
+ } catch { /* ignore */ }
+ setCategoryBusy(false);
+ }, [entryIds, idx, newCategoryName, q]);
+
+ // โ”€โ”€ Follow-up thread event handling โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
+
const handleThreadEvent = useCallback(
(key: string, event: StreamEvent) => {
if (event.type === "session") {
@@ -147,6 +276,10 @@ export default function QuizViewer({
}));
const runner = threadRunnersRef.current.get(key);
if (runner) runner.questionKey = nextSessionId;
+ const eId = entryIds[key];
+ if (eId) {
+ void updateNotebookEntry(eId, { followup_session_id: nextSessionId }).catch(() => {});
+ }
return;
}
@@ -201,7 +334,7 @@ export default function QuizViewer({
return next;
});
},
- [updateThread],
+ [entryIds, updateThread],
);
const ensureThreadRunner = useCallback(
@@ -282,8 +415,12 @@ export default function QuizViewer({
{
question_id: question.question_id,
question: question.question,
+ question_type: question.question_type,
+ options: question.options ?? {},
user_answer: getUserAnswer(question, answer),
correct_answer: question.correct_answer,
+ explanation: question.explanation ?? "",
+ difficulty: question.difficulty ?? "",
is_correct: isAnswerCorrect(question, answer),
},
];
@@ -296,17 +433,51 @@ export default function QuizViewer({
const signature = JSON.stringify(submittedResults);
if (!signature || signature === lastReportedSignatureRef.current) return;
lastReportedSignatureRef.current = signature;
- void recordQuizResults(sessionId, submittedResults).catch((error) => {
- console.error("Failed to record quiz results:", error);
- if (lastReportedSignatureRef.current === signature) {
- lastReportedSignatureRef.current = "";
+ void recordQuizResults(sessionId, submittedResults)
+ .then(() => {
+ questions.forEach((question, i) => {
+ void refreshEntryId(getQuestionKey(question, i), sessionId);
+ });
+ })
+ .catch((error) => {
+ console.error("Failed to record quiz results:", error);
+ if (lastReportedSignatureRef.current === signature) {
+ lastReportedSignatureRef.current = "";
+ }
+ });
+ }, [completedCount, questions, refreshEntryId, sessionId, submittedResults, total]);
+
+ const upsertSingleQuestion = useCallback(
+ async (question: QuizQuestion, answer: AnswerState) => {
+ if (!sessionId) return;
+ const key = getQuestionKey(question, questions.indexOf(question));
+ try {
+ const entry = await upsertNotebookEntry({
+ session_id: sessionId,
+ question_id: question.question_id,
+ question: question.question,
+ question_type: question.question_type,
+ options: question.options ?? {},
+ correct_answer: question.correct_answer,
+ explanation: question.explanation ?? "",
+ difficulty: question.difficulty ?? "",
+ user_answer: getUserAnswer(question, answer),
+ is_correct: isAnswerCorrect(question, answer),
+ });
+ setEntryIds((prev) => ({ ...prev, [key]: entry.id }));
+ setBookmarked((prev) => ({ ...prev, [key]: entry.bookmarked }));
+ } catch {
+ /* best-effort */
}
- });
- }, [completedCount, sessionId, submittedResults, total]);
+ },
+ [questions, sessionId],
+ );
const handleSubmit = () => {
- if (ans.submitted) return;
+ if (ans.submitted || !q) return;
+ const newAnswer = { ...(answers[idx] ?? EMPTY_ANSWER), submitted: true };
updateAnswer({ submitted: true });
+ void upsertSingleQuestion(q, newAnswer);
};
const handleReset = () => {
@@ -367,6 +538,10 @@ export default function QuizViewer({
if (!q) return null;
+ const currentEntryId = entryIds[questionKey];
+ const currentBookmarked = bookmarked[questionKey] ?? false;
+ const showCategoryDropdown = categoryDropdownKey === questionKey;
+
return (
<div className="overflow-hidden rounded-xl border border-[var(--border)] bg-[var(--card)]">
<div className="flex items-center gap-1 border-b border-[var(--border)] px-3 py-2">
@@ -416,26 +591,90 @@ export default function QuizViewer({
</div>
<div className="px-4 py-3">
- <div className="mb-2 flex flex-wrap items-center gap-1.5">
- <span className="rounded-md bg-[var(--muted)] px-1.5 py-0.5 text-[10px] font-medium uppercase text-[var(--muted-foreground)]">
- Q{idx + 1}
- </span>
- {q.difficulty && (
- <span
- className={`rounded-md px-1.5 py-0.5 text-[10px] font-medium uppercase ${
- q.difficulty === "hard"
- ? "bg-red-50 text-red-600 dark:bg-red-950/30 dark:text-red-400"
- : q.difficulty === "medium"
- ? "bg-amber-50 text-amber-600 dark:bg-amber-950/30 dark:text-amber-400"
- : "bg-green-50 text-green-600 dark:bg-green-950/30 dark:text-green-400"
- }`}
- >
- {q.difficulty}
+ <div className="mb-2 flex items-center justify-between gap-2">
+ <div className="flex flex-wrap items-center gap-1.5">
+ <span className="rounded-md bg-[var(--muted)] px-1.5 py-0.5 text-[10px] font-medium uppercase text-[var(--muted-foreground)]">
+ Q{idx + 1}
+ </span>
+ {q.difficulty && (
+ <span
+ className={`rounded-md px-1.5 py-0.5 text-[10px] font-medium uppercase ${
+ q.difficulty === "hard"
+ ? "bg-red-50 text-red-600 dark:bg-red-950/30 dark:text-red-400"
+ : q.difficulty === "medium"
+ ? "bg-amber-50 text-amber-600 dark:bg-amber-950/30 dark:text-amber-400"
+ : "bg-green-50 text-green-600 dark:bg-green-950/30 dark:text-green-400"
+ }`}
+ >
+ {q.difficulty}
+ </span>
+ )}
+ <span className="rounded-md bg-[var(--muted)] px-1.5 py-0.5 text-[10px] font-medium text-[var(--muted-foreground)]">
+ {q.question_type}
</span>
+ </div>
+
+ {ans.submitted && (
+ <div className="relative flex items-center gap-1">
+ <button
+ onClick={handleToggleBookmark}
+ disabled={!currentEntryId}
+ title={currentBookmarked ? t("Remove Bookmark") : t("Bookmark")}
+ className={`rounded-lg p-1.5 transition-all disabled:opacity-30 ${
+ currentBookmarked
+ ? "scale-110 text-amber-500 dark:text-amber-400"
+ : "text-[var(--muted-foreground)] hover:text-amber-500 dark:hover:text-amber-400"
+ }`}
+ >
+ <Bookmark size={18} strokeWidth={currentBookmarked ? 2.5 : 1.8} fill={currentBookmarked ? "currentColor" : "none"} />
+ </button>
+ <button
+ onClick={handleOpenCategoryDropdown}
+ disabled={!currentEntryId}
+ title={t("Add to Category")}
+ className="rounded-lg p-1.5 text-[var(--muted-foreground)] transition-colors hover:text-[var(--foreground)] disabled:opacity-30"
+ >
+ <FolderPlus size={16} />
+ </button>
+
+ {showCategoryDropdown && (
+ <div className="absolute right-0 top-8 z-20 w-48 rounded-lg border border-[var(--border)] bg-[var(--card)] py-1 shadow-lg">
+ {categories.length > 0 && (
+ <div className="max-h-[160px] overflow-y-auto">
+ {categories.map((cat) => (
+ <button
+ key={cat.id}
+ disabled={categoryBusy}
+ onClick={() => void handleAddToCategory(cat.id)}
+ className="flex w-full items-center gap-2 px-3 py-1.5 text-left text-[12px] text-[var(--foreground)] transition-colors hover:bg-[var(--muted)] disabled:opacity-40"
+ >
+ {cat.name}
+ </button>
+ ))}
+ </div>
+ )}
+ <div className="border-t border-[var(--border)] px-2 py-1.5">
+ <div className="flex items-center gap-1">
+ <input
+ value={newCategoryName}
+ onChange={(e) => setNewCategoryName(e.target.value)}
+ onKeyDown={(e) => e.key === "Enter" && void handleCreateAndAdd()}
+ placeholder={t("New category...")}
+ className="flex-1 rounded border border-[var(--border)] bg-[var(--background)] px-2 py-1 text-[11px] text-[var(--foreground)] outline-none placeholder:text-[var(--muted-foreground)]"
+ />
+ <button
+ disabled={!newCategoryName.trim() || categoryBusy}
+ onClick={() => void handleCreateAndAdd()}
+ className="rounded p-1 text-[var(--primary)] disabled:opacity-30"
+ >
+ {categoryBusy ? <Loader2 size={12} className="animate-spin" /> : <Plus size={12} />}
+ </button>
+ </div>
+ </div>
+ </div>
+ )}
+ </div>
)}
- <span className="rounded-md bg-[var(--muted)] px-1.5 py-0.5 text-[10px] font-medium text-[var(--muted-foreground)]">
- {q.question_type}
- </span>
</div>
<div className="mb-3 text-[14px] leading-relaxed">
@@ -554,7 +793,14 @@ export default function QuizViewer({
{t("Reference Answer")}
</div>
<div className="text-[13px] leading-relaxed text-[var(--foreground)]">
- <MarkdownRenderer content={q.correct_answer} variant="prose" />
+ <MarkdownRenderer
+ content={
+ q.question_type === "coding" && !q.correct_answer.trimStart().startsWith("```")
+ ? `\`\`\`python\n${q.correct_answer}\n\`\`\``
+ : q.correct_answer
+ }
+ variant="prose"
+ />
</div>
</div>
)}
diff --git a/web/components/sidebar/SidebarShell.tsx b/web/components/sidebar/SidebarShell.tsx
index 74d3074d6..1712981ee 100644
--- a/web/components/sidebar/SidebarShell.tsx
+++ b/web/components/sidebar/SidebarShell.tsx
@@ -10,7 +10,6 @@ import {
Brain,
GraduationCap,
MessageSquare,
- NotebookPen,
PanelLeftClose,
PanelLeftOpen,
PenLine,
@@ -36,7 +35,6 @@ const PRIMARY_NAV: NavEntry[] = [
{ href: "/guide", label: "Guided Learning", icon: GraduationCap },
{ href: "/knowledge", label: "Knowledge", icon: BookOpen },
{ href: "/memory", label: "Memory", icon: Brain },
- { href: "/wrong-answers", label: "Wrong Answer Note", icon: NotebookPen },
];
const SECONDARY_NAV: NavEntry[] = [{ href: "/settings", label: "Settings", icon: Settings }];
diff --git a/web/components/visualize/VisualizationViewer.tsx b/web/components/visualize/VisualizationViewer.tsx
index 987e68f5b..7899ed079 100644
--- a/web/components/visualize/VisualizationViewer.tsx
+++ b/web/components/visualize/VisualizationViewer.tsx
@@ -3,6 +3,7 @@
import { useEffect, useMemo, useRef, useState } from "react";
import { Code2, Copy, Check } from "lucide-react";
import { useTranslation } from "react-i18next";
+import { Mermaid } from "@/components/Mermaid";
import type { VisualizeResult } from "@/lib/visualize-types";
function ChartJsRenderer({ config }: { config: string }) {
@@ -127,6 +128,8 @@ export default function VisualizationViewer({
<div className="overflow-hidden rounded-xl border border-[var(--border)] bg-[var(--background)] p-4">
{result.render_type === "svg" ? (
<SvgRenderer svg={result.code.content} />
+ ) : result.render_type === "mermaid" ? (
+ <Mermaid chart={result.code.content} />
) : (
<ChartJsRenderer config={result.code.content} />
)}
@@ -153,7 +156,11 @@ export default function VisualizationViewer({
</button>
<span className="ml-auto text-[10px] uppercase tracking-wider text-[var(--muted-foreground)]/50">
- {result.render_type === "svg" ? "SVG" : `Chart.js ยท ${result.analysis.chart_type || "chart"}`}
+ {result.render_type === "svg"
+ ? "SVG"
+ : result.render_type === "mermaid"
+ ? `Mermaid ยท ${result.analysis.chart_type || "diagram"}`
+ : `Chart.js ยท ${result.analysis.chart_type || "chart"}`}
</span>
</div>
diff --git a/web/components/visualize/VisualizeConfigPanel.tsx b/web/components/visualize/VisualizeConfigPanel.tsx
index 5de7baa10..3a39ebff1 100644
--- a/web/components/visualize/VisualizeConfigPanel.tsx
+++ b/web/components/visualize/VisualizeConfigPanel.tsx
@@ -28,6 +28,7 @@ export default function VisualizeConfigPanel({
<option value="auto">{t("Auto")}</option>
<option value="chartjs">{t("Chart.js")}</option>
<option value="svg">{t("SVG")}</option>
+ <option value="mermaid">{t("Mermaid")}</option>
</select>
</Field>
</div>
diff --git a/web/lib/notebook-api.ts b/web/lib/notebook-api.ts
index d52b0d1c3..966ae3000 100644
--- a/web/lib/notebook-api.ts
+++ b/web/lib/notebook-api.ts
@@ -1,65 +1,185 @@
import { apiUrl } from "@/lib/api";
-import { invalidateClientCache, withClientCache } from "@/lib/client-cache";
-const NOTEBOOK_CACHE_PREFIX = "notebook:";
+export interface NotebookEntry {
+ id: number;
+ session_id: string;
+ session_title: string;
+ question_id: string;
+ question: string;
+ question_type: string;
+ options: Record<string, string>;
+ correct_answer: string;
+ explanation: string;
+ difficulty: string;
+ user_answer: string;
+ is_correct: boolean;
+ bookmarked: boolean;
+ followup_session_id: string;
+ created_at: number;
+ updated_at: number;
+ categories?: NotebookCategory[];
+}
-export interface NotebookSummary {
- id: string;
+export interface NotebookCategory {
+ id: number;
name: string;
- description?: string;
- record_count?: number;
- color?: string;
- icon?: string;
- updated_at?: number;
-}
-
-export interface NotebookRecordSummary {
- id: string;
- type: string;
- title: string;
- summary?: string;
- user_query?: string;
- output: string;
- metadata?: Record<string, unknown>;
- created_at?: number;
-}
-
-export interface NotebookDetail extends NotebookSummary {
- records: NotebookRecordSummary[];
-}
-
-export async function listNotebooks(options?: { force?: boolean }) {
- return withClientCache<NotebookSummary[]>(
- `${NOTEBOOK_CACHE_PREFIX}list`,
- async () => {
- const response = await fetch(apiUrl("/api/v1/notebook/list"), {
- cache: "no-store",
- });
- const data = await response.json();
- return Array.isArray(data?.notebooks) ? data.notebooks : [];
- },
- {
- force: options?.force,
- },
+ created_at: number;
+ entry_count: number;
+}
+
+export interface NotebookEntryListResponse {
+ items: NotebookEntry[];
+ total: number;
+}
+
+async function expectJson<T>(response: Response): Promise<T> {
+ if (!response.ok) {
+ throw new Error(`Request failed: ${response.status}`);
+ }
+ return response.json() as Promise<T>;
+}
+
+// โ”€โ”€ Entries โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
+
+export async function listNotebookEntries(filter: {
+ category_id?: number;
+ bookmarked?: boolean;
+ is_correct?: boolean;
+ limit?: number;
+ offset?: number;
+} = {}): Promise<NotebookEntryListResponse> {
+ const params = new URLSearchParams();
+ if (filter.category_id !== undefined) params.set("category_id", String(filter.category_id));
+ if (filter.bookmarked !== undefined) params.set("bookmarked", String(filter.bookmarked));
+ if (filter.is_correct !== undefined) params.set("is_correct", String(filter.is_correct));
+ if (filter.limit !== undefined) params.set("limit", String(filter.limit));
+ if (filter.offset !== undefined) params.set("offset", String(filter.offset));
+ const query = params.toString();
+ const response = await fetch(
+ apiUrl(`/api/v1/question-notebook/entries${query ? `?${query}` : ""}`),
+ { cache: "no-store" },
);
+ return expectJson<NotebookEntryListResponse>(response);
}
-export async function getNotebookDetail(notebookId: string, options?: { force?: boolean }) {
- return withClientCache<NotebookDetail>(
- `${NOTEBOOK_CACHE_PREFIX}detail:${notebookId}`,
- async () => {
- const response = await fetch(apiUrl(`/api/v1/notebook/${notebookId}`), {
- cache: "no-store",
- });
- return response.json() as Promise<NotebookDetail>;
- },
+export async function getNotebookEntry(entryId: number): Promise<NotebookEntry> {
+ const response = await fetch(apiUrl(`/api/v1/question-notebook/entries/${entryId}`), {
+ cache: "no-store",
+ });
+ return expectJson<NotebookEntry>(response);
+}
+
+export async function lookupNotebookEntry(
+ sessionId: string,
+ questionId: string,
+): Promise<NotebookEntry | null> {
+ const params = new URLSearchParams({ session_id: sessionId, question_id: questionId });
+ const response = await fetch(
+ apiUrl(`/api/v1/question-notebook/entries/lookup/by-question?${params}`),
+ );
+ if (response.status === 404) return null;
+ return expectJson<NotebookEntry>(response);
+}
+
+export async function updateNotebookEntry(
+ entryId: number,
+ updates: { bookmarked?: boolean; followup_session_id?: string },
+): Promise<void> {
+ const response = await fetch(apiUrl(`/api/v1/question-notebook/entries/${entryId}`), {
+ method: "PATCH",
+ headers: { "Content-Type": "application/json" },
+ body: JSON.stringify(updates),
+ });
+ await expectJson<{ updated: boolean }>(response);
+}
+
+export async function upsertNotebookEntry(data: {
+ session_id: string;
+ question_id: string;
+ question: string;
+ question_type?: string;
+ options?: Record<string, string>;
+ correct_answer?: string;
+ explanation?: string;
+ difficulty?: string;
+ user_answer?: string;
+ is_correct?: boolean;
+}): Promise<NotebookEntry> {
+ const response = await fetch(apiUrl("/api/v1/question-notebook/entries/upsert"), {
+ method: "POST",
+ headers: { "Content-Type": "application/json" },
+ body: JSON.stringify({
+ ...data,
+ options: data.options || {},
+ explanation: data.explanation || "",
+ difficulty: data.difficulty || "",
+ }),
+ });
+ return expectJson<NotebookEntry>(response);
+}
+
+export async function deleteNotebookEntry(entryId: number): Promise<void> {
+ const response = await fetch(apiUrl(`/api/v1/question-notebook/entries/${entryId}`), {
+ method: "DELETE",
+ });
+ await expectJson<{ deleted: boolean }>(response);
+}
+
+// โ”€โ”€ Entry โ†” Category โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
+
+export async function addEntryToCategory(entryId: number, categoryId: number): Promise<void> {
+ const response = await fetch(
+ apiUrl(`/api/v1/question-notebook/entries/${entryId}/categories`),
{
- ttlMs: 15_000,
- force: options?.force,
+ method: "POST",
+ headers: { "Content-Type": "application/json" },
+ body: JSON.stringify({ category_id: categoryId }),
},
);
+ await expectJson<{ added: boolean }>(response);
+}
+
+export async function removeEntryFromCategory(
+ entryId: number,
+ categoryId: number,
+): Promise<void> {
+ const response = await fetch(
+ apiUrl(`/api/v1/question-notebook/entries/${entryId}/categories/${categoryId}`),
+ { method: "DELETE" },
+ );
+ await expectJson<{ removed: boolean }>(response);
+}
+
+// โ”€โ”€ Categories โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
+
+export async function listCategories(): Promise<NotebookCategory[]> {
+ const response = await fetch(apiUrl("/api/v1/question-notebook/categories"), {
+ cache: "no-store",
+ });
+ return expectJson<NotebookCategory[]>(response);
+}
+
+export async function createCategory(name: string): Promise<NotebookCategory> {
+ const response = await fetch(apiUrl("/api/v1/question-notebook/categories"), {
+ method: "POST",
+ headers: { "Content-Type": "application/json" },
+ body: JSON.stringify({ name }),
+ });
+ return expectJson<NotebookCategory>(response);
+}
+
+export async function renameCategory(categoryId: number, name: string): Promise<void> {
+ const response = await fetch(apiUrl(`/api/v1/question-notebook/categories/${categoryId}`), {
+ method: "PATCH",
+ headers: { "Content-Type": "application/json" },
+ body: JSON.stringify({ name }),
+ });
+ await expectJson<{ updated: boolean }>(response);
}
-export function invalidateNotebookCaches() {
- invalidateClientCache(NOTEBOOK_CACHE_PREFIX);
+export async function deleteCategory(categoryId: number): Promise<void> {
+ const response = await fetch(apiUrl(`/api/v1/question-notebook/categories/${categoryId}`), {
+ method: "DELETE",
+ });
+ await expectJson<{ deleted: boolean }>(response);
}
diff --git a/web/lib/session-api.ts b/web/lib/session-api.ts
index 77c4084eb..b763d9872 100644
--- a/web/lib/session-api.ts
+++ b/web/lib/session-api.ts
@@ -73,8 +73,12 @@ export interface SessionDetail {
export interface QuizResultItem {
question_id?: string;
question: string;
+ question_type?: string;
+ options?: Record<string, string>;
user_answer: string;
correct_answer: string;
+ explanation?: string;
+ difficulty?: string;
is_correct: boolean;
}
diff --git a/web/lib/theme-utils.ts b/web/lib/theme-utils.ts
index c82bf108e..4b2cb7b9e 100644
--- a/web/lib/theme-utils.ts
+++ b/web/lib/theme-utils.ts
@@ -9,7 +9,9 @@ import { setTheme, type Theme } from "./theme";
* Toggle theme between light and dark
*/
export function toggleTheme(currentTheme: Theme): Theme {
- const newTheme = currentTheme === "light" ? "dark" : "light";
+ const order: Theme[] = ["light", "dark", "glass"];
+ const idx = order.indexOf(currentTheme);
+ const newTheme = order[(idx + 1) % order.length];
setTheme(newTheme);
return newTheme;
}
@@ -32,7 +34,9 @@ export function setDarkTheme(): void {
* Get CSS class for theme-aware styling
*/
export function getThemeClass(theme: Theme): string {
- return theme === "dark" ? "dark" : "";
+ if (theme === "dark") return "dark";
+ if (theme === "glass") return "dark theme-glass";
+ return "";
}
/**
@@ -58,7 +62,7 @@ export function onThemeChange(callback: (theme: Theme) => void): () => void {
const handleStorageChange = (e: StorageEvent) => {
if (
e.key === "deeptutor-theme" &&
- (e.newValue === "light" || e.newValue === "dark")
+ (e.newValue === "light" || e.newValue === "dark" || e.newValue === "glass")
) {
callback(e.newValue);
}
diff --git a/web/lib/theme.ts b/web/lib/theme.ts
index 4d7630bd1..757fae624 100644
--- a/web/lib/theme.ts
+++ b/web/lib/theme.ts
@@ -3,7 +3,7 @@
* Handles light/dark theme with localStorage fallback and system preference detection
*/
-export type Theme = "light" | "dark";
+export type Theme = "light" | "dark" | "glass";
export const THEME_STORAGE_KEY = "deeptutor-theme";
@@ -35,7 +35,7 @@ export function getStoredTheme(): Theme | null {
try {
const stored = localStorage.getItem(THEME_STORAGE_KEY);
- if (stored === "light" || stored === "dark") {
+ if (stored === "light" || stored === "dark" || stored === "glass") {
return stored;
}
} catch (e) {
@@ -78,10 +78,13 @@ export function applyThemeToDocument(theme: Theme): void {
if (typeof document === "undefined") return;
const html = document.documentElement;
+
+ html.classList.remove("dark", "theme-glass");
+
if (theme === "dark") {
html.classList.add("dark");
- } else {
- html.classList.remove("dark");
+ } else if (theme === "glass") {
+ html.classList.add("dark", "theme-glass");
}
}
diff --git a/web/lib/visualize-types.ts b/web/lib/visualize-types.ts
index ba6a3b411..0a04fcd01 100644
--- a/web/lib/visualize-types.ts
+++ b/web/lib/visualize-types.ts
@@ -1,5 +1,5 @@
-export type VisualizeRenderType = "svg" | "chartjs";
-export type VisualizeRenderMode = "auto" | "svg" | "chartjs";
+export type VisualizeRenderType = "svg" | "chartjs" | "mermaid";
+export type VisualizeRenderMode = "auto" | "svg" | "chartjs" | "mermaid";
export interface VisualizeFormConfig {
render_mode: VisualizeRenderMode;
@@ -43,7 +43,7 @@ export function extractVisualizeResult(
if (!resultMetadata) return null;
const renderType = resultMetadata.render_type;
- if (renderType !== "svg" && renderType !== "chartjs") return null;
+ if (renderType !== "svg" && renderType !== "chartjs" && renderType !== "mermaid") return null;
const codeRaw =
resultMetadata.code && typeof resultMetadata.code === "object"
diff --git a/web/lib/wrong-answer-api.ts b/web/lib/wrong-answer-api.ts
deleted file mode 100644
index 5223e9111..000000000
--- a/web/lib/wrong-answer-api.ts
+++ /dev/null
@@ -1,66 +0,0 @@
-import { apiUrl } from "@/lib/api";
-
-export interface WrongAnswer {
- id: number;
- session_id: string;
- session_title: string;
- question_id: string;
- question: string;
- user_answer: string;
- correct_answer: string;
- resolved: boolean;
- created_at: number;
- resolved_at: number | null;
-}
-
-export interface WrongAnswerListResponse {
- items: WrongAnswer[];
- total: number;
-}
-
-async function expectJson<T>(response: Response): Promise<T> {
- if (!response.ok) {
- throw new Error(`Request failed: ${response.status}`);
- }
- return response.json() as Promise<T>;
-}
-
-export async function listWrongAnswers(
- filter: { resolved?: boolean; limit?: number; offset?: number } = {},
-): Promise<WrongAnswerListResponse> {
- const params = new URLSearchParams();
- if (filter.resolved !== undefined) {
- params.set("resolved", String(filter.resolved));
- }
- if (filter.limit !== undefined) {
- params.set("limit", String(filter.limit));
- }
- if (filter.offset !== undefined) {
- params.set("offset", String(filter.offset));
- }
- const query = params.toString();
- const response = await fetch(
- apiUrl(`/api/v1/wrong-answers${query ? `?${query}` : ""}`),
- { cache: "no-store" },
- );
- return expectJson<WrongAnswerListResponse>(response);
-}
-
-export async function updateWrongAnswerResolved(
- id: number,
- resolved: boolean,
-): Promise<void> {
- const response = await fetch(apiUrl(`/api/v1/wrong-answers/${id}`), {
- method: "PATCH",
- headers: { "Content-Type": "application/json" },
- body: JSON.stringify({ resolved }),
- });
- await expectJson<{ updated: boolean }>(response);
-}
-
-export async function deleteWrongAnswer(id: number): Promise<void> {
- const response = await fetch(apiUrl(`/api/v1/wrong-answers/${id}`), {
- method: "DELETE",
- });
- await expectJson<{ deleted: boolean }>(response);
-}
diff --git a/web/locales/en/app.json b/web/locales/en/app.json
index e490849c6..f6bd94838 100644
--- a/web/locales/en/app.json
+++ b/web/locales/en/app.json
@@ -858,19 +858,33 @@
"Image Output": "Image Output",
"Fullscreen math animation output": "Fullscreen math animation output",
"Delete this chat history?": "Delete this chat history?",
- "Wrong Answer Note": "Wrong Answer Note",
- "Review mistakes from past quizzes across sessions.": "Review mistakes from past quizzes across sessions.",
- "Unresolved": "Unresolved",
+ "Question Notebook": "Question Notebook",
+ "Review and organize quiz questions across sessions.": "Review and organize quiz questions across sessions.",
"All": "All",
+ "Bookmarked": "Bookmarked",
+ "Wrong Only": "Wrong Only",
"Total": "Total",
"Refresh": "Refresh",
- "No wrong answers yet": "No wrong answers yet",
- "Mistakes from your quizzes will appear here for review.": "Mistakes from your quizzes will appear here for review.",
+ "Categories": "Categories",
+ "Manage Categories": "Manage Categories",
+ "New category name...": "New category name...",
+ "New category...": "New category...",
+ "Delete this category?": "Delete this category?",
+ "Remove from category": "Remove from category",
+ "No entries yet": "No entries yet",
+ "Questions from your quizzes will appear here.": "Questions from your quizzes will appear here.",
"Your Answer": "Your Answer",
"Correct Answer": "Correct Answer",
"From session": "From session",
- "Mark as Resolved": "Mark as Resolved",
- "Mark as Unresolved": "Mark as Unresolved",
+ "Follow-up": "Follow-up",
+ "Bookmark": "Bookmark",
+ "Remove Bookmark": "Remove Bookmark",
+ "Add to Category": "Add to Category",
"Delete": "Delete",
- "Delete this wrong answer?": "Delete this wrong answer?"
+ "Delete this entry?": "Delete this entry?",
+ "Failed to load entries": "Failed to load entries",
+ "Retry": "Retry",
+ "Your pick": "Your pick",
+ "No categories yet.": "No categories yet.",
+ "Original Session": "Original Session"
}
diff --git a/web/locales/zh/app.json b/web/locales/zh/app.json
index 3911f94dd..4414dea46 100644
--- a/web/locales/zh/app.json
+++ b/web/locales/zh/app.json
@@ -858,19 +858,33 @@
"Image Output": "ๅ›พ็‰‡่พ“ๅ‡บ",
"Fullscreen math animation output": "ๅ…จๅฑๆ•ฐๅญฆๅŠจ็”ป่พ“ๅ‡บ",
"Delete this chat history?": "็กฎๅฎšๅˆ ้™คๆญค่Šๅคฉ่ฎฐๅฝ•ๅ—๏ผŸ",
- "Wrong Answer Note": "้”™้ข˜ๆœฌ",
- "Review mistakes from past quizzes across sessions.": "่ทจไผš่ฏๅ›ž้กพ่ฟ‡ๅพ€ๆต‹้ชŒไธญ็ญ”้”™็š„้ข˜็›ฎใ€‚",
- "Unresolved": "ๆœช่งฃๅ†ณ",
+ "Question Notebook": "้ข˜็›ฎ็ฌ”่ฎฐๆœฌ",
+ "Review and organize quiz questions across sessions.": "่ทจไผš่ฏๅ›ž้กพๅ’Œๆ•ด็†ๆต‹้ชŒ้ข˜็›ฎใ€‚",
"All": "ๅ…จ้ƒจ",
+ "Bookmarked": "ๅทฒๆ”ถ่—",
+ "Wrong Only": "ไป…้”™้ข˜",
"Total": "ๆ€ป่ฎก",
"Refresh": "ๅˆทๆ–ฐ",
- "No wrong answers yet": "ๆš‚ๆ— ้”™้ข˜",
- "Mistakes from your quizzes will appear here for review.": "ๆต‹้ชŒไธญ็ญ”้”™็š„้ข˜็›ฎๅฐ†ๆฑ‡ๆ€ปๅˆฐๆญคๅค„ไพ›ๅคไน ไฝฟ็”จใ€‚",
+ "Categories": "ๅˆ†็ฑป",
+ "Manage Categories": "็ฎก็†ๅˆ†็ฑป",
+ "New category name...": "ๆ–ฐๅˆ†็ฑปๅ็งฐ...",
+ "New category...": "ๆ–ฐๅˆ†็ฑป...",
+ "Delete this category?": "็กฎๅฎšๅˆ ้™คๆญคๅˆ†็ฑปๅ—๏ผŸ",
+ "Remove from category": "ไปŽๅˆ†็ฑปไธญ็งป้™ค",
+ "No entries yet": "ๆš‚ๆ— ้ข˜็›ฎ",
+ "Questions from your quizzes will appear here.": "ๆต‹้ชŒไธญ็š„้ข˜็›ฎๅฐ†ๆฑ‡ๆ€ปๅˆฐๆญคๅค„ใ€‚",
"Your Answer": "ไฝ ็š„็ญ”ๆกˆ",
"Correct Answer": "ๆญฃ็กฎ็ญ”ๆกˆ",
"From session": "ๆฅ่‡ชไผš่ฏ",
- "Mark as Resolved": "ๆ ‡่ฎฐไธบๅทฒ่งฃๅ†ณ",
- "Mark as Unresolved": "ๆ ‡่ฎฐไธบๆœช่งฃๅ†ณ",
+ "Follow-up": "่ฟฝ้—ฎๅฏน่ฏ",
+ "Bookmark": "ๆ”ถ่—",
+ "Remove Bookmark": "ๅ–ๆถˆๆ”ถ่—",
+ "Add to Category": "ๆทปๅŠ ๅˆฐๅˆ†็ฑป",
"Delete": "ๅˆ ้™ค",
- "Delete this wrong answer?": "็กฎๅฎšๅˆ ้™คๆญค้”™้ข˜ๅ—๏ผŸ"
+ "Delete this entry?": "็กฎๅฎšๅˆ ้™คๆญคๆก็›ฎๅ—๏ผŸ",
+ "Failed to load entries": "ๅŠ ่ฝฝๅคฑ่ดฅ",
+ "Retry": "้‡่ฏ•",
+ "Your pick": "ไฝ ็š„้€‰ๆ‹ฉ",
+ "No categories yet.": "ๆš‚ๆ— ๅˆ†็ฑปใ€‚",
+ "Original Session": "ๅŽŸๅง‹ไผš่ฏ"
}