Skip to content

Commit 3915bff

Browse files
committed
Update some comments to follow the recent API version
1 parent bbb6dd8 commit 3915bff

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

crates/cortexadb-core/src/facade.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -764,11 +764,11 @@ mod tests {
764764
db.compact().expect("compact must not fail");
765765
}
766766

767-
// ----- ask_in_collection: sparse collection over-fetch regression -----
767+
// ----- search_in_collection: sparse collection over-fetch regression -----
768768

769769
#[test]
770770
fn test_search_in_collection_finds_entry_in_sparse_collection() {
771-
// Regression: before the 4× fix, ask_in_collection returned empty results when the
771+
// Regression: before the 4× fix, search_in_collection returned empty results when the
772772
// target collection had far fewer entries than top_k * candidate_multiplier entries globally.
773773
let temp = TempDir::new().unwrap();
774774
let path = temp.path().join("testdb");
@@ -783,7 +783,7 @@ mod tests {
783783
let id_a = db.add_in_collection("ns_sparse", vec![1.0, 0.0, 0.0], None).unwrap();
784784
let id_b = db.add_in_collection("ns_sparse", vec![0.9, 0.1, 0.0], None).unwrap();
785785

786-
// Ask for top-2 in ns_sparse — both must be returned.
786+
// Search for top-2 in ns_sparse — both must be returned.
787787
let hits = db.search_in_collection("ns_sparse", vec![1.0, 0.0, 0.0], 2, None).unwrap();
788788
let hit_ids: Vec<u64> = hits.iter().map(|h| h.id).collect();
789789
assert!(

examples/rust/basic_usage.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ Content under heading 3.
165165
println!(" Connected: {} -> {} -> {}", id1, id2, id3);
166166

167167
// -----------------------------------------------------------
168-
// 7. Ask (query text -> helper embedding)
168+
// 7. Search (query embedding -> top-k results)
169169
// -----------------------------------------------------------
170170
println!("\n[6] Querying memories...");
171171
let query = "Where does the user live?";

0 commit comments

Comments
 (0)