llama-index-vector-stores-postgres 0.7.2__tar.gz → 0.7.3__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.4
2
2
  Name: llama-index-vector-stores-postgres
3
- Version: 0.7.2
3
+ Version: 0.7.3
4
4
  Summary: llama-index vector_stores postgres integration
5
5
  Author-email: Your Name <you@example.com>
6
6
  License-Expression: MIT
@@ -828,6 +828,7 @@ class PGVectorStore(BasePydanticVectorStore):
828
828
  text(f"SET ivfflat.probes = :ivfflat_probes"),
829
829
  {"ivfflat_probes": ivfflat_probes},
830
830
  )
831
+ session.execute(text("SET LOCAL enable_bitmapscan = off"))
831
832
  if self.hnsw_kwargs:
832
833
  hnsw_ef_search = (
833
834
  kwargs.get("hnsw_ef_search") or self.hnsw_kwargs["hnsw_ef_search"]
@@ -836,6 +837,7 @@ class PGVectorStore(BasePydanticVectorStore):
836
837
  text(f"SET hnsw.ef_search = :hnsw_ef_search"),
837
838
  {"hnsw_ef_search": hnsw_ef_search},
838
839
  )
840
+ session.execute(text("SET LOCAL enable_bitmapscan = off"))
839
841
 
840
842
  res = session.execute(
841
843
  stmt,
@@ -873,12 +875,14 @@ class PGVectorStore(BasePydanticVectorStore):
873
875
  await async_session.execute(
874
876
  text(f"SET hnsw.ef_search = {hnsw_ef_search}"),
875
877
  )
878
+ await async_session.execute(text("SET LOCAL enable_bitmapscan = off"))
876
879
  if kwargs.get("ivfflat_probes"):
877
880
  ivfflat_probes = kwargs.get("ivfflat_probes")
878
881
  await async_session.execute(
879
882
  text(f"SET ivfflat.probes = :ivfflat_probes"),
880
883
  {"ivfflat_probes": ivfflat_probes},
881
884
  )
885
+ await async_session.execute(text("SET LOCAL enable_bitmapscan = off"))
882
886
 
883
887
  res = await async_session.execute(stmt)
884
888
  return [
@@ -27,7 +27,7 @@ dev = [
27
27
 
28
28
  [project]
29
29
  name = "llama-index-vector-stores-postgres"
30
- version = "0.7.2"
30
+ version = "0.7.3"
31
31
  description = "llama-index vector_stores postgres integration"
32
32
  authors = [{name = "Your Name", email = "you@example.com"}]
33
33
  requires-python = ">=3.9,<4.0"