zilliztech / zilliztech/VectorDBBench
PgVector index declarations don't match
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 1.2k
- Forks
- 438
- Avg merge
- 1d 4h
- Merged PRs (30d)
- 1
Description
That's what caused this problem for me: https://github.com/zilliztech/VectorDBBench/issues/512
index: IndexType = IndexType.ES_IVFFlat
# ...
_pgvector_case_config = {
IndexType.HNSW: PgVectorHNSWConfig,
IndexType.ES_HNSW: PgVectorHNSWConfig,
IndexType.IVFFlat: PgVectorIVFFlatConfig,
}
This makes it so that ivfflat is stored in the results but the key here has the value IVF_FLAT => 💥
Theoretically, I would recommend not just fixing that but also generally reworking the index values because there's also e.g.:
HNSW = "HNSW"
# ...
ES_HNSW = "hnsw"
Unfortunately, making changes to that would obviously break processing past results.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the IndexType declarations and _pgvector_case_config mapping shown in the issue, then trace where index values are stored in results and where past results are read. Confirm the mismatch with a current pgvector case and check that any correction preserves processing of existing results; the issue does not name a test or file path.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- databases
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100