Repository navigation
Two fixes to what a question is answered from, both found by a real assistant and a real account. Nothing changes in the app you see.
A CV exported from Canva can be indexed. Four PDFs were listed as files that cannot be indexed, "a scanned page is a picture of text". None is a scan.
- Why. On the free path, Cloudflare's
toMarkdownreads a PDF's text, and it gave back nothing for a tagged PDF whose structure tree does not lead to the text. - How it was found. One change at a time. Renaming only
/StructTreeRootgave the text back. Text in form XObjects, transparency groups, or the file saved again by macOS made no difference. - The fix. Such a PDF is now asked once more, with the tree hidden in the copy sent to be read. The renamed name has the same length, so no offset moves. A failed second try keeps the first answer, and a tree that works is kept. (#312)
- Checked in production. "Try these again" indexed all four, 9 or 10 pieces each.
A copy of a file is read once. A question is answered from the eight nearest pieces, and a file kept twice took two places with the same text. Now the answer reads the first eight distinct pieces of the sixteen nearest. (#309)
Measured and not kept:
- a rule in the instruction to say which file says what (#310);
- twelve pieces instead of eight (#311).
Both are written down in evals/README.md.