class Qdrant::Api::Collections

Defined in:

qdrant-api/api/collections.cr
qdrant-api/client.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(conn : Connection) #

[View source]

Instance Method Detail

def aliases(change_aliases_operation : Qdrant::Api::ChangeAliasesOperation | Nil = nil, *, timeout : Int32 | Nil = nil) : Response(Qdrant::Api::CreateShardKey200Response) #

Update aliases of the collections


[View source]
def aliases_get(collection_name : String) : Response(Qdrant::Api::GetCollectionAliases200Response) #

List aliases for collection Get list of all aliases for a collection


[View source]
def cluster(collection_name : String) : Response(Qdrant::Api::CollectionClusterInfo200Response) #

Collection cluster info Get cluster information for a collection


[View source]
def cluster_post(collection_name : String, cluster_operations : Qdrant::Api::ClusterOperations | Nil = nil, *, timeout : Int32 | Nil = nil) : Response(Qdrant::Api::CreateShardKey200Response) #

Update collection cluster setup


[View source]
def delete(collection_name : String, *, timeout : Int32 | Nil = nil) : Response(Qdrant::Api::CreateShardKey200Response) #

Delete collection Drop collection and all associated data


[View source]
def exists(collection_name : String) : Response(Qdrant::Api::CollectionExists200Response) #

Check the existence of a collection Returns "true" if the given collection name exists, and "false" otherwise


[View source]
def facet(collection_name : String, facet_request : Qdrant::Api::FacetRequest | Nil = nil, *, consistency : Qdrant::Api::ReadConsistency | Nil = nil, timeout : Int32 | Nil = nil) : Response(Qdrant::Api::Facet200Response) #

Facet a payload key with a given filter. Count points that satisfy the given filter for each unique value of a payload key.


[View source]
def get(collection_name : String) : Response(Qdrant::Api::GetCollection200Response) #

Collection info Get detailed information about specified existing collection


[View source]
def index : Collections::Index #

[View source]

List collections Get list name of all existing collections


[View source]
def optimizations(collection_name : String, *, _with : String | Nil = nil, completed_limit : Int32 | Nil = nil) : Response(Qdrant::Api::GetOptimizations200Response) #

Get optimization progress Get progress of ongoing and completed optimizations for a collection


[View source]
def partial_update(collection_name : String, update_collection : Qdrant::Api::UpdateCollection | Nil = nil, *, timeout : Int32 | Nil = nil) : Response(Qdrant::Api::CreateShardKey200Response) #

Update collection parameters Update parameters of the existing collection


[View source]
def points : Collections::Points #

[View source]
def shards : Collections::Shards #

[View source]
def snapshots : Collections::Snapshots #

[View source]
def update(collection_name : String, create_collection : Qdrant::Api::CreateCollection | Nil = nil, *, timeout : Int32 | Nil = nil) : Response(Qdrant::Api::CreateShardKey200Response) #

Create collection Create new collection with given parameters


[View source]
def vectors : Collections::Vectors #

[View source]