Skip to content

Commit c820a53

Browse files
committed
Simplified examples [skip ci]
1 parent caf1a2e commit c820a53

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,6 @@ index = Index(
259259
'my_index',
260260
func.cast(Item.embedding, HALFVEC(3)).label('embedding'),
261261
postgresql_using='hnsw',
262-
postgresql_with={'m': 16, 'ef_construction': 64},
263262
postgresql_ops={'embedding': 'halfvec_l2_ops'}
264263
)
265264
```
@@ -283,7 +282,6 @@ index = Index(
283282
'my_index',
284283
func.cast(func.binary_quantize(Item.embedding), BIT(3)).label('embedding'),
285284
postgresql_using='hnsw',
286-
postgresql_with={'m': 16, 'ef_construction': 64},
287285
postgresql_ops={'embedding': 'bit_hamming_ops'}
288286
)
289287
```

tests/test_sqlalchemy.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,6 @@ class Item(Base):
103103
'sqlalchemy_orm_half_precision_index',
104104
func.cast(Item.embedding, HALFVEC(3)).label('embedding'),
105105
postgresql_using='hnsw',
106-
postgresql_with={'m': 16, 'ef_construction': 64},
107106
postgresql_ops={'embedding': 'halfvec_l2_ops'}
108107
)
109108
half_precision_index.create(setup_engine)
@@ -112,7 +111,6 @@ class Item(Base):
112111
'sqlalchemy_orm_binary_quantize_index',
113112
func.cast(func.binary_quantize(Item.embedding), BIT(3)).label('embedding'),
114113
postgresql_using='hnsw',
115-
postgresql_with={'m': 16, 'ef_construction': 64},
116114
postgresql_ops={'embedding': 'bit_hamming_ops'}
117115
)
118116
binary_quantize_index.create(setup_engine)

0 commit comments

Comments
 (0)