talon-core 0.4.2

Core retrieval engine for Talon: hybrid search (BM25 + semantic + reranker), indexing, and graph-aware ranking over markdown corpora.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use rusqlite::Connection;

use super::suggest::LinkSuggestion;
use super::{GraphSnapshot, build_missing_link_suggestions};
use crate::TalonError;

/// Builds deterministic missing-link suggestions.
///
/// # Errors
///
/// Returns [`TalonError::Sqlite`] when note content cannot be read.
pub fn build_link_suggestions(
    conn: &Connection,
    snapshot: &GraphSnapshot,
) -> Result<Vec<LinkSuggestion>, TalonError> {
    build_missing_link_suggestions(conn, snapshot)
}