Comments (1)
Hi @creepykedi, you can use:
with connection.cursor() as cursor:
cursor.execute('SET hnsw.ef_search = 100')
https://docs.djangoproject.com/en/4.2/topics/db/sql/#executing-custom-sql-directly
from pgvector-python.
Related Issues (20)
- Add support for printing SQL of SQLAlchemy query HOT 4
- serialize PGVector for aws lambda HOT 1
- [Request] support `peewee` integration
- possible to use HNSW early? HOT 1
- Bulk insert of vectors HOT 1
- [Question] Ideas on clustering vectors (without defining no. clusters) HOT 3
- [peewee] using Model.get_or_create() doesn't work with pgvector HOT 2
- `register_vector(conn)` yields `psycopg.ProgrammingError: vector type not found in the database` HOT 2
- [Django] Using null=True raises error HOT 2
- How to set ivfflat.probes for indexed embeddings HOT 1
- HINT: No operator matches the given name and argument types. You might need to add explicit type casts. HOT 1
- Where to call the class Migration to enable pgvector extension? HOT 1
- Unable to run the extension migration HOT 2
- Cannot adapt type 'ndarray' with placeholder %s HOT 5
- How to rebuild indexes with Django? HOT 2
- ModuleNotFoundError: No module named 'pgvector.psycopg2'; 'pgvector' is not a package HOT 3
- Average embeddings returns string not np array HOT 10
- How to set query options (e.g. # of ivfflat.probe) when querying a table with IVFFlat or HNSW index? HOT 1
- Question : can i use 1024 dimensions size vector ? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pgvector-python.