MCPcopy Create free account
hub / github.com/AI45Lab/Code / with_relevance

Method with_relevance

core/src/context/mod.rs:214–217  ·  view source on GitHub ↗

Set the relevance score

(mut self, score: f32)

Source from the content-addressed store, hash-verified

212
213 /// Set the relevance score
214 pub fn with_relevance(mut self, score: f32) -> Self {
215 self.relevance = score.clamp(0.0, 1.0);
216 self
217 }
218
219 /// Set the source URI
220 pub fn with_source(mut self, source: impl Into<String>) -> Self {

Calls

no outgoing calls