Crate agentroot_core

Crate agentroot_core 

Source
Expand description

Agentroot Core Library

Core functionality for the agentroot local markdown search engine.

§Features

  • SQLite FTS5 full-text search with BM25 scoring
  • Vector similarity search via sqlite-vec
  • Hybrid search with Reciprocal Rank Fusion (RRF)
  • LLM-powered query expansion and reranking
  • Content-addressable storage with SHA-256

Re-exports§

pub use config::CollectionConfig;
pub use config::Config;
pub use config::LLMServiceConfig;
pub use db::Database;
pub use db::MetadataBuilder;
pub use db::MetadataFilter;
pub use db::MetadataValue;
pub use db::UserMetadata;
pub use error::AgentRootError;
pub use error::Error;
pub use error::Result;
pub use index::chunk_semantic;
pub use index::ChunkType;
pub use index::SemanticChunk;
pub use index::SemanticChunker;
pub use llm::ChatMessage;
pub use llm::DocumentMetadata;
pub use llm::Embedder;
pub use llm::HttpEmbedder;
pub use llm::HttpMetadataGenerator;
pub use llm::HttpQueryParser;
pub use llm::LLMClient;
pub use llm::LlamaEmbedder;
pub use llm::LlamaMetadataGenerator;
pub use llm::MetadataContext;
pub use llm::MetadataFilterHint;
pub use llm::MetadataGenerator;
pub use llm::MetricsSnapshot;
pub use llm::ParsedQuery;
pub use llm::QueryParser;
pub use llm::SearchType;
pub use llm::TemporalFilter;
pub use llm::VLLMClient;
pub use llm::DEFAULT_EMBED_MODEL;
pub use llm::DEFAULT_METADATA_MODEL;
pub use providers::CSVProvider;
pub use providers::FileProvider;
pub use providers::GitHubProvider;
pub use providers::JSONProvider;
pub use providers::PDFProvider;
pub use providers::ProviderConfig;
pub use providers::ProviderRegistry;
pub use providers::SQLProvider;
pub use providers::SourceItem;
pub use providers::SourceProvider;
pub use providers::URLProvider;
pub use search::SearchOptions;
pub use search::SearchResult;
pub use search::SearchSource;

Modules§

config
Configuration management
db
Database layer for agentroot
error
Error types for agentroot
index
Indexing pipeline
llm
LLM integration
providers
Source provider abstraction
search
Search engine module

Constants§

CACHE_DIR_NAME
Default cache directory name
CONFIG_DIR_NAME
Default config directory name
VIRTUAL_PATH_PREFIX
Virtual path prefix for agentroot URIs