Expand description
Haystack indexing and search orchestration for Terraphim AI.
This crate sits between the raw haystack integrations (Ripgrep, AtomicServer, ClickUp, Discourse, JMAP …) and the service layer. It owns:
- Indexer abstraction –
IndexMiddlewaretrait andsearch_haystacksfor parallel haystack queries - Thesaurus builders – converting source documents into automata-compatible JSON
- Command execution – sandboxed invocation of external tools
Each haystack service is registered via terraphim_config::ServiceType and
dispatched by indexer::search_haystacks at query time.
Re-exports§
pub use haystack::QueryRsHaystackIndexer;pub use indexer::search_haystacks;pub use indexer::RipgrepIndexer;
Modules§
- command
- haystack
- indexer
- thesaurus
- Logseq is a knowledge graph that uses Markdown files to store notes. This module provides a middleware for creating a Thesaurus from a Logseq haystack.
Enums§
- Error
- Errors produced by the middleware layer during indexing and search orchestration.
Type Aliases§
- Result
- Convenience alias for
Result<T, Error>used throughout this crate.