{"slug":"www-mahastrategies-com-api-v1-compress-evaluate-03048b","title":"Compile 1-8 documents into a token-budgeted context pack, then measure exact ret","host":"www.mahastrategies.com","method":"POST","resource":"https://www.mahastrategies.com/api/v1/compress/evaluate","category":"code","description":"Compile 1-8 documents into a token-budgeted context pack, then measure exact retention of 1-32 caller-labelled evidence spans. Returns the pack, source-linked passages, input and output hashes, original and compiled token estimates, tokensSaved, source coverage, and requiredEvidenceRetentionPercent.","price_listed":0.01,"price_asked":0.01,"state":"answering","state_label":"Answering","checks_7d":1,"answered_7d":1,"latency_ms_median":1376,"reported_calls_30d":3,"reported_payers_30d":2,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"budgetMode":"guaranteed","clientRequestId":"req_rag_release_eval_001","documents":[{"id":"release-notes","text":"Release may proceed after the security owner attaches credential-rotation evidence. The production canary passed in every region.\n\nRoutine notes cover staffing, dashboards, meeting cadence, maintenance calendars, regional handoffs, historical capacity, and documentation formatting.","title":"Release notes"},{"id":"rollback-runbook","text":"Rollback if API errors exceed 2 percent for five minutes or payment failures breach the alert threshold. Restore the last-known-good deployment before reopening traffic.\n\nRoutine notes cover staffing, dashboards, meeting cadence, maintenance calendars, regional handoffs, historical capacity, and documentation formatting.","title":"Rollback runbook"}],"provenance":"compact","requiredEvidence":[{"evidenceId":"release-gate","sourceId":"release-notes","text":"Release may proceed after the security owner attaches credential-rotation evidence."},{"evidenceId":"rollback-trigger","sourceId":"rollback-runbook","text":"Rollback if API errors exceed 2 percent for five minutes"},{"evidenceId":"handoff-note","sourceId":"release-notes","text":"regional handoffs, historical capacity, and documentation formatting"}],"scoring":"bm25","task":"Find the release condition and rollback trigger while removing duplicate operational background.","tokenBudget":128},"bodyType":"json","method":"POST","type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"body":{"additionalProperties":false,"properties":{"budgetMode":{"enum":["guaranteed","estimated"],"type":"string"},"clientRequestId":{"maxLength":120,"minLength":8,"type":"string"},"documents":{"maxItems":8,"minItems":1,"type":"array"},"provenance":{"enum":["full","compact","none"],"type":"string"},"requiredEvidence":{"maxItems":32,"minItems":1,"type":"array"},"scoring":{"enum":["bm25","keyword"],"type":"string"},"task":{"maxLength":1200,"minLength":8,"type":"string"},"tokenBudget":{"maximum":16000,"minimum":64,"type":"integer"}},"required":["clientRequestId","task","tokenBudget","documents","requiredEvidence"],"type":"object"},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"method":{"enum":["POST"],"type":"string"},"type":{"const":"http","type":"string"}},"required":["type","method","bodyType","body"],"type":"object"},"output":{"properties":{"example":{"additionalProperties":false,"properties":{"clientRequestId":{"maxLength":120,"minLength":8,"type":"string"},"compiledContextStored":{"const":false,"type":"boolean"},"contextPack":{"type":"object"},"evaluationId":{"type":"string"},"evidence":{"maxItems":32,"minItems":1,"type":"array"},"inputHash":{"type":"string"},"metrics":{"type":"object"},"offerId":{"const":"deep-context-evaluation","type":"string"},"outputHash":{"type":"string"},"requiredEvidenceTextStored":{"const":false,"type":"boolean"},"retentionBoundaries":{"type":"object"},"sourceTextStored":{"const":false,"type":"boolean"},"version":{"const":"0.1.0","type":"string"},"warningCodes":{"type":"array"},"warnings":{"type":"array"}},"required":["version","offerId","evaluationId","clientRequestId","contextPack","evidence","metrics","inputHash","outputHash","warnings","warningCodes","retentionBoundaries","sourceTextStored","compiledContextStored","requiredEvidenceTextStored"],"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-09-24","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.01,"price_match":true,"latency_ms":1376,"error":null}],"description_full":"Compile 1-8 documents into a token-budgeted context pack, then measure exact retention of 1-32 caller-labelled evidence spans. Returns the pack, source-linked passages, input and output hashes, original and compiled token estimates, tokensSaved, source coverage, and requiredEvidenceRetentionPercent. Retention is exact span matching only: not accuracy, answer quality, verification, or hallucination prevention. Extractive and budget-bound. Request content is not stored.","last_updated":"2026-09-05T04:14:41.718Z","schemes":["exact"]}