Repository navigation
v4.17.0 — Ask your files
Ask your files a question. A button in the dashboard's bar opens /ask. The answer appears as it is written, read only from the person's own files, with each [n] opening the file it cites and the cited pieces listed under it to check against. It is free on every account, the demo included, within a daily limit: production answers on Workers AI (mistral-small-3.1). With Anthropic's key, a deployment answers with Claude instead. See decision 0019.
- Pieces, not sentences. A question like "until when does my lease run" is answered by a clause, not by the one sentence the index keeps per file. Every indexed file is now cut into pieces of 400 characters (migration 022), and the eight nearest to a question are what the model reads. PDFs are read on the free path too, through Cloudflare's
toMarkdown. - Measured before it shipped.
- On the eval's 75 questions, the eight pieces held the answer every time.
- The model answered 62 of 65 right, refused 9 of the 10 the files do not answer, and answered every question in its own language.
- It made up no number in any of the 75 answers.
- Its three misses were all questions asked in another language than the answer is written in.
- The answers are kept in the repository and graded in CI by rules, with no key and no judge model (
evals/).
- The answer is text, never markup. A file can ask a model to write anything, so the page renders the answer as plain text, and the pieces sit in a fenced block the instruction calls data.
- Stop stops the model. Stop, or leaving the page, ends the request, and the server stops the model rather than finish an answer nobody reads out of the same free allocation. On Vercel that needed
supportsCancellationinvercel.json. Checked in production: an answer stopped after its first word ran 1.46 s against 7.87 s whole. - A spent limit says when to come back, in the reader's own time: "You can try again after 01:00", or "tomorrow after 19:00". Every 429 the functions send now carries the moment (
retryAt). Questions count against their own daily budget (migration 023). - Indexing on the dashboard.
- "Index them" no longer waits for a search by meaning.
- A file that cannot be indexed is listed once with its reason, instead of staying "1 not indexed" forever.
- A run that found nothing to read says so in grey, not red.
- Kept from Hotjar and Sentry: the question, including one still being typed, the answer, and the cited files' names.
Migrations 022 and 023 are applied in production.
What it costs:
- Bundle. The first load is 378.7 kB gzipped, 1.3 kB more, 1.2 of it Ionic 9.0.11. All assets are 478.9 kB, 6.0 kB more: the page to ask from is 2.8 kB and loads when first opened. That leaves 1.1 kB under the budget.
- Tests.
- The app's unit tests went from 1,936 to 2,117, and the site's stay at 74.
- The eval's Python tests are at 180.
- The end-to-end suite passed 48 of 48 on every run on
mainsince 4.16.0. One run passed only on a retry:file-lifecyclewaited past 5 s once for the address to change.