capabilities
Which optional capabilities are enabled on this shard, and the vector dimension you must match.
async fn capabilities(&self) -> Result<Capabilities, BrainHttpError>async fn capabilities(&self) -> Result<GetCapabilitiesResponse>Returns
rerankbooleanalwaysWhether the cross-encoder reranker is enabled. It ships disabled, so false is the normal answer, and an opt-in rerank request against a shard with it off fails CapabilityNotEnabled rather than quietly falling back.
llm_extractorbooleanalwaysWhether LLM-backed extraction is available. Needs a registered provider credential — see put_llm_credential.
classifier_extractorbooleanalwaysWhether the classifier extractor is enabled.
pattern_extractorbooleanalwaysWhether the pattern extractor is enabled.
schema_namespacesstring[]alwaysWhich schema namespaces this shard serves.
vector_dimintegeralwaysThe embedding dimension. This is the number encode_vector must match; read it rather than hardcoding it.
A disabled capability is always observable as disabled
Brain never silently degrades an optional capability. If rerank is
false, asking for reranking is an error — not a request that quietly
returns unranked results. That is what makes this verb worth calling at
startup instead of discovering the answer from a failure.
Was this page helpful?