pgvector-haystack 5.2.0__tar.gz → 5.2.1__tar.gz
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.
- {pgvector_haystack-5.2.0 → pgvector_haystack-5.2.1}/CHANGELOG.md +10 -0
- {pgvector_haystack-5.2.0 → pgvector_haystack-5.2.1}/PKG-INFO +1 -1
- {pgvector_haystack-5.2.0 → pgvector_haystack-5.2.1}/examples/embedding_retrieval.py +1 -1
- {pgvector_haystack-5.2.0 → pgvector_haystack-5.2.1}/examples/hybrid_retrieval.py +1 -1
- {pgvector_haystack-5.2.0 → pgvector_haystack-5.2.1}/src/haystack_integrations/document_stores/pgvector/document_store.py +2 -0
- {pgvector_haystack-5.2.0 → pgvector_haystack-5.2.1}/tests/test_document_store.py +9 -0
- {pgvector_haystack-5.2.0 → pgvector_haystack-5.2.1}/tests/test_document_store_async.py +10 -0
- {pgvector_haystack-5.2.0 → pgvector_haystack-5.2.1}/.gitignore +0 -0
- {pgvector_haystack-5.2.0 → pgvector_haystack-5.2.1}/LICENSE.txt +0 -0
- {pgvector_haystack-5.2.0 → pgvector_haystack-5.2.1}/README.md +0 -0
- {pgvector_haystack-5.2.0 → pgvector_haystack-5.2.1}/pydoc/config.yml +0 -0
- {pgvector_haystack-5.2.0 → pgvector_haystack-5.2.1}/pyproject.toml +0 -0
- {pgvector_haystack-5.2.0 → pgvector_haystack-5.2.1}/src/haystack_integrations/components/retrievers/pgvector/__init__.py +0 -0
- {pgvector_haystack-5.2.0 → pgvector_haystack-5.2.1}/src/haystack_integrations/components/retrievers/pgvector/embedding_retriever.py +0 -0
- {pgvector_haystack-5.2.0 → pgvector_haystack-5.2.1}/src/haystack_integrations/components/retrievers/pgvector/keyword_retriever.py +0 -0
- {pgvector_haystack-5.2.0 → pgvector_haystack-5.2.1}/src/haystack_integrations/components/retrievers/py.typed +0 -0
- {pgvector_haystack-5.2.0 → pgvector_haystack-5.2.1}/src/haystack_integrations/document_stores/pgvector/__init__.py +0 -0
- {pgvector_haystack-5.2.0 → pgvector_haystack-5.2.1}/src/haystack_integrations/document_stores/pgvector/converters.py +0 -0
- {pgvector_haystack-5.2.0 → pgvector_haystack-5.2.1}/src/haystack_integrations/document_stores/pgvector/filters.py +0 -0
- {pgvector_haystack-5.2.0 → pgvector_haystack-5.2.1}/src/haystack_integrations/document_stores/py.typed +0 -0
- {pgvector_haystack-5.2.0 → pgvector_haystack-5.2.1}/tests/__init__.py +0 -0
- {pgvector_haystack-5.2.0 → pgvector_haystack-5.2.1}/tests/conftest.py +0 -0
- {pgvector_haystack-5.2.0 → pgvector_haystack-5.2.1}/tests/test_converters.py +0 -0
- {pgvector_haystack-5.2.0 → pgvector_haystack-5.2.1}/tests/test_filters.py +0 -0
- {pgvector_haystack-5.2.0 → pgvector_haystack-5.2.1}/tests/test_retrieval.py +0 -0
- {pgvector_haystack-5.2.0 → pgvector_haystack-5.2.1}/tests/test_retrieval_async.py +0 -0
- {pgvector_haystack-5.2.0 → pgvector_haystack-5.2.1}/tests/test_retrievers.py +0 -0
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [integrations/pgvector-v5.2.0] - 2025-06-26
|
|
4
|
+
|
|
5
|
+
Note: Version 5.2.0 was released by mistake.
|
|
6
|
+
It is functionally identical to version 3.4.1 and does not introduce any new features or changes.
|
|
7
|
+
|
|
8
|
+
### 🧹 Chores
|
|
9
|
+
|
|
10
|
+
- Remove black (#1985)
|
|
11
|
+
|
|
12
|
+
|
|
3
13
|
## [integrations/pgvector-v3.4.1] - 2025-06-20
|
|
4
14
|
|
|
5
15
|
### 🐛 Bug Fixes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pgvector-haystack
|
|
3
|
-
Version: 5.2.
|
|
3
|
+
Version: 5.2.1
|
|
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
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Before running this example, ensure you have PostgreSQL installed with the pgvector extension.
|
|
2
2
|
# For a quick setup using Docker:
|
|
3
3
|
# docker run -d -p 5432:5432 -e POSTGRES_USER=postgres -e POSTGRES_PASSWORD=postgres
|
|
4
|
-
# -e POSTGRES_DB=postgres
|
|
4
|
+
# -e POSTGRES_DB=postgres pgvector/pgvector:pg17
|
|
5
5
|
|
|
6
6
|
# Install required packages for this example, including pgvector-haystack and other libraries needed
|
|
7
7
|
# for Markdown conversion and embeddings generation. Use the following command:
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Before running this example, ensure you have PostgreSQL installed with the pgvector extension.
|
|
2
2
|
# For a quick setup using Docker:
|
|
3
3
|
# docker run -d -p 5432:5432 -e POSTGRES_USER=postgres -e POSTGRES_PASSWORD=postgres
|
|
4
|
-
# -e POSTGRES_DB=postgres
|
|
4
|
+
# -e POSTGRES_DB=postgres pgvector/pgvector:pg17
|
|
5
5
|
|
|
6
6
|
# Install required packages for this example, including pgvector-haystack and other libraries needed
|
|
7
7
|
# for Markdown conversion and embeddings generation. Use the following command:
|
|
@@ -534,6 +534,7 @@ class PgvectorDocumentStore:
|
|
|
534
534
|
The name of the schema (`schema_name`) and the name of the table (`table_name`)
|
|
535
535
|
are defined when initializing the `PgvectorDocumentStore`.
|
|
536
536
|
"""
|
|
537
|
+
self._ensure_db_setup()
|
|
537
538
|
delete_sql = SQL("DROP TABLE IF EXISTS {schema_name}.{table_name}").format(
|
|
538
539
|
schema_name=Identifier(self.schema_name),
|
|
539
540
|
table_name=Identifier(self.table_name),
|
|
@@ -551,6 +552,7 @@ class PgvectorDocumentStore:
|
|
|
551
552
|
"""
|
|
552
553
|
Async method to delete the table used to store Haystack documents.
|
|
553
554
|
"""
|
|
555
|
+
await self._ensure_db_setup_async()
|
|
554
556
|
delete_sql = SQL("DROP TABLE IF EXISTS {schema_name}.{table_name}").format(
|
|
555
557
|
schema_name=Identifier(self.schema_name),
|
|
556
558
|
table_name=Identifier(self.table_name),
|
|
@@ -237,3 +237,12 @@ def test_create_table_if_not_exists():
|
|
|
237
237
|
# Clean up: drop the schema after the test
|
|
238
238
|
with psycopg.connect(connection_string, autocommit=True) as conn:
|
|
239
239
|
conn.execute(f"DROP SCHEMA IF EXISTS {schema_name} CASCADE")
|
|
240
|
+
|
|
241
|
+
|
|
242
|
+
@pytest.mark.integration
|
|
243
|
+
def test_delete_table_first_call(document_store):
|
|
244
|
+
"""
|
|
245
|
+
Test that delete_table can be executed as the initial operation on the Document Store
|
|
246
|
+
without triggering errors due to an uninitialized state.
|
|
247
|
+
"""
|
|
248
|
+
document_store.delete_table() # if throw error, test fails
|
|
@@ -206,3 +206,13 @@ async def test_create_table_if_not_exists():
|
|
|
206
206
|
# Clean up: drop the schema after the test
|
|
207
207
|
async with await psycopg.AsyncConnection.connect(connection_string, autocommit=True) as conn:
|
|
208
208
|
await conn.execute(f"DROP SCHEMA IF EXISTS {schema_name} CASCADE")
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
@pytest.mark.integration
|
|
212
|
+
@pytest.mark.asyncio
|
|
213
|
+
async def test_delete_table_async_first_call(document_store):
|
|
214
|
+
"""
|
|
215
|
+
Test that delete_table_async can be executed as the initial operation on the Document Store
|
|
216
|
+
without triggering errors due to an uninitialized state.
|
|
217
|
+
"""
|
|
218
|
+
await document_store.delete_table_async() # if throw error, test fails
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|