pg.ddx.io pgvector/pgvector GitHub issues and pull requestshelp / color / mirror / Atom feed
From: az-arteria (@az-arteria) <noreply+az-arteria@github.com>
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Subject: [pgvector/pgvector] issue #640: Late interaction embedding support
Date: Thu, 08 Aug 2024 14:02:24 +0000
Message-ID: <gh-pgvector-pgvector-640@github.com> (raw)
Hi,
I wanted to ask a question: does pgvector currently support working with late interaction text embeddings, like the ones that come from a ColBERT model for example? This is an example of a vector that I would be referring to:
```
[
[-0.013, 0.020, -0.007, -0.111],
[-0.030, -0.055, 0.001, 0.072],
[-0.041, 0.014, -0.032, -0.062],
....
]
```
Currently when inserting such a vector I seem to get `ValueError: expected ndim to be 1`, with this usage:
```python
conn.execute("INSERT INTO documents (content, embedding) VALUES (%s, %s)", (content, embedding))
# content = text, embedding = vector
```
view thread (20+ messages) latest in thread
Message-ID: <gh-pgvector-pgvector-640@github.com> Permalink: ../gh-pgvector-pgvector-640@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