JevMemoryReranker
Score candidates independently and expose provider failures to callers.
An injected HTTP client stays caller-owned; protection requires an owned transport. The adapter adds no retries and bounds all requests, pool waits, and transport retries by one total deadline. Concurrency is shared across simultaneous rerank operations on this adapter.
Attributes
attributesupports_atomic_memory= Trueattributepolicy_id= f'{JEV_MEMORY_RERANK_POLICY}:{config.model}'Functions
constructor__init__(config, client=None, *, protection=None) -> NoneparamconfigJevRerankConfigparamclienthttpx2.AsyncClient | None= NoneparamprotectionInferenceProtectionConfig | None= NoneReturns
Nonefuncaclose() -> NoneClose an internally created client; injected clients remain caller-owned.
Returns
Nonefuncrerank(query, candidates, limit) -> MemoryRerankDecisionReturn unique original ranks only after every response is validated.
paramquerystrparamcandidatestuple[MemoryRerankText, ...]paramlimitintReturns
powercontext.builtin.artifacts.memory.reranking.MemoryRerankDecision
