Add local n-gram near match for OKF agent-kb reuse.
Sparse bigram cosine closes near-duplicate goal fragmentation; soft_match parents now judge ranked scored candidates instead of a flat task list. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
f240bdf156
commit
ab8ea8438f
9 files changed
+427
-88
No files matched your search
@@ -1432,6 +1432,27 @@ list-ok",
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn ext_agent_kb_near() {
|
||||
let status = Command::new("cargo")
|
||||
.args(["build", "-p", "marqdo_plugin_agent"])
|
||||
.current_dir(env!("CARGO_MANIFEST_DIR"))
|
||||
.status()
|
||||
.expect("build agent plugin");
|
||||
assert!(status.success(), "failed to build marqdo_plugin_agent");
|
||||
assert_out(
|
||||
"tests/ext/agent-kb-near.mq.md",
|
||||
"promoted
|
||||
near-ok
|
||||
near
|
||||
same-slug
|
||||
off-miss
|
||||
neg-miss
|
||||
rank-ok
|
||||
prompt-score-ok",
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn ext_agent_soft_match() {
|
||||
assert_out(
|
||||
|
||||
Reference in new issue
Block a user