feat: implement extraction step (#31) #119
Reference in New Issue
Block a user
Delete Branch "feature/issue-31-extraction-step"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Implements post-retrieval extraction step for the Memory Service's
QueryMemorypipeline. After the 4-stage retrieval returns candidates, an LLM call via Model Gateway'sInferenceRPC extracts the most relevant segment from each candidate's corpus.Key changes
skip_extractionfield toQueryMemoryRequestandextraction_confidencefield toQueryMemoryResponseextraction/module:ExtractionClientwrapping Model GatewayInferenceRPC, prompt builder/parser inprompt.rsExtractionConfiginconfig.rswithenabled,max_tokens,temperaturefieldsquery_memoryhandler runs extraction on pipeline results unless disabled by config or per-request toggleQuality gates
Files
extraction/mod.rs,extraction/prompt.rs,issue-031.mdmemory.proto,config.rs,service.rs,main.rs,lib.rs,_index.mdCloses #31 | Plan:
implementation-plans/issue-031.md8471c5b19fto131eac99f7