Tags 218 lines of GitHub’s Terms of Service, asks a Choice for the best line ID, and pairs it with a Noul checking whether the document contains an answer at all.
Original by TypeSafe AIRetrievalTypeSafe cookbookSource reviewed
Before you dive in
What you’ll find in the original
Index the lines with stable IDs before asking for a match.
Ask whether the document answers the query instead of always accepting the closest line.
Return source lines to readers; the selected ID is a navigation aid, not a generated answer.
Worth knowing
This searches the supplied document, not the web or an unseen corpus.