speaky 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/speaky/vectorstore_qdrant.rb +6 -0
- data/lib/speaky/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3dea3c0900c9679d76d464ded63bc6c3d8cfad6d03da8661ad19b1013779b255
|
4
|
+
data.tar.gz: 62858d2b9e755c8c56a18b34d0a5651c8dcdb5687b15b1294d1a3c48986a4176
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 304614f14107c1a2effe210d1d00f599fab93ce6f1a086d09f398b0f7b42b0b129b95d585f3a6fccb36b9d3a0cee797342365634392ee15430ade4e3ccbf2aca
|
7
|
+
data.tar.gz: '01229a40b984e5165e8ed669df1d94c8923ddc1f1b42a02ff3557215b6301531389c44e1a744092785fb1312842b498c7160c53888a7b5b640a587d677986e8c'
|
@@ -40,6 +40,7 @@ module Speaky
|
|
40
40
|
)
|
41
41
|
|
42
42
|
if !points_upsert || points_upsert.dig('status') != 'ok'
|
43
|
+
Rails.logger.error(points_upsert)
|
43
44
|
raise 'Failed to add vector'
|
44
45
|
end
|
45
46
|
|
@@ -53,6 +54,7 @@ module Speaky
|
|
53
54
|
)
|
54
55
|
|
55
56
|
if !points_delete || points_delete.dig('status') != 'ok'
|
57
|
+
Rails.logger.error(points_delete)
|
56
58
|
raise 'Failed to remove vector'
|
57
59
|
end
|
58
60
|
|
@@ -71,6 +73,7 @@ module Speaky
|
|
71
73
|
)
|
72
74
|
|
73
75
|
if !points_search || points_search.dig('status') != 'ok'
|
76
|
+
Rails.logger.error(points_search)
|
74
77
|
raise 'Failed to search vectors'
|
75
78
|
end
|
76
79
|
|
@@ -80,6 +83,7 @@ module Speaky
|
|
80
83
|
def reset
|
81
84
|
collections_delete = @client.collections.delete(collection_name: @config[:collection_name])
|
82
85
|
if !collections_delete || collections_delete.dig('status') != 'ok'
|
86
|
+
Rails.logger.error(collections_delete)
|
83
87
|
raise 'Failed to delete collection'
|
84
88
|
end
|
85
89
|
|
@@ -99,6 +103,7 @@ module Speaky
|
|
99
103
|
}
|
100
104
|
)
|
101
105
|
if !collections_create || collections_create.dig('status') != 'ok'
|
106
|
+
Rails.logger.error(collections_create)
|
102
107
|
raise 'Failed to create collection'
|
103
108
|
end
|
104
109
|
end
|
@@ -106,6 +111,7 @@ module Speaky
|
|
106
111
|
# create index for field "id" in collection
|
107
112
|
collections_create_index = @client.collections.create_index(collection_name: @config[:collection_name], field_name: 'id', field_schema: 'keyword')
|
108
113
|
if !collections_create_index || collections_create_index.dig('status') != 'ok'
|
114
|
+
Rails.logger.error(collections_create_index)
|
109
115
|
raise 'Failed to create index for field "id" on collection'
|
110
116
|
end
|
111
117
|
|
data/lib/speaky/version.rb
CHANGED