Skip to main content

remembrall_core/
lib.rs

1pub mod config;
2pub mod embed;
3pub mod error;
4pub mod memory;
5pub mod graph;
6pub mod indexer;
7pub mod parser;
8pub mod search;
9pub mod ingest;
10
11/// Synchronously embed a single text using a blocking thread.
12/// Used by test harnesses that need to generate query embeddings from async contexts.
13pub fn tokio_block_on_embed(
14    embedder: &dyn embed::Embedder,
15    text: &str,
16) -> error::Result<Vec<f32>> {
17    embedder.embed(text)
18}