Attribute and reduce Workers AI neuron usage

Open
#2,638 2 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
48/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
typescript
Domain
backend, data

Research direction

Start by tracing the nemar_llm_metrics Analytics Engine dataset and other AI bindings in nemar-api, including search embeddings. Query November usage by caller and run or day, recording the query used. Done means the November neurons are attributed by caller and a decision on whether to reduce or accept the cost is recorded here.

Written by the indexing model from the issue text.

Description

Part of #2633.

Workers AI billed $14.14 in the November cycle (Oct 29 to Nov 28): 1.59M Regular Twitch Neurons, 1.28M billable past the included allowance (Cloudflare Billing > Billable usage, read 2026-12-02). Vectorize queried dimensions added $1.29. The current cycle shows 83k neurons in its first four days, under the allowance.

To do: attribute the neurons to their callers (the nemar_llm_metrics Analytics Engine dataset meters enrichment runs; check what else in nemar-api binds AI, such as embeddings for search), find which runs or days drove November's usage, and decide whether to cut it (fewer re-runs, a smaller model, caching embeddings, batching) or accept it as the cost of the feature.

Acceptance: the November neurons are attributed by caller with the query used, and a decision is recorded here.

Dominant language
TypeScript
Stars
0
Forks
1
Avg merge
4h 48m
Merged PRs (30d)
468

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from nemarOrg/nemar-cli

All issues in nemarOrg/nemar-cli

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.