We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 78719ab commit 137f289Copy full SHA for 137f289
lib/qdrant/collections.rb
@@ -20,6 +20,7 @@ def get(collection_name:)
20
def create(
21
collection_name:,
22
vectors:,
23
+ sparse_vectors: nil,
24
shard_number: nil,
25
replication_factor: nil,
26
write_consistency_factor: nil,
@@ -33,6 +34,7 @@ def create(
33
34
response = client.connection.put("#{PATH}/#{collection_name}") do |req|
35
req.body = {}
36
req.body["vectors"] = vectors
37
+ req.body["sparse_vectors"] = sparse_vectors unless sparse_vectors.nil?
38
req.body["shard_number"] = shard_number unless shard_number.nil?
39
req.body["replication_factor"] = replication_factor unless replication_factor.nil?
40
req.body["write_consistency_factor"] = write_consistency_factor unless write_consistency_factor.nil?
0 commit comments