Repository: qdrant/qdrant
File: lib/api/src/grpc/proto/collections.proto (Protocol Buffers)

Code before:
    GeoIndexParams geo_index_params = 5;
    // Parameters for text index
    TextIndexParams text_index_params = 1;
    // Parameters for bool index
    BoolIndexParams bool_index_params = 6;
    // Parameters for datetime index
    DatetimeIndexParams datetime_index_params = 7;
    // Parameters for uuid index
    UuidIndexParams uuid_index_params = 8;
  }
}

message PayloadSchemaInfo {
  // Field data type
  PayloadSchemaType data_type = 1;
  // Field index parameters
  optional PayloadIndexParams params = 2;
  // Number of points indexed within this field
  optional uint64 points = 3;
}

message UpdateQueueInfo {
    // Number of elements in the queue
    uint64 length = 1;
    // last operation sequence number processed
    optional uint64 last_applied_seq = 2;
}

message CollectionInfo {
  // operating condition of the collection
  CollectionStatus status = 1;
  // status of collection optimizers
  OptimizerStatus optimizer_status = 2;
  // Deprecated
  reserved 3;
  // Number of independent segments
  uint64 segments_count = 4;
  // Deprecated
  reserved 5;
  // Deprecated
  reserved 6;
  // Configuration
  CollectionConfig config = 7;
  // Collection data types
  map<string, PayloadSchemaInfo> payload_schema = 8;
  // Approximate number of points in the collection
  optional uint64 points_count = 9;
  // Approximate number of indexed vectors in the collection.
  optional uint64 indexed_vectors_count = 10;
  // Warnings related to the collection
  repeated CollectionWarning warnings = 11;

Review comment (suggestion):
Nit. I propose to rename this field. Because it's not exactly the last applied seq. For instance, if the user performs updates and restart qdrant, the loaded value will be less than the real last applied seq num.
Not sure which name fits better. maybe `last_relaxed_applied_seq`.
Because I dont have something better, I wont block merge because of this thread

Code after:
    GeoIndexParams geo_index_params = 5;
    // Parameters for text index
    TextIndexParams text_index_params = 1;
    // Parameters for bool index
    BoolIndexParams bool_index_params = 6;
    // Parameters for datetime index
    DatetimeIndexParams datetime_index_params = 7;
    // Parameters for uuid index
    UuidIndexParams uuid_index_params = 8;
  }
}

message PayloadSchemaInfo {
  // Field data type
  PayloadSchemaType data_type = 1;
  // Field index parameters
  optional PayloadIndexParams params = 2;
  // Number of points indexed within this field
  optional uint64 points = 3;
}

message UpdateQueueInfo {
    // Number of elements in the queue
    uint64 length = 1;
    // last operation number processed
    optional uint64 op_num = 2;
}

message CollectionInfo {
  // operating condition of the collection
  CollectionStatus status = 1;
  // status of collection optimizers
  OptimizerStatus optimizer_status = 2;
  // Deprecated
  reserved 3;
  // Number of independent segments
  uint64 segments_count = 4;
  // Deprecated
  reserved 5;
  // Deprecated
  reserved 6;
  // Configuration
  CollectionConfig config = 7;
  // Collection data types
  map<string, PayloadSchemaInfo> payload_schema = 8;
  // Approximate number of points in the collection
  optional uint64 points_count = 9;
  // Approximate number of indexed vectors in the collection.
  optional uint64 indexed_vectors_count = 10;
  // Warnings related to the collection
  repeated CollectionWarning warnings = 11;