Comments (4)
After going into a rabbit hole, this is caused by an abnormal high ivfflat.probes
parameter.
I automated index creation at
but since that we have also added another table for post embeddings. There are many more posts than topics, and the automation was setting probes based on the number of posts globally.
In the end this is yet another point for #235, which would make the ergonomics much simpler to reason about.
from pgvector.
@xfalcox Curious -- is there a reason you went with IVFFLAT instead of HNSW?
from pgvector.
Well, @jkatz, HNSW wasn't a thing when I started doing this, I think most of my databases both in-house and in RDS are below pgvector 0.5 still.
I'd like to experiment with it, but with all the moving pieces, we running embeddings backfill and indexing automatically on many instances, with some hosted by us and some hosted by people running our software which may not be as technical, I need something that is as hands-free and safe as possible.
from pgvector.
@xfalcox Thanks for the explanation, that's really helpful! One nice thing about HNSW is that it's a bit easier to maintain, because it supports iterative inserts/updates, so you don't have to have the dataset pre-loaded like with IVFFLAT. From observations and talking to users, HNSW tends to be easier for folks who are less familiar with working with approximate nearest neighbor indexing.
Amazon RDS does support pgvector 0.5 and above since Oct 23 (Disclosure, I work at AWS).
Hope this helps. I'm also happy to hear more about your experience working with pgvector.
from pgvector.
Related Issues (20)
- how to solve `hnsw graph no longer fits into maintenance_work_mem after 57358 tuples` HOT 1
- Postgres refuses to use HNSW index HOT 2
- pgvector.control missing HOT 1
- Issues updating from 0.1.1 to 0.2.0 HOT 1
- Support vector type nested in jsonb HOT 4
- Installation Invalid Syntax Python HOT 2
- Cant find PGXS during install HOT 2
- Passing CFLAGS to the Makefile HOT 4
- How to upgrade the vector extension version from 0.44 to 0.5.0. HOT 2
- Is subtraction operator self-commutative ? HOT 1
- why does the parameter ivfflat.probes losts when reconnecting the session? HOT 2
- 0.6.1 Plan HOT 1
- Building hnsw index fail with memory is temporarily unavailable HOT 1
- Build a hierarchical structure for each tenant HOT 3
- Query with HNSW index returns only small portion of results HOT 4
- Is here any possibility to crush? HOT 4
- Performance profile of `UPDATE` vs `INSERT`? HOT 1
- Does postgres extension support primary-secondary synchronization? HOT 1
- How to add to existing docker postgresql ? HOT 2
- HNSW Index scan is not called with vector_cosine_ops HOT 3
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.