Expand description
Wire-compatible protocol for semantic model daemon.
This protocol is designed to be wire-compatible with xf’s daemon implementation, allowing both tools to share a daemon if both are installed.
Protocol uses MessagePack for efficient binary serialization over Unix Domain Sockets.
Structs§
- Decode
Error - Embed
Response - Response containing embeddings.
- Embedding
JobDetail - Detail for a single embedding job.
- Embedding
JobInfo - Status information for embedding jobs.
- Encode
Error - Error
Response - Error response from daemon.
- Framed
Message - Framed message wrapper for length-prefixed protocol.
- Health
Status - Health status of the daemon.
- Model
Info - Information about a loaded model.
- Rerank
Response - Response containing rerank scores.
- Status
Response - Daemon status response.
Enums§
- Error
Code - Error codes for daemon errors.
- Request
- Request types for the daemon protocol.
- Response
- Response types from the daemon.
Constants§
- PROTOCOL_
VERSION - Protocol version for compatibility checks. Both cass and xf must use the same version to share a daemon.
Functions§
- decode_
message - Decode a message from MessagePack bytes (without length prefix).
- default_
socket_ path - Default socket path (shared between cass and xf).
- encode_
message - Encode a message to MessagePack bytes with length prefix.