PowercontextBuiltinArtifactsmemoryreranking

LLMMemoryReranker

Use one structured listwise generation request to select Memory hits.

Attributes

attributepolicy_id
= MEMORY_RERANK_INSTRUCTIONS_VERSION

Functions

constructor__init__(generator) -> None
paramgeneratorStructuredGenerator[MemoryRerankInput, MemoryRerankOutput]

Returns

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

Generate and normalize a sparse selection from the coarse ranks.

paramquerystr
paramcandidatestuple[MemoryHit, ...]
paramlimitint

Returns

powercontext.builtin.artifacts.memory.reranking.MemoryRerankDecision

On this page