memvid-core exposes structured request/response types for retrieval:Documentation Index
Fetch the complete documentation index at: https://docs.memvid.com/llms.txt
Use this file to discover all available pages before exploring further.
Memvid::search(SearchRequest)performs lexical retrieval and returns aSearchResponsewith the selectedengineMemvid::ask(AskRequest, Option<&impl VecEmbedder>)runs retrieval + optional synthesis (setcontext_only: trueto only fetch context)Memvid::vec_search_with_embedding(...)performs pure vector search when you already have a query embedding (and validates dimensions)
search() and ask() require the lex crate feature (enabled by default). For semantic-only or hybrid ranking, pass a VecEmbedder implementation (or use vec_search_with_embedding with a precomputed query vector).
Permission-Aware Retrieval (ACL)
Useacl_context + acl_enforcement_mode to enforce tenant isolation and RBAC at retrieval time.
See Permission-Aware Retrieval (ACL).
Tip: If you want to plug in an LLM, useAskResponse.retrieval.contextas the prompt context and keepcontext_only: truein the core call.