llama-index-vector-stores-postgres 0.2.0__tar.gz → 0.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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: llama-index-vector-stores-postgres
3
- Version: 0.2.0
3
+ Version: 0.2.1
4
4
  Summary: llama-index vector_stores postgres integration
5
5
  License: MIT
6
6
  Author: Your Name
@@ -11,7 +11,6 @@ Classifier: Programming Language :: Python :: 3
11
11
  Classifier: Programming Language :: Python :: 3.9
12
12
  Classifier: Programming Language :: Python :: 3.10
13
13
  Classifier: Programming Language :: Python :: 3.11
14
- Classifier: Programming Language :: Python :: 3.12
15
14
  Requires-Dist: asyncpg (>=0.29.0,<0.30.0)
16
15
  Requires-Dist: llama-index-core (>=0.11.0,<0.12.0)
17
16
  Requires-Dist: pgvector (>=0.2.4,<0.3.0)
@@ -27,7 +27,7 @@ exclude = ["**/BUILD"]
27
27
  license = "MIT"
28
28
  name = "llama-index-vector-stores-postgres"
29
29
  readme = "README.md"
30
- version = "0.2.0"
30
+ version = "0.2.1"
31
31
 
32
32
  [tool.poetry.dependencies]
33
33
  python = ">=3.8.1,<4.0"
@@ -203,19 +203,6 @@ class PGVectorStore(BasePydanticVectorStore):
203
203
 
204
204
  from sqlalchemy.orm import declarative_base
205
205
 
206
- # sqlalchemy model
207
- self._base = declarative_base()
208
- self._table_class = get_data_model(
209
- self._base,
210
- table_name,
211
- schema_name,
212
- hybrid_search,
213
- text_search_config,
214
- cache_ok,
215
- embed_dim=embed_dim,
216
- use_jsonb=use_jsonb,
217
- )
218
-
219
206
  super().__init__(
220
207
  connection_string=connection_string,
221
208
  async_connection_string=async_connection_string,
@@ -231,6 +218,19 @@ class PGVectorStore(BasePydanticVectorStore):
231
218
  hnsw_kwargs=hnsw_kwargs,
232
219
  )
233
220
 
221
+ # sqlalchemy model
222
+ self._base = declarative_base()
223
+ self._table_class = get_data_model(
224
+ self._base,
225
+ table_name,
226
+ schema_name,
227
+ hybrid_search,
228
+ text_search_config,
229
+ cache_ok,
230
+ embed_dim=embed_dim,
231
+ use_jsonb=use_jsonb,
232
+ )
233
+
234
234
  async def close(self) -> None:
235
235
  if not self._is_initialized:
236
236
  return