Repository navigation
feat: understand questions in the library's words, Learning Paths and AI reliability - #28
Merged
Merged
Conversation
A quota, auth or overload failure now skips that model for 20-60 s instead of costing every request its timeout; the whole chain shares one budget so a slow provider cannot exceed maxDuration; /api/health?deep=1 makes one real call per model.
When a question is in another script or keyword retrieval is thin, one AI call rewrites it into the vocabulary of the session and chapter titles; keyword hits keep priority. Near-miss questions get an honest answer from related ideas instead of a refusal, and non-Latin questions are answered in their own language. Replaces the translate-only step.
A topic becomes an ordered 3-5 step micro-course across the library, validated so every step is a real retrieved moment, stitched into one Cloudinary reel, stored and shareable at /p/[id] with a share card.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this is
An end-to-end audit of the live site (Oct 3), the fixes it called for, and one new feature built on the same two engines (Cloudinary transformations + one citation-grounded AI call). Spec and evidence:
docs/phases/PHASE-18-query-understanding-learning-paths.md.Audit findings → fixes
maxDurationGET /api/health?deep=1makes one tiny real call per modelexplicit(data fix, no code)New: Learning Paths (
/learn,/p/[id])A topic becomes an ordered 3–5 step micro-course across the library, edited into one Cloudinary reel. Every step is a real retrieved moment with a "why this comes next".
validatePath()drops anything the model wasn't given, and returns no course rather than padding (same discipline as Ask). Stored and shareable with a Cloudinary share card. "Go deeper" under every answer opens one.Verified on real data
not_found); off-topic questions stillnot_foundChecklist
pnpm lint,pnpm typecheck,pnpm test(108 passing; new: breaker, query plan, path validator, answer language)migrations/006_learning_paths.sql(already applied to the shared Neon database)