pg.ddx.io  pgvector/pgvector GitHub issues and pull requests  
help / color / mirror / Atom feed
[pgvector/pgvector] issue #864: [Question] Is there any forked or modified version of pgvector which does support higher embeddings dimension (>2000) ?
5+ messages / 3 participants
[nested] [flat]

* [pgvector/pgvector] issue #864: [Question] Is there any forked or modified version of pgvector which does support higher embeddings dimension (>2000) ?
@ 2025-06-28 15:53 "Greatz08 (@Greatz08)" <noreply+Greatz08@github.com>
  0 siblings, 0 replies; 5+ messages in thread

From: Greatz08 (@Greatz08) @ 2025-06-28 15:53 UTC (permalink / raw)
  To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>

I recently integrated pg-vector through selfhosted supabase with openwebui for embeddings generation for my big notes. I dont good performance, i used qwen 3 latest embedding model 4B and 8B variants which does support higher dimension but since pg-vector doesnt support, so i had to downgrade to 2000, but i dont feel good retrieval when compared against qdrant.

^ permalink  raw  [nested|flat] 5+ messages in thread

* Re: [pgvector/pgvector] issue #864: [Question] Is there any forked or modified version of pgvector which does support higher embeddings dimension (>2000) ?
@ 2025-06-28 20:39 ` "binarycleric (@binarycleric)" <noreply+binarycleric@github.com>
  3 siblings, 0 replies; 5+ messages in thread

From: binarycleric (@binarycleric) @ 2025-06-28 20:39 UTC (permalink / raw)
  To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>

@Greatz08 You could fall back to `halfvec`, which supports up to 4,000 dimensions, if you can handle less floating point precision with a hnsw index.

What performance issues are you seeing? How is your index configured? What hardware are you running and what are some of your postgres settings around memory and parallel workers?

^ permalink  raw  [nested|flat] 5+ messages in thread

* Re: [pgvector/pgvector] issue #864: [Question] Is there any forked or modified version of pgvector which does support higher embeddings dimension (>2000) ?
@ 2025-06-29 01:15 ` "Greatz08 (@Greatz08)" <noreply+Greatz08@github.com>
  3 siblings, 0 replies; 5+ messages in thread

From: Greatz08 (@Greatz08) @ 2025-06-29 01:15 UTC (permalink / raw)
  To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>

@binarycleric it is not retrieving better documents (i am new to all this vector and embeddings). I think vector database is just for storing vector embeddings right ? as far as i have researched it depends on embeddings model to filter out relevant chunks according to user's query from vector db and give it back to our main llm as context, so i think qwen3 embeddings model should be responsible for bad selection or pg-vector has a role to play in this ? 

When i tested with self-hosted qdrant, it was able to find better relevant chunks of data for answering, so i thought it has something to do with dimensions ?  

Btw i am running on my own hardware with rtx 4060, and i haven't made any extra configurations, as i am new in this space and dont know alot of things about it (so trying to understand more from professional devs like you all :-))

https://docs.openwebui.com/getting-started/env-configuration/#pgvector

![Image](https://github.com/user-attachments/assets/6eefe5cc-3d93-44b1-84a9-8d09daae435e)


I have just self-hosted openwebui with pg-vector  env variables, so whenever i create my knowledge base by uploading my notes, they will be vectorized with qwen3 embeddings and stored in database automatically. Btw openwebui wont let me set more than 2000 value for PGVECTOR_INITIALIZE_MAX_VECTOR_LENGTH, so i guess pg-vector that they have setup behind the scene is using the technique/configuration which limits to 2000 and they haven't provide any env variable to change to your mentioned technique `halfvec`) .   

I did verify that chunks that were created by my setup were off 2000 dimension through this sql query :

```
SELECT vector_dims(vector)
FROM document_chunk
LIMIT 1;
```

^ permalink  raw  [nested|flat] 5+ messages in thread

* Re: [pgvector/pgvector] issue #864: [Question] Is there any forked or modified version of pgvector which does support higher embeddings dimension (>2000) ?
@ 2025-07-01 11:34 ` "ankane (@ankane)" <noreply+ankane@github.com>
  3 siblings, 0 replies; 5+ messages in thread

From: ankane (@ankane) @ 2025-07-01 11:34 UTC (permalink / raw)
  To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>

Hi @Greatz08, I'd recommend trying exact search (no index, which supports up to 16,000 dimensions) or `halfvec` as @binarycleric mentioned ([docs](https://github.com/pgvector/pgvector?tab=readme-ov-file#what-if-i-want-to-index-vectors-with-more-th...)).

^ permalink  raw  [nested|flat] 5+ messages in thread

* Re: [pgvector/pgvector] issue #864: [Question] Is there any forked or modified version of pgvector which does support higher embeddings dimension (>2000) ?
@ 2025-07-01 11:34 ` "ankane (@ankane)" <noreply+ankane@github.com>
  3 siblings, 0 replies; 5+ messages in thread

From: ankane (@ankane) @ 2025-07-01 11:34 UTC (permalink / raw)
  To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>

@ankane closed this.

^ permalink  raw  [nested|flat] 5+ messages in thread


end of thread, other threads:[~2025-07-01 11:34 UTC | newest]

Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2025-06-28 15:53 [pgvector/pgvector] issue #864: [Question] Is there any forked or modified version of pgvector which does support higher embeddings dimension (>2000) ? "Greatz08 (@Greatz08)" <noreply+Greatz08@github.com>
2025-06-28 20:39 ` "binarycleric (@binarycleric)" <noreply+binarycleric@github.com>
2025-06-29 01:15 ` "Greatz08 (@Greatz08)" <noreply+Greatz08@github.com>
2025-07-01 11:34 ` "ankane (@ankane)" <noreply+ankane@github.com>
2025-07-01 11:34 ` "ankane (@ankane)" <noreply+ankane@github.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox