PowercontextBuiltinArtifactsmemoryjev_reranking

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
= True
attributepolicy_id
= f'{JEV_MEMORY_RERANK_POLICY}:{config.model}'

Functions

constructor__init__(config, client=None, *, protection=None) -> None
paramconfigJevRerankConfig
paramclienthttpx2.AsyncClient | None
= None
paramprotectionInferenceProtectionConfig | None
= None

Returns

None
funcaclose() -> None

Close an internally created client; injected clients remain caller-owned.

Returns

None
funcrerank(query, candidates, limit) -> MemoryRerankDecision

Return unique original ranks only after every response is validated.

paramquerystr
paramcandidatestuple[MemoryRerankText, ...]
paramlimitint

Returns

powercontext.builtin.artifacts.memory.reranking.MemoryRerankDecision

On this page