Use Cases / rag-relevance
Jev RAG ilgililik
Retriever’lar near-miss döner. Bunları LLM’e tıkmak token boşa harcar ve yanıtları karıştırır.
Try a related template free on this host — 5 anonymous real-API runs with no signup — then ship the same schema with a prepaid jv_live_ key. See is Jev free? and playground.
Why Jev
Her chunk için ilgililik/keep-drop Score veya Noul — sıkıştırma tipli kalır; kanıtın kayıplı yeniden yazımı değil.
How to define the decision
Her getirilen chunk için state = sorgu + chunk metni. İlgililik / keep için Noul veya Score sorun. Worker decide çağrılarını paralelleştirebiliyorsa chunk’ları batch’leyin.
When to use Jev
- Getirme sonrası keep / truncate / drop
- Üretimden önce çoklu korpus yönlendirme
- Çoğu chunk’ın gürültü olduğu yüksek hacimli RAG
When not to use Jev
- Son kullanıcıya dönük yanıtı üretmek
- Embedding / indeks oluşturmanın kendisi
- Birçok kaynakta uzun yaratıcı sentez
Sample input and output
From the live tool template. Run it in the playground for a real API response — sample labels below are illustrative until you click Run.
Input
query: How do I rotate my API key? passage: To rotate a key, open Settings > API keys, click Revoke, then Create new key.
Sample display fields
- relevant: yes · 95%
- relevance: direct answer · 92%
Prompt birleştirmeden önce düşük ilgililikli chunk’ları atın. Sınır skorlar → daha küçük bir alıntı tutun veya daha ucuz bir re-ranker’a gönderin. Eksik kanıt uydurmayın.
Failure modes and human fallback
- Upstream or network errors: retry with backoff; do not invent a decision.
- Low confidence: route to a human queue or safer default — never auto-act on money/destructive tools.
- Schema drift: keep a golden fixture set in CI so label changes fail the build before production.
- Jev belgeleri embed veya indekslemez — yalnızca geçirdiğiniz metnin ilgililiğini yargılar.
- Son yanıt üretimi üretken LLM’de kalır.
- Fail closed: decide hata verirse chunk’ı atlayın veya mevcut top-k politikanıza düşün.
API example
Same prepaid jv_live_ balance as tools. Output tokens are free on this host's metering model.
curl https://jevtypesafe.org/api/v1/decide \
-H "Authorization: Bearer jv_live_YOUR_KEY_HERE" \
-H "Content-Type: application/json" \
-d '{"state":"RAG check\nQuery: How do I rotate my API key?\nPassage:\nTo rotate a key, open Settings > API keys, click Revoke, then Create new key.","questions":{"relevant":{"type":"noul","instructions":"Does this passage help answer the query?"},"relevance":{"type":"choice","instructions":"How does the passage relate to the query?","criteria":{"direct answer":"directly answers","related":"related but incomplete","tangential":"weakly related","irrelevant":"does not help"}},"supports_claim":{"type":"noul","instructions":"Does the passage support answering without inventing facts?"}}}'FAQ
- Tek tık araç var mı?
- Mümkün olduğunda Tools altında RAG Relevance’ı açın veya retriever worker’ınızda ilgililik sorularını /api/v1/decide’a bağlayın.
Related use cases
Ready to build?
Free anonymous tool runs, then prepaid packs and a jv_live_ key — independent host, not affiliated with TypeSafe AI.