pgvector-haystack 3.4.0__py3-none-any.whl → 5.2.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.
@@ -57,6 +57,9 @@ def _from_pg_to_haystack_documents(documents: List[Dict[str, Any]]) -> List[Docu
57
57
  haystack_dict["embedding"] = document["embedding"].tolist()
58
58
  else: # halfvec
59
59
  haystack_dict["embedding"] = document["embedding"].to_list()
60
+ # Document.from_dict expects the meta field to be a a dict or not be present (not None)
61
+ if "meta" in haystack_dict and haystack_dict["meta"] is None:
62
+ haystack_dict.pop("meta")
60
63
 
61
64
  haystack_document = Document.from_dict(haystack_dict)
62
65
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pgvector-haystack
3
- Version: 3.4.0
3
+ Version: 5.2.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
@@ -4,10 +4,10 @@ haystack_integrations/components/retrievers/pgvector/embedding_retriever.py,sha2
4
4
  haystack_integrations/components/retrievers/pgvector/keyword_retriever.py,sha256=aW1mKTemwGqiXw6uIvd6Z5Zot_4dWSANwmpnI5em3qk,6842
5
5
  haystack_integrations/document_stores/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
6
  haystack_integrations/document_stores/pgvector/__init__.py,sha256=Ge-7ggarfr3x8UqNdFHUuFGiu52u49sOVe3l16WEwZU,197
7
- haystack_integrations/document_stores/pgvector/converters.py,sha256=TQ85iX3IGkcAEo_WnnwvZl7q9RYwmZBoXXQHKWejQu0,2733
7
+ haystack_integrations/document_stores/pgvector/converters.py,sha256=9ORG_Yb8Ss4eGGJB9ZGaDE25z89rLAh3ZisKwRww1bw,2937
8
8
  haystack_integrations/document_stores/pgvector/document_store.py,sha256=hztkxq4EM41okcaIQeTOT5GnbYeHr8Yjluebxfmgnpc,49763
9
9
  haystack_integrations/document_stores/pgvector/filters.py,sha256=jYdoXJZhAn3hNZTnx1x8K5Ok2LZzh-GB4hOhk6r7ZPk,9021
10
- pgvector_haystack-3.4.0.dist-info/METADATA,sha256=YRAC54zefIgzFdeLwFH-KFilCgRIZ4h_vVeVhQJ_1Q0,2187
11
- pgvector_haystack-3.4.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
12
- pgvector_haystack-3.4.0.dist-info/licenses/LICENSE.txt,sha256=B05uMshqTA74s-0ltyHKI6yoPfJ3zYgQbvcXfDVGFf8,10280
13
- pgvector_haystack-3.4.0.dist-info/RECORD,,
10
+ pgvector_haystack-5.2.0.dist-info/METADATA,sha256=WQpcPn67Vuy3xKI4Cz2VZ4NKBtQ1Zh0z97_fsr-ZTuQ,2187
11
+ pgvector_haystack-5.2.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
12
+ pgvector_haystack-5.2.0.dist-info/licenses/LICENSE.txt,sha256=B05uMshqTA74s-0ltyHKI6yoPfJ3zYgQbvcXfDVGFf8,10280
13
+ pgvector_haystack-5.2.0.dist-info/RECORD,,