Brain Docs

Reference

TypeScript SDKInstallationHTTP clientWire client
whoamicapabilitiesping
ErrorsRetriesPagination
Brain/Docs
✦ ASKBrain on GitHubDashboard
TypeScript 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(): Promise<Capabilities>
Handshake credentialstable
capabilities(): Promise<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.

llmExtractorbooleanalways

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

classifierExtractorbooleanalways

Whether the classifier extractor is enabled.

patternExtractorbooleanalways

Whether the pattern extractor is enabled.

schemaNamespacesstring[]always

Which schema namespaces this shard serves.

vectorDimintegeralways

The embedding dimension. This is the number encodeVector 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
encodeVectorPolicies

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