cayu.knowledge.indexing
Public Cayu API. Definitions are grouped by their public source module, and definitions from private implementation modules appear on their package’s page; adding a symbol does not move existing links. The import shown at each entry is a supported public namespace. Read the Python API overview and install the required extra.
DEFAULT_KNOWLEDGE_EMBEDDING_WORK_RECORD_LIMIT
Section titled “DEFAULT_KNOWLEDGE_EMBEDDING_WORK_RECORD_LIMIT”from cayu.storage import DEFAULT_KNOWLEDGE_EMBEDDING_WORK_RECORD_LIMITDEFAULT_KNOWLEDGE_EMBEDDING_WORK_RECORD_LIMIT = 500Release source · Runtime guarantees · Capability guides
knowledge_chunk_embedding_identity
Section titled “knowledge_chunk_embedding_identity”from cayu.storage import knowledge_chunk_embedding_identityBuild the built-in canonical chunk-text embedding identity.
knowledge_chunk_embedding_identity(chunk: KnowledgeChunk, *, embedding_model: str, dimensions: int) -> KnowledgeEmbeddingIdentityRelease source · Runtime guarantees · Capability guides
KNOWLEDGE_CHUNK_TEXT_GENERATOR
Section titled “KNOWLEDGE_CHUNK_TEXT_GENERATOR”from cayu.storage import KNOWLEDGE_CHUNK_TEXT_GENERATORKNOWLEDGE_CHUNK_TEXT_GENERATOR = 'cayu:canonical-knowledge-chunk'Release source · Runtime guarantees · Capability guides
KNOWLEDGE_CHUNK_TEXT_GENERATOR_VERSION
Section titled “KNOWLEDGE_CHUNK_TEXT_GENERATOR_VERSION”from cayu.storage import KNOWLEDGE_CHUNK_TEXT_GENERATOR_VERSIONKNOWLEDGE_CHUNK_TEXT_GENERATOR_VERSION = '1'Release source · Runtime guarantees · Capability guides
KNOWLEDGE_CHUNK_TEXT_PREPROCESSING_VERSION
Section titled “KNOWLEDGE_CHUNK_TEXT_PREPROCESSING_VERSION”from cayu.storage import KNOWLEDGE_CHUNK_TEXT_PREPROCESSING_VERSIONKNOWLEDGE_CHUNK_TEXT_PREPROCESSING_VERSION = 'cayu:knowledge-chunk-text:v1'Release source · Runtime guarantees · Capability guides
KNOWLEDGE_CHUNK_TEXT_PROJECTION
Section titled “KNOWLEDGE_CHUNK_TEXT_PROJECTION”from cayu.storage import KNOWLEDGE_CHUNK_TEXT_PROJECTIONKNOWLEDGE_CHUNK_TEXT_PROJECTION = 'knowledge_chunk_text'Release source · Runtime guarantees · Capability guides
KNOWLEDGE_VECTOR_INDEX_REPRESENTATION_VERSION
Section titled “KNOWLEDGE_VECTOR_INDEX_REPRESENTATION_VERSION”from cayu.storage import KNOWLEDGE_VECTOR_INDEX_REPRESENTATION_VERSIONKNOWLEDGE_VECTOR_INDEX_REPRESENTATION_VERSION = 'float32-cosine-v1'Release source · Runtime guarantees · Capability guides
KnowledgeEmbeddingBackfillResult
Section titled “KnowledgeEmbeddingBackfillResult”from cayu.storage import KnowledgeEmbeddingBackfillResultPortable outcome from one bounded embedding repair/backfill pass.
Bases: BaseModel.
Fields and attributes
Section titled “Fields and attributes”Defaults below are source expressions; Field(...) includes schema/validation settings and default_factory creates a fresh value. Inherited declarations are included. Constructor behavior follows the model or dataclass shown in the bases/decorators.
| Name | Type | Default |
|---|---|---|
scanned_records |
int |
required |
indexed_records |
int |
required |
failed_records |
int |
required |
skipped_records |
int |
required |
limit |
int |
required |
refresh_existing |
bool |
required |
next_cursor |
str | None |
None |
validate_count (method)
Section titled “validate_count (method)”KnowledgeEmbeddingBackfillResult.validate_count(value: int, info) -> intvalidate_limit (method)
Section titled “validate_limit (method)”KnowledgeEmbeddingBackfillResult.validate_limit(value: int) -> intvalidate_refresh_existing (method)
Section titled “validate_refresh_existing (method)”KnowledgeEmbeddingBackfillResult.validate_refresh_existing(value) -> boolvalidate_next_cursor (method)
Section titled “validate_next_cursor (method)”KnowledgeEmbeddingBackfillResult.validate_next_cursor(value: str | None) -> str | Nonevalidate_partition (method)
Section titled “validate_partition (method)”KnowledgeEmbeddingBackfillResult.validate_partition() -> KnowledgeEmbeddingBackfillResultRelease source · Runtime guarantees · Capability guides
KnowledgeEmbeddingIdentity
Section titled “KnowledgeEmbeddingIdentity”from cayu.storage import KnowledgeEmbeddingIdentityComplete identity of one durable knowledge embedding projection.
Content hashes alone are not sufficient reuse keys. Comparable vectors must agree on the canonical revision, projected content, embedding space, the projection generator, preprocessing, and the stored index representation.
Bases: BaseModel.
Fields and attributes
Section titled “Fields and attributes”Defaults below are source expressions; Field(...) includes schema/validation settings and default_factory creates a fresh value. Inherited declarations are included. Constructor behavior follows the model or dataclass shown in the bases/decorators.
| Name | Type | Default |
|---|---|---|
entry_id |
str |
required |
entry_revision |
int |
required |
chunk_id |
str | None |
None |
projection_type |
str |
required |
projection_content_hash |
str |
required |
embedding_model |
str |
required |
dimensions |
int |
required |
preprocessing_version |
str |
required |
generator |
str |
required |
generator_version |
str |
required |
index_representation_version |
str |
required |
validate_entry_id (method)
Section titled “validate_entry_id (method)”KnowledgeEmbeddingIdentity.validate_entry_id(value: str) -> strvalidate_entry_revision (method)
Section titled “validate_entry_revision (method)”KnowledgeEmbeddingIdentity.validate_entry_revision(value: int) -> intvalidate_chunk_id (method)
Section titled “validate_chunk_id (method)”KnowledgeEmbeddingIdentity.validate_chunk_id(value: str | None) -> str | Nonevalidate_identity_component (method)
Section titled “validate_identity_component (method)”KnowledgeEmbeddingIdentity.validate_identity_component(value: str, info) -> strvalidate_dimensions (method)
Section titled “validate_dimensions (method)”KnowledgeEmbeddingIdentity.validate_dimensions(value: int) -> intRelease source · Runtime guarantees · Capability guides
KnowledgeEmbeddingProjection
Section titled “KnowledgeEmbeddingProjection”from cayu.storage import KnowledgeEmbeddingProjectionOne externally computed vector fenced to an exact pending projection attempt.
Bases: BaseModel.
Fields and attributes
Section titled “Fields and attributes”Defaults below are source expressions; Field(...) includes schema/validation settings and default_factory creates a fresh value. Inherited declarations are included. Constructor behavior follows the model or dataclass shown in the bases/decorators.
| Name | Type | Default |
|---|---|---|
identity |
KnowledgeEmbeddingIdentity |
required |
readiness_sequence |
int |
required |
attempt_id |
str |
required |
vector |
list[float] |
required |
copy_identity (method)
Section titled “copy_identity (method)”KnowledgeEmbeddingProjection.copy_identity(value: KnowledgeEmbeddingIdentity) -> KnowledgeEmbeddingIdentityvalidate_readiness_sequence (method)
Section titled “validate_readiness_sequence (method)”KnowledgeEmbeddingProjection.validate_readiness_sequence(value: int) -> intvalidate_attempt_id (method)
Section titled “validate_attempt_id (method)”KnowledgeEmbeddingProjection.validate_attempt_id(value: str) -> strcopy_vector (method)
Section titled “copy_vector (method)”KnowledgeEmbeddingProjection.copy_vector(value) -> list[float]validate_vector_dimensions (method)
Section titled “validate_vector_dimensions (method)”KnowledgeEmbeddingProjection.validate_vector_dimensions() -> KnowledgeEmbeddingProjectionRelease source · Runtime guarantees · Capability guides
KnowledgeEmbeddingProjectionConflict
Section titled “KnowledgeEmbeddingProjectionConflict”from cayu.storage import KnowledgeEmbeddingProjectionConflictA projection attempt was reused with a different immutable vector payload.
Bases: RuntimeError.
init (method)
Section titled “init (method)”KnowledgeEmbeddingProjectionConflict.__init__(reason: str) -> NoneRelease source · Runtime guarantees · Capability guides
KnowledgeEmbeddingProjectionWriteResult
Section titled “KnowledgeEmbeddingProjectionWriteResult”from cayu.storage import KnowledgeEmbeddingProjectionWriteResultAccepted identities from one bounded projection persistence request.
Bases: BaseModel.
Fields and attributes
Section titled “Fields and attributes”Defaults below are source expressions; Field(...) includes schema/validation settings and default_factory creates a fresh value. Inherited declarations are included. Constructor behavior follows the model or dataclass shown in the bases/decorators.
| Name | Type | Default |
|---|---|---|
submitted_records |
int |
required |
stored_identities |
list[KnowledgeEmbeddingIdentity] |
Field(default_factory=list) |
validate_submitted_records (method)
Section titled “validate_submitted_records (method)”KnowledgeEmbeddingProjectionWriteResult.validate_submitted_records(value: int) -> intcopy_stored_identities (method)
Section titled “copy_stored_identities (method)”KnowledgeEmbeddingProjectionWriteResult.copy_stored_identities(value) -> list[KnowledgeEmbeddingIdentity]validate_stored_partition (method)
Section titled “validate_stored_partition (method)”KnowledgeEmbeddingProjectionWriteResult.validate_stored_partition() -> KnowledgeEmbeddingProjectionWriteResultRelease source · Runtime guarantees · Capability guides
KnowledgeEmbeddingWorkerResult
Section titled “KnowledgeEmbeddingWorkerResult”from cayu.storage import KnowledgeEmbeddingWorkerResultBounded outcome from consuming canonical changes into one embedding index.
Bases: BaseModel.
Fields and attributes
Section titled “Fields and attributes”Defaults below are source expressions; Field(...) includes schema/validation settings and default_factory creates a fresh value. Inherited declarations are included. Constructor behavior follows the model or dataclass shown in the bases/decorators.
| Name | Type | Default |
|---|---|---|
consumer_id |
str |
required |
worker_id |
str |
required |
claimed_changes |
int |
required |
acknowledged_changes |
int |
required |
indexed_records |
int |
required |
failed_records |
int |
required |
removed_records |
int |
required |
limit |
int |
required |
processed_records |
int |
required |
record_limit |
int |
required |
validate_identity (method)
Section titled “validate_identity (method)”KnowledgeEmbeddingWorkerResult.validate_identity(value: str, info) -> strvalidate_count (method)
Section titled “validate_count (method)”KnowledgeEmbeddingWorkerResult.validate_count(value: int, info) -> intvalidate_limit (method)
Section titled “validate_limit (method)”KnowledgeEmbeddingWorkerResult.validate_limit(value: int) -> intvalidate_record_limit (method)
Section titled “validate_record_limit (method)”KnowledgeEmbeddingWorkerResult.validate_record_limit(value: int) -> intvalidate_claims (method)
Section titled “validate_claims (method)”KnowledgeEmbeddingWorkerResult.validate_claims() -> KnowledgeEmbeddingWorkerResultRelease source · Runtime guarantees · Capability guides
KnowledgeIndexCoverage
Section titled “KnowledgeIndexCoverage”from cayu.storage import KnowledgeIndexCoverageMachine-readable semantic-index coverage for one search projection.
Bases: BaseModel.
Fields and attributes
Section titled “Fields and attributes”Defaults below are source expressions; Field(...) includes schema/validation settings and default_factory creates a fresh value. Inherited declarations are included. Constructor behavior follows the model or dataclass shown in the bases/decorators.
| Name | Type | Default |
|---|---|---|
projection_type |
str |
required |
embedding_model |
str |
required |
dimensions |
int |
required |
preprocessing_version |
str |
required |
generator |
str |
required |
generator_version |
str |
required |
index_representation_version |
str |
required |
eligible_records |
int |
required |
ready_records |
int |
required |
pending_records |
int |
required |
failed_records |
int |
required |
high_water_sequence |
int |
required |
complete |
bool |
required |
validate_space_identity (method)
Section titled “validate_space_identity (method)”KnowledgeIndexCoverage.validate_space_identity(value: str, info) -> strvalidate_dimensions (method)
Section titled “validate_dimensions (method)”KnowledgeIndexCoverage.validate_dimensions(value: int) -> intvalidate_counts (method)
Section titled “validate_counts (method)”KnowledgeIndexCoverage.validate_counts(value: int, info) -> intvalidate_high_water_sequence (method)
Section titled “validate_high_water_sequence (method)”KnowledgeIndexCoverage.validate_high_water_sequence(value: int) -> intvalidate_complete (method)
Section titled “validate_complete (method)”KnowledgeIndexCoverage.validate_complete(value) -> boolvalidate_complete_partition (method)
Section titled “validate_complete_partition (method)”KnowledgeIndexCoverage.validate_complete_partition() -> KnowledgeIndexCoverageRelease source · Runtime guarantees · Capability guides
KnowledgeIndexReadiness
Section titled “KnowledgeIndexReadiness”from cayu.storage import KnowledgeIndexReadinessImmutable sequenced evidence of one derived-index state transition.
Bases: BaseModel.
Fields and attributes
Section titled “Fields and attributes”Defaults below are source expressions; Field(...) includes schema/validation settings and default_factory creates a fresh value. Inherited declarations are included. Constructor behavior follows the model or dataclass shown in the bases/decorators.
| Name | Type | Default |
|---|---|---|
sequence |
int |
required |
identity |
KnowledgeEmbeddingIdentity |
required |
state |
KnowledgeIndexState |
required |
attempt_id |
str |
required |
failure_code |
str | None |
None |
operation_id |
str |
required |
published_at |
datetime |
required |
validate_sequence (method)
Section titled “validate_sequence (method)”KnowledgeIndexReadiness.validate_sequence(value: int) -> intcopy_identity (method)
Section titled “copy_identity (method)”KnowledgeIndexReadiness.copy_identity(value: KnowledgeEmbeddingIdentity) -> KnowledgeEmbeddingIdentityvalidate_required_identity (method)
Section titled “validate_required_identity (method)”KnowledgeIndexReadiness.validate_required_identity(value: str, info) -> strvalidate_failure_code (method)
Section titled “validate_failure_code (method)”KnowledgeIndexReadiness.validate_failure_code(value: str | None) -> str | Nonevalidate_published_at (method)
Section titled “validate_published_at (method)”KnowledgeIndexReadiness.validate_published_at(value: datetime) -> datetimevalidate_failure_state (method)
Section titled “validate_failure_state (method)”KnowledgeIndexReadiness.validate_failure_state() -> KnowledgeIndexReadinessRelease source · Runtime guarantees · Capability guides
KnowledgeIndexReadinessBatch
Section titled “KnowledgeIndexReadinessBatch”from cayu.storage import KnowledgeIndexReadinessBatchBounded ordered readiness events through one captured high-water mark.
Bases: BaseModel.
Fields and attributes
Section titled “Fields and attributes”Defaults below are source expressions; Field(...) includes schema/validation settings and default_factory creates a fresh value. Inherited declarations are included. Constructor behavior follows the model or dataclass shown in the bases/decorators.
| Name | Type | Default |
|---|---|---|
readiness |
list[KnowledgeIndexReadiness] |
Field(default_factory=list) |
after_sequence |
int |
0 |
next_after_sequence |
int |
0 |
high_water_sequence |
int |
0 |
truncated |
bool |
False |
limit |
int |
required |
copy_readiness (method)
Section titled “copy_readiness (method)”KnowledgeIndexReadinessBatch.copy_readiness(value: list[KnowledgeIndexReadiness]) -> list[KnowledgeIndexReadiness]validate_sequences (method)
Section titled “validate_sequences (method)”KnowledgeIndexReadinessBatch.validate_sequences(value: int, info) -> intvalidate_limit (method)
Section titled “validate_limit (method)”KnowledgeIndexReadinessBatch.validate_limit(value: int) -> intvalidate_truncated (method)
Section titled “validate_truncated (method)”KnowledgeIndexReadinessBatch.validate_truncated(value) -> boolvalidate_page (method)
Section titled “validate_page (method)”KnowledgeIndexReadinessBatch.validate_page() -> KnowledgeIndexReadinessBatchRelease source · Runtime guarantees · Capability guides
KnowledgeIndexReadinessConflict
Section titled “KnowledgeIndexReadinessConflict”from cayu.storage import KnowledgeIndexReadinessConflictA readiness publication conflicts with its identity or sequence fence.
Bases: RuntimeError.
init (method)
Section titled “init (method)”KnowledgeIndexReadinessConflict.__init__(reason: str) -> NoneRelease source · Runtime guarantees · Capability guides
KnowledgeIndexReadinessUpdate
Section titled “KnowledgeIndexReadinessUpdate”from cayu.storage import KnowledgeIndexReadinessUpdateOne requested state transition for an exact embedding identity.
Bases: BaseModel.
Fields and attributes
Section titled “Fields and attributes”Defaults below are source expressions; Field(...) includes schema/validation settings and default_factory creates a fresh value. Inherited declarations are included. Constructor behavior follows the model or dataclass shown in the bases/decorators.
| Name | Type | Default |
|---|---|---|
identity |
KnowledgeEmbeddingIdentity |
required |
state |
KnowledgeIndexState |
required |
attempt_id |
str |
required |
failure_code |
str | None |
None |
copy_identity (method)
Section titled “copy_identity (method)”KnowledgeIndexReadinessUpdate.copy_identity(value: KnowledgeEmbeddingIdentity) -> KnowledgeEmbeddingIdentityvalidate_attempt_id (method)
Section titled “validate_attempt_id (method)”KnowledgeIndexReadinessUpdate.validate_attempt_id(value: str) -> strvalidate_failure_code (method)
Section titled “validate_failure_code (method)”KnowledgeIndexReadinessUpdate.validate_failure_code(value: str | None) -> str | Nonevalidate_failure_state (method)
Section titled “validate_failure_state (method)”KnowledgeIndexReadinessUpdate.validate_failure_state() -> KnowledgeIndexReadinessUpdateRelease source · Runtime guarantees · Capability guides
KnowledgeIndexState
Section titled “KnowledgeIndexState”from cayu.storage import KnowledgeIndexStatePublication state for one exact derived-index identity.
Bases: StrEnum.
Fields and attributes
Section titled “Fields and attributes”Defaults below are source expressions; Field(...) includes schema/validation settings and default_factory creates a fresh value. Inherited declarations are included. Constructor behavior follows the model or dataclass shown in the bases/decorators.
| Name | Type | Default |
|---|---|---|
PENDING |
class attribute |
'pending' |
READY |
class attribute |
'ready' |
FAILED |
class attribute |
'failed' |
Release source · Runtime guarantees · Capability guides
MAX_KNOWLEDGE_EMBEDDING_DIMENSIONS
Section titled “MAX_KNOWLEDGE_EMBEDDING_DIMENSIONS”from cayu.storage import MAX_KNOWLEDGE_EMBEDDING_DIMENSIONSMAX_KNOWLEDGE_EMBEDDING_DIMENSIONS = 2 ** 31 - 1Release source · Runtime guarantees · Capability guides
MAX_KNOWLEDGE_EMBEDDING_WORK_RECORD_LIMIT
Section titled “MAX_KNOWLEDGE_EMBEDDING_WORK_RECORD_LIMIT”from cayu.storage import MAX_KNOWLEDGE_EMBEDDING_WORK_RECORD_LIMITMAX_KNOWLEDGE_EMBEDDING_WORK_RECORD_LIMIT = 10000Release source · Runtime guarantees · Capability guides
MAX_KNOWLEDGE_INDEX_READINESS_LIMIT
Section titled “MAX_KNOWLEDGE_INDEX_READINESS_LIMIT”from cayu.storage import MAX_KNOWLEDGE_INDEX_READINESS_LIMITMAX_KNOWLEDGE_INDEX_READINESS_LIMIT = 1000