[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-116056":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":16,"stars7d":17,"stars30d":17,"stars90d":15,"forks30d":15,"starsTrendScore":18,"compositeScore":19,"rankGlobal":10,"rankLanguage":10,"license":20,"archived":21,"fork":21,"defaultBranch":22,"hasWiki":23,"hasPages":21,"topics":24,"createdAt":10,"pushedAt":44,"updatedAt":45,"readmeContent":46,"aiSummary":47,"trendingCount":15,"starSnapshotCount":15,"syncStatus":48,"lastSyncTime":49,"discoverSource":50},116056,"ai-tutor","lynote-ai\u002Fai-tutor","lynote-ai","Self-hosted AI tutor and learning assistant for self-study, e-learning, and exam prep. Turn study notes, PDFs, and lecture notes into a chapter learning path and a quiz. It only teaches a sentence it can quote. Bring your own model key.","https:\u002F\u002Flynote.ai\u002Flearning-path",null,"Python",203,5,7,0,1,117,52,74.33,"MIT License",false,"main",true,[25,26,5,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43],"ai-learning","ai-notes","e-learning","edtech","exam-prep","generative-ai","learning-assistant","learning-path","lecture-notes","openai","pdf-reader","quiz-app","quiz-generator","self-hosted","self-study","study-assistant","study-notes","study-tools","tutoring","2026-11-16 07:56:36","2026-11-23 16:59:58","# Lynote Learning Path\n\n**Turn notes, slides, and links into a chapter path that only teaches a sentence it can quote.**\n\n[![Python](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fpython-3.11%2B-blue)](https:\u002F\u002Fwww.python.org\u002F)\n[![Docker](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fdocker-compose-2496ED?logo=docker&logoColor=white)](https:\u002F\u002Fdocs.docker.com\u002Fcompose\u002F)\n[![License](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Flicense-MIT-2a78d6)](LICENSE)\n\n[Quick start](#-quick-start) · [How it works](#-how-a-path-is-built) · [Sample course](#-sample-course) · [Try it on Lynote](https:\u002F\u002Flynote.ai\u002Flearning-path?utm_source=github&utm_medium=readme&utm_campaign=learning_path_oss&utm_content=nav) · [Discord](https:\u002F\u002Fdiscord.gg\u002FNzcH5DYzBj) · [中文](README.zh-CN.md)\n\n\u003Cp align=\"center\">\n  \u003Cimg src=\"docs\u002Fimages\u002Fshelf-ready.png\" alt=\"Course shelf: add files, then generate a path\" width=\"880\">\n\u003C\u002Fp>\n\n\u003Cp align=\"center\">\u003Ci>Add materials to the shelf. Generate keeps a claim only when its quote is still in the file.\u003C\u002Fi>\u003C\u002Fp>\n\n---\n\nThis repository is the technical pipeline for Lynote's chapter learning path. The chain calls three providers, and each one takes its own API key:\n\n| Provider | What it does | Key |\n| --- | --- | --- |\n| **DeepSeek** | Extract claims, arrange chapters, write the lesson and the quiz, answer Ask | Chat API key |\n| **Jev**, through OpenRouter | Decide whether a copied sentence actually supports the claim. It does not write the lesson | OpenRouter API key |\n| **Azure** | Read text from documents and images (Document Intelligence read, Vision Read) | Azure API key |\n\n## Why this project\n\n- **The lesson cannot outrun the file.** A concept or a question is stored only when its quote is a continuous excerpt of a source span. Anything the model adds is dropped before it reaches the course.\n- **You study in order.** The next chapter stays locked, and its lesson is not sent to the browser, until the current quiz is finished.\n- **The source comes back after you answer.** The explanation and the quote appear on the feedback, not on the question.\n- **It runs without an account.** Docker on your machine, an OpenAI-compatible endpoint you choose, and a three-chapter sample that needs no key.\n\n## 🚀 Quick start\n\n```bash\ngit clone https:\u002F\u002Fgithub.com\u002Flynote-ai\u002Fai-tutor.git\ncd ai-tutor\ncp .env.example .env          # Windows: Copy-Item .env.example .env\ndocker compose up --build\n```\n\nOpen \u003Chttp:\u002F\u002Flocalhost:8080> and choose **Try 3 samples**.\n\n```bash\ncurl http:\u002F\u002F127.0.0.1:8080\u002Fapi\u002Fhealth\n```\n\n`{\"status\":\"ok\",\"llm_configured\":true}` means a key was loaded. The JSON does not contain the key. `false` means the sample still runs, and your own files do not generate yet.\n\n> No key yet? The sample course is the whole learning path with nothing to configure. To generate from your own files, put a key in `.env` and start Compose again. Or skip setup and [open the hosted path on Lynote](https:\u002F\u002Flynote.ai\u002Flearning-path?utm_source=github&utm_medium=readme&utm_campaign=learning_path_oss&utm_content=quickstart).\n\nLocal development uses the API on port 8000 and the UI on port 5173. Both shells, Windows included, are in [docs\u002Fdeploy.md](docs\u002Fdeploy.md). Variables are in [docs\u002Fconfiguration.md](docs\u002Fconfiguration.md).\n\n## What you can put on the shelf\n\n| Input | What is kept with the text |\n| --- | --- |\n| PDF | Page |\n| Word (`.docx`), PowerPoint (`.pptx`), Excel (`.xlsx`) | Slide, sheet, or section |\n| Text, Markdown, HTML, CSV | Section |\n| Subtitles (`.srt`, `.vtt`) | Cue time |\n| Public `http` \u002F `https` page | Section |\n| YouTube link with public captions | Caption time |\n| Audio or video | Sent to your transcription endpoint, then treated as text |\n\nPrivate and loopback addresses are refused before any request is sent. Uploaded binaries are parsed in memory and are not kept. The extracted text is.\n\n## ✨ How a path is built\n\n![Chapter path pipeline: read, locate, extract, quote gate, Jev check, arrange, write, then study. DeepSeek, Jev, and Azure each take an API key.](docs\u002Fimages\u002Fpipeline.png)\n\n| Stage | What the model is asked to do | What the server keeps |\n| --- | --- | --- |\n| Read | — | A span plus a locator: page, slide, cue, or section |\n| Extract | Copy a continuous sentence from one span | The point, only if that quote is still in the span. Fragments under 24 characters are dropped |\n| Arrange | Order the point ids it was given | Every kept point, even if the model skipped one. Unknown ids are ignored. At most 8 chapters |\n| Write | One lesson, one summary, two questions, each tied to a quote | A question only when its quote sits inside a point from that chapter. If the lesson call fails, the quiz is left empty instead of invented |\n| Ask | Answer from the open chapter | The current lesson and its quotes. The instruction is to refuse when the answer is not in them |\n\nThe arrangement step has to account for every kept point. The write step is not allowed to add facts the quotes do not contain. Rules: [docs\u002Fpipeline.md](docs\u002Fpipeline.md). Module split: [docs\u002Farchitecture.md](docs\u002Farchitecture.md).\n\n### A sentence that survives, and one that does not\n\nFrom the sample note [`examples\u002Fmemory\u002F01-encoding.md`](examples\u002Fmemory\u002F01-encoding.md):\n\n> Attention decides what enters that trace.\n\nThat sentence can become a lesson quote and a quiz quote, because it is a continuous excerpt of the note. A sentence the model might prefer — a statistic, a mechanism, a cleaner definition that was never in the file — is not stored. The same check runs on your files when a key is set.\n\n## Learning path\n\n\u003Cp align=\"center\">\n  \u003Cimg src=\"docs\u002Fimages\u002Fpath-open.png\" alt=\"Learning path: section 1 is open, later sections are locked, and the point quotes the file\" width=\"880\">\n\u003C\u002Fp>\n\n1. **The path opens on section 1.** Later sections stay locked. A section is a sequence of points.\n2. **A point can quote the file.** The example is labeled as coming from the source. A line the model adds is labeled as added, not as a sentence from the file.\n3. **The section ends with a check.** The choices are on the question. The answer is not.\n4. **The next section follows the check.** Ask is available on the open chapter when a key is configured.\n\n\u003Cp align=\"center\">\n  \u003Cimg src=\"docs\u002Fimages\u002Fsection-check.png\" alt=\"Quick check at the end of the section. The question does not include the answer.\" width=\"880\">\n\u003C\u002Fp>\n\n\u003Cp align=\"center\">\u003Ci>The check is part of the section. The question shows the choices, not the answer.\u003C\u002Fi>\u003C\u002Fp>\n\n## 📖 Sample course\n\n[Encoding](examples\u002Fmemory\u002F01-encoding.md), [storage](examples\u002Fmemory\u002F02-storage.md), and [retrieval](examples\u002Fmemory\u002F03-retrieval.md) are three short notes. **Try 3 samples** loads a course that quotes them and does not call a model. Tests fail if a sample quote is no longer a substring of its note.\n\n| Chapter | What the check is about |\n| --- | --- |\n| Encoding | Attention decides what enters the trace. Meaning beats repeating a word you do not understand |\n| Storage | A short-term trace fades in seconds unless it is rehearsed. Sleep does not replace encoding |\n| Retrieval | A successful retrieval strengthens the trace more than rereading. Feedback comes after the attempt |\n\n## Open edition and Lynote\n\nThis repository is the chapter path, runnable on its own. [Lynote](https:\u002F\u002Flynote.ai\u002Flearning-path?utm_source=github&utm_medium=readme&utm_campaign=learning_path_oss&utm_content=compare) is the workspace around that path.\n\n| | This repository | Lynote |\n| --- | --- | --- |\n| Where it runs | Your machine | lynote.ai |\n| Model | Your OpenAI-compatible key | Included with the account |\n| What can be taught | A sentence that still appears in the file | The same grounded loop, inside the full workspace |\n| Accounts and billing | None. SQLite on the machine that runs the server | Accounts and learning coins |\n| Materials | The shelf in the table above, with the limits below | Image reading, full-document processing, lecture transcription |\n| After a chapter | The quiz unlocks the next chapter | The notes workspace beside the path |\n| Setup | Docker, or the sample with an empty key | Open the page |\n\n[Open Lynote Learning Path](https:\u002F\u002Flynote.ai\u002Flearning-path?utm_source=github&utm_medium=readme&utm_campaign=learning_path_oss&utm_content=cta)\n\n## Ways to run it\n\n| Way | Who it is for | How |\n| --- | --- | --- |\n| **Docker Compose** | A path you leave running | [Quick start](#-quick-start). Listens on port 8080 |\n| **Local API + UI** | Changing the server or the shelf | [docs\u002Fdeploy.md](docs\u002Fdeploy.md). API on 8000, UI on 5173 |\n| **Sample only** | A look at the learning path | Empty `LLM_API_KEY`, then **Try 3 samples** |\n| **Hosted** | No install | [lynote.ai\u002Flearning-path](https:\u002F\u002Flynote.ai\u002Flearning-path?utm_source=github&utm_medium=readme&utm_campaign=learning_path_oss&utm_content=ways) |\n\n## Limits in this edition\n\n| Limit | Value |\n| --- | --- |\n| Sources on the shelf | 20 |\n| Upload size | 20 MB |\n| Text stored per source | about 200,000 characters |\n| Text sent to the model for one course | about 56,000 characters, sampled from the start and from later spans when the source is longer |\n| Grounded points | 40 |\n| Chapters | 8 |\n\nA longer source still produces a path. The course records that it was sampled. The hosted product reads the full document.\n\n## Documentation\n\n- [Deploy](docs\u002Fdeploy.md) · [部署（中文）](docs\u002Fdeploy.zh-CN.md) · [Configuration](docs\u002Fconfiguration.md)\n- [Pipeline](docs\u002Fpipeline.md) · [Architecture](docs\u002Farchitecture.md) · [Index](docs\u002FREADME.md)\n- [Contributing](CONTRIBUTING.md) · [Security](SECURITY.md) · [Changelog](CHANGELOG.md)\n\n\u003Cdetails>\n\u003Csummary>Repository layout\u003C\u002Fsummary>\n\n```text\nweb\u002F                  Shelf and study UI (Vite)\nserver\u002Fapp            Parse, pipeline, sample course, HTTP API\nserver\u002Ftests          API tests and the quote-is-in-the-source check\nexamples\u002Fmemory       The three notes behind the sample path\ndocs                  Architecture, pipeline, configuration, deploy, screenshots\nassets                Social preview used in the repository settings\n```\n\nCourses are stored in `data\u002Flearning-path.db` on the machine that runs the server.\n\n\u003C\u002Fdetails>\n\n## Related projects\n\n- [Lynote Humanize Text](https:\u002F\u002Fgithub.com\u002Flynote-ai\u002Fhumanize-text) — open pipeline that rewrites AI-drafted prose, with every step visible\n- [Whiteboard AI Tutor](https:\u002F\u002Fgithub.com\u002Fmolly554\u002Fwhiteboard-ai-tutor) — a whiteboard teaching protocol, and a blind review of six models\n- [Lynote AI Detector](https:\u002F\u002Flynote.ai\u002Fai-detector?utm_source=github&utm_medium=readme&utm_campaign=learning_path_oss&utm_content=related) — sentence-level scoring on the hosted product\n\n## Contributing\n\nParsers, deploy fixes, the study UI, and docs are welcome. Accounts, billing, mastery, and the production prompts stay on Lynote. See [CONTRIBUTING.md](CONTRIBUTING.md).\n\nPut a model key only in `.env`. If one was committed or pasted, revoke it at the provider and create a new one. Vulnerability reports go through a private advisory, described in [SECURITY.md](SECURITY.md).\n\n## License\n\n[MIT](LICENSE). Copyright 2026 Lynote.\n\n---\n\n⭐ **If this project helps you, give it a star** — it helps more people find it.\n\n[Learning Path on Lynote](https:\u002F\u002Flynote.ai\u002Flearning-path?utm_source=github&utm_medium=readme&utm_campaign=learning_path_oss&utm_content=footer) · [Website](https:\u002F\u002Flynote.ai?utm_source=github&utm_medium=readme&utm_campaign=learning_path_oss&utm_content=footer) · [Discord](https:\u002F\u002Fdiscord.gg\u002FNzcH5DYzBj) · [X](https:\u002F\u002Fx.com\u002Flynote_ai) · [Product Hunt](https:\u002F\u002Fwww.producthunt.com\u002Fproducts\u002Flynote-ai?launch=lynote-3)\n","lynote-ai\u002Fai-tutor 是一个可本地部署的AI学习助手，专为自主学习、在线教育和考试备考设计。它支持将用户提供的笔记、PDF讲义和课件自动构建为结构化学习路径，并生成基于原文引用的章节课程与随堂测验；所有教学内容严格受限于源文件中的连续文本片段，确保可验证性。项目采用多模型协同架构（DeepSeek生成、Jev验证、Azure文档解析），通过Docker一键部署，无需中心化账户。适用于个人知识管理、教育机构定制化学习系统及备考资料智能化转化等场景。",2,"2026-11-24 04:52:41","CREATED_QUERY"]