View Source Qdrant (Qdrant v0.0.6)

Documentation for Qdrant.

Link to this section Summary

Functions

Returns information about a collection with the given name.

Creates a collection with the given name and body. Body must be a map with the key vectors, example

Deletes a collection with the given name.

Returns a list of all collections.

Perform insert + updates on points. If point with given ID already exists - it will be overwritten.

Link to this section Functions

Link to this function

collection_info(collection_name)

View Source

Returns information about a collection with the given name.

Link to this function

create_collection(collection_name, body, timeout \\ nil)

View Source

Creates a collection with the given name and body. Body must be a map with the key vectors, example:

%{
  vectors: %{
    size: 42,
    distance: "Cosine"
  }
}

For full documentation check: Qdrant Create Collection

Link to this function

delete_collection(collection_name, timeout \\ nil)

View Source

Deletes a collection with the given name.

Returns a list of all collections.

Link to this function

upsert_point(collection_name, body, wait \\ false, ordering \\ nil)

View Source

Perform insert + updates on points. If point with given ID already exists - it will be overwritten.

Body must be a map with the key points or batch, example:

%{
  points: [
    %{
      id: 1,
      vector: vector1
    },
    %{
      id: 2,
      vector: vector2
    }
  ]
}

Or batch:

%{
  batch: %{
    ids: [1, 2],
    vectors: [vector1, vector2]
  }
}

For full documentation check: Qdrant Upsert Points