Brain Docs

Reference

Python SDKInstallationHTTP clientWire clientSync vs async
whoamicapabilitiesping
ErrorsRetriesPagination
Brain/Docs
✦ ASKBrain on GitHubDashboard
Python SDKIntrospectioncapabilities

capabilities

Which optional capabilities are enabled on this shard, and the vector dimension you must match.

PURPOSE

What the shard can do. Call it at startup: it is how a client discovers the vector dimension and which optional capabilities are compiled in and enabled.

GET/v1/capabilitiesBearer API keystable
capabilities() -> Capabilities
Handshake credentialstable
capabilities() -> GetCapabilitiesResponse

Returns

FieldTypePresence
rerankbooleanalways

Whether 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_extractorbooleanalways

Whether LLM-backed extraction is available. Needs a registered provider credential — see put_llm_credential.

classifier_extractorbooleanalways

Whether the classifier extractor is enabled.

pattern_extractorbooleanalways

Whether the pattern extractor is enabled.

schema_namespacesstring[]always

Which schema namespaces this shard serves.

vector_dimintegeralways

The 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.

See also
encode_vectorPolicies

Was this page helpful?

whoami

The namespace, space and permissions the credential carries — the cheapest round trip that proves a key.

ping

A connection-level liveness check that works while streams are in flight.

On this page

Returns
Suggest an editOpen in Playground