pub fn encode_collection_vector_key(
collection_id: CollectionId,
entity_id: EntityId,
vector_name: &str,
) -> Vec<u8> ⓘExpand description
Encode a key for a collection vector.
Key format: [PREFIX_COLLECTION_VECTOR][collection_id][entity_id][vector_name_hash]
This format enables:
- Fast lookup of a specific vector by (collection, entity, name)
- Prefix scan for all vectors of an entity within a collection
- Ordered iteration within each collection