View Source Qdrant (Qdrant v0.0.8)
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.
Retrieve full information of single point by id.
Retrieve multiple points by specified IDs
Returns a list of all collections.
Search for points in the given collection. Retrieve closest points based on vector similarity and given filtering conditions.
Perform insert + updates on points. If point with given ID already exists - it will be overwritten.
Link to this section 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:
%{
vectors: %{
size: 42,
distance: "Cosine"
}
}
For full documentation check: Qdrant Create Collection
Deletes a collection with the given name.
Retrieve full information of single point by id.
Example:
Qdrant.get_point("collection_name", 1)
Retrieve multiple points by specified IDs
Example:
body = %{
ids: [1, 2, 3],
with_payload: true
}
Qdrant.get_points("collection_name", body)
Returns a list of all collections.
Search for points in the given collection. Retrieve closest points based on vector similarity and given filtering conditions.
Parameters:
collection_name
- name of the collection to search inbody
- search bodyconsistency
- Define read consistency guarantees for the operation
Body must be a map with the key limit
and vector
, example:
%{
vector: vector,
limit: 3,
with_payload: true
}
Example:
body = %{
vector: vector,
limit: 3,
with_payload: true
}
Qdrant.search_points("collection_name", body)
upsert_point(collection_name, body, wait \\ false, ordering \\ nil)
View SourcePerform 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