Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions lib/qdrant/collections.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ def get(collection_name:)
def create(
collection_name:,
vectors:,
sparse_vectors: nil,
shard_number: nil,
replication_factor: nil,
write_consistency_factor: nil,
Expand All @@ -33,6 +34,7 @@ def create(
response = client.connection.put("#{PATH}/#{collection_name}") do |req|
req.body = {}
req.body["vectors"] = vectors
req.body["sparse_vectors"] = sparse_vectors unless sparse_vectors.nil?
req.body["shard_number"] = shard_number unless shard_number.nil?
req.body["replication_factor"] = replication_factor unless replication_factor.nil?
req.body["write_consistency_factor"] = write_consistency_factor unless write_consistency_factor.nil?
Expand Down
Loading