pgvector-haystack 1.2.1__py3-none-any.whl → 1.3.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- haystack_integrations/document_stores/pgvector/filters.py +16 -0
- {pgvector_haystack-1.2.1.dist-info → pgvector_haystack-1.3.0.dist-info}/METADATA +1 -1
- {pgvector_haystack-1.2.1.dist-info → pgvector_haystack-1.3.0.dist-info}/RECORD +5 -5
- {pgvector_haystack-1.2.1.dist-info → pgvector_haystack-1.3.0.dist-info}/WHEEL +0 -0
- {pgvector_haystack-1.2.1.dist-info → pgvector_haystack-1.3.0.dist-info}/licenses/LICENSE.txt +0 -0
|
@@ -232,6 +232,20 @@ def _in(field: str, value: Any) -> Tuple[str, List]:
|
|
|
232
232
|
return f"{field} = ANY(%s)", [value]
|
|
233
233
|
|
|
234
234
|
|
|
235
|
+
def _like(field: str, value: Any) -> Tuple[str, Any]:
|
|
236
|
+
if not isinstance(value, str):
|
|
237
|
+
msg = f"{field}'s value must be a str when using 'LIKE' "
|
|
238
|
+
raise FilterError(msg)
|
|
239
|
+
return f"{field} LIKE %s", value
|
|
240
|
+
|
|
241
|
+
|
|
242
|
+
def _not_like(field: str, value: Any) -> Tuple[str, Any]:
|
|
243
|
+
if not isinstance(value, str):
|
|
244
|
+
msg = f"{field}'s value must be a str when using 'LIKE' "
|
|
245
|
+
raise FilterError(msg)
|
|
246
|
+
return f"{field} NOT LIKE %s", value
|
|
247
|
+
|
|
248
|
+
|
|
235
249
|
COMPARISON_OPERATORS = {
|
|
236
250
|
"==": _equal,
|
|
237
251
|
"!=": _not_equal,
|
|
@@ -241,4 +255,6 @@ COMPARISON_OPERATORS = {
|
|
|
241
255
|
"<=": _less_than_equal,
|
|
242
256
|
"in": _in,
|
|
243
257
|
"not in": _not_in,
|
|
258
|
+
"like": _like,
|
|
259
|
+
"not like": _not_like,
|
|
244
260
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pgvector-haystack
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.3.0
|
|
4
4
|
Summary: An integration of pgvector (vector search extension for Postgres) with Haystack
|
|
5
5
|
Project-URL: Source, https://github.com/deepset-ai/haystack-core-integrations
|
|
6
6
|
Project-URL: Documentation, https://github.com/deepset-ai/haystack-core-integrations/blob/main/integrations/pgvector/README.md
|
|
@@ -3,8 +3,8 @@ haystack_integrations/components/retrievers/pgvector/embedding_retriever.py,sha2
|
|
|
3
3
|
haystack_integrations/components/retrievers/pgvector/keyword_retriever.py,sha256=SYHqjTkDczobYZ2qq0z8yS9p_g8aINnzwA5AN_nKdHI,5632
|
|
4
4
|
haystack_integrations/document_stores/pgvector/__init__.py,sha256=Ge-7ggarfr3x8UqNdFHUuFGiu52u49sOVe3l16WEwZU,197
|
|
5
5
|
haystack_integrations/document_stores/pgvector/document_store.py,sha256=Ni9Cg9sXdsVBhuTNFhtSbJMkMNYORAlYLqcKM1lR96M,31440
|
|
6
|
-
haystack_integrations/document_stores/pgvector/filters.py,sha256=
|
|
7
|
-
pgvector_haystack-1.
|
|
8
|
-
pgvector_haystack-1.
|
|
9
|
-
pgvector_haystack-1.
|
|
10
|
-
pgvector_haystack-1.
|
|
6
|
+
haystack_integrations/document_stores/pgvector/filters.py,sha256=rBRgDFXMSElRDOtiBkkHlheDV445HVGl-ufXRYKQaXs,8716
|
|
7
|
+
pgvector_haystack-1.3.0.dist-info/METADATA,sha256=QuGnYE1syuoWC_L9-yL1Ew5j6mMl03hfHUXG_6p5PRs,2226
|
|
8
|
+
pgvector_haystack-1.3.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
9
|
+
pgvector_haystack-1.3.0.dist-info/licenses/LICENSE.txt,sha256=B05uMshqTA74s-0ltyHKI6yoPfJ3zYgQbvcXfDVGFf8,10280
|
|
10
|
+
pgvector_haystack-1.3.0.dist-info/RECORD,,
|
|
File without changes
|
{pgvector_haystack-1.2.1.dist-info → pgvector_haystack-1.3.0.dist-info}/licenses/LICENSE.txt
RENAMED
|
File without changes
|