{"slug":"denk-halowerk-com-v1-rag-metrics-255dc6","title":"RAG evaluation without an LLM judge","host":"denk.halowerk.com","method":"POST","resource":"https://denk.halowerk.com/v1/rag-metrics","category":"other","description":"RAG evaluation without an LLM judge: context precision, context recall, faithfulness, answer relevance and correctness (lexical or embeddings), plus IR metrics (P@k, R@k, MRR, AP, nDCG) when relevant ids are known. All metrics are defined in the response. With relevant_ids: precision@k and recall@k ","price_listed":0.004,"price_asked":0.004,"state":"answering","state_label":"Answering","checks_7d":7,"answered_7d":7,"latency_ms_median":1178,"reported_calls_30d":2,"reported_payers_30d":1,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"answer":"The Eiffel Tower is in Paris.","contexts":["The Eiffel Tower is a landmark in Paris, completed in 1889.","Berlin is the capital of Germany."],"question":"Where is the Eiffel Tower?"},"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":{"answer":{"description":"Generated answer.","maxLength":20000,"minLength":1,"type":"string"},"contexts":{"description":"Retrieved contexts in rank order: strings or objects {id, text}.","items":{"anyOf":[{"maxLength":20000,"minLength":1,"type":"string"},{"additionalProperties":false,"properties":{"id":{"maxLength":128,"type":"string"},"text":{"maxLength":20000,"minLength":1,"type":"string"}},"required":["text"],"type":"object"}]},"maxItems":50,"minItems":1,"type":"array"},"k":{"default":5,"maximum":50,"minimum":1,"type":"integer"},"language":{"default":"auto","enum":["auto","de","en"],"type":"string"},"lexical_threshold":{"default":0.6,"maximum":1,"minimum":0.1,"type":"number"},"method":{"default":"lexical","enum":["lexical","embedding","both"],"type":"string"},"question":{"description":"User question.","maxLength":5000,"minLength":1,"type":"string"},"reference":{"description":"Ground-truth answer (enables context recall and correctness).","maxLength":20000,"minLength":1,"type":"string"},"relevant_ids":{"description":"Ids (or 0-based positions as strings) of the truly relevant contexts.","items":{"maxLength":128,"type":"string"},"maxItems":50,"type":"array","uniqueItems":true},"semantic_threshold":{"default":0.8,"description":"Cosine threshold for intfloat/multilingual-e5-small (heuristic; related pairs typically score 0.80-0.90, unrelated 0.65-0.75).","maximum":1,"minimum":0.5,"type":"number"}},"required":["question","answer","contexts"],"type":"object"},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"method":{"enum":["POST","PUT","PATCH"],"type":"string"},"type":{"const":"http","type":"string"}},"required":["type","method","bodyType","body"],"type":"object"},"output":{"properties":{"example":{"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-11-26","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.004,"price_match":true,"latency_ms":1175,"error":null},{"day":"2026-11-25","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.004,"price_match":true,"latency_ms":1181,"error":null},{"day":"2026-11-24","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.004,"price_match":true,"latency_ms":1201,"error":null},{"day":"2026-11-23","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.004,"price_match":true,"latency_ms":1156,"error":null},{"day":"2026-11-22","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.004,"price_match":true,"latency_ms":1184,"error":null},{"day":"2026-11-21","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.004,"price_match":true,"latency_ms":1178,"error":null},{"day":"2026-11-20","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.004,"price_match":true,"latency_ms":1142,"error":null},{"day":"2026-11-19","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.004,"price_match":true,"latency_ms":1158,"error":null},{"day":"2026-11-18","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.004,"price_match":true,"latency_ms":354,"error":null},{"day":"2026-11-17","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.004,"price_match":true,"latency_ms":1128,"error":null},{"day":"2026-11-16","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.004,"price_match":true,"latency_ms":1027,"error":null},{"day":"2026-11-15","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.004,"price_match":true,"latency_ms":1310,"error":null},{"day":"2026-11-14","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.004,"price_match":true,"latency_ms":1112,"error":null},{"day":"2026-11-13","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.004,"price_match":true,"latency_ms":1049,"error":null}],"description_full":"RAG evaluation without an LLM judge: context precision, context recall, faithfulness, answer relevance and correctness (lexical or embeddings), plus IR metrics (P@k, R@k, MRR, AP, nDCG) when relevant ids are known. All metrics are defined in the response. With relevant_ids: precision@k and recall@k over the first k contexts, MRR, average precision and nDCG@k with binary relevance and log2 discount.","last_updated":"2026-11-20T14:57:16.862Z","schemes":["exact"]}