PocketAccountant: custom ledger UI + deterministic agent (engine, ledger, retrieval, classifier)
c55ab5e verified | """Retrieval — ground tax answers in the regulation corpus (local, no cloud API). | |
| A small on-disk TF-IDF index over dated SAT / IRS source text. The "cite or abstain" | |
| guardrail lives in ``Retriever.cite``: if retrieval does not support a claim above a | |
| similarity threshold, the agent abstains and recommends a human CPA rather than | |
| free-styling tax law. | |
| """ | |
| from .corpus import Document, load_corpus | |
| from .index import CiteResult, Passage, Retriever, tokenize | |
| __all__ = [ | |
| "Document", | |
| "load_corpus", | |
| "Retriever", | |
| "Passage", | |
| "CiteResult", | |
| "tokenize", | |
| ] | |