M5.1.6 arxiv-rag: cost ledger fields (embedding_calls) #43
Labels
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: archeious/marchwarden#43
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Final sub-milestone of Issue #37. Design: ArxivRagProposal.
Goal
Extend the cost ledger so arxiv-rag calls record their embedding usage alongside the existing token / Tavily fields. Closes the per-researcher cost-tracking loop.
Scope
obs/costs.py:embedding_calls: int = 0andembedding_model: Optional[str] = Noneto ledger entriesPriceTable.estimate_call_usdto accept an embedding component:voyage-3), look up[embeddings."<model>"]inprices.tomland bill per-token[embeddings."nomic-embed-text-v1.5"](free) and[embeddings."voyage-3"](placeholder rate)researchers/arxiv/agent.pyrecords the number ofretrieve_chunkscalls and embedding model name, passes them through when callingledger.record(...)marchwarden costsrendering: include embedding_calls in the per-day / per-model breakdowns where it's nonzeroTests
embedding_calls > 0,estimated_cost_usdonly counts the synthesis tokensBranch
feat/arxiv-rag-cost-ledgerBlocked by: M5.1.5. Closes the M5.1 milestone.
A.6 arxiv-rag: cost ledger fields (to M5.1.6 arxiv-rag: cost ledger fields (embedding_calls)embedding_calls)