pg.ddx.io  pgvector/pgvector GitHub issues and pull requests  
help / color / mirror / Atom feed
[pgvector/pgvector] issue #920: aadd_documents with empty list fails
3+ messages / 2 participants
[nested] [flat]

* [pgvector/pgvector] issue #920: aadd_documents with empty list fails
@ 2025-11-05 14:01 "stoyan-atanasov-beye (@stoyan-atanasov-beye)" <noreply+stoyan-atanasov-beye@github.com>
  0 siblings, 0 replies; 3+ messages in thread

From: stoyan-atanasov-beye (@stoyan-atanasov-beye) @ 2025-11-05 14:01 UTC (permalink / raw)
  To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>

when trying store.aadd_documents(all_documents_chunks) when all_documents_chunks = []

sqlalchemy.exc.IntegrityError: (sqlalchemy.dialects.postgresql.asyncpg.IntegrityError) <class 'asyncpg.exceptions.NotNullViolationError'>: null value in column "id" of relation "langchain_pg_embedding" violates not-null constraint
DETAIL:  Failing row contains (null, null, null, null, null).
[SQL: INSERT INTO langchain_pg_embedding DEFAULT VALUES ON CONFLICT (id) DO UPDATE SET embedding = excluded.embedding, document = excluded.document, cmetadata = excluded.cmetadata]
(Background on this error at: https://sqlalche.me/e/20/gkpj)

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

* Re: [pgvector/pgvector] issue #920: aadd_documents with empty list fails
@ 2025-11-05 16:53 ` "ankane (@ankane)" <noreply+ankane@github.com>
  1 sibling, 0 replies; 3+ messages in thread

From: ankane (@ankane) @ 2025-11-05 16:53 UTC (permalink / raw)
  To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>

Hi @stoyan-atanasov-beye, this isn't an issue with pgvector. Please use other resources for help.

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

* Re: [pgvector/pgvector] issue #920: aadd_documents with empty list fails
@ 2025-11-05 16:53 ` "ankane (@ankane)" <noreply+ankane@github.com>
  1 sibling, 0 replies; 3+ messages in thread

From: ankane (@ankane) @ 2025-11-05 16:53 UTC (permalink / raw)
  To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>

@ankane closed this.

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


end of thread, other threads:[~2025-11-05 16:53 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2025-11-05 14:01 [pgvector/pgvector] issue #920: aadd_documents with empty list fails "stoyan-atanasov-beye (@stoyan-atanasov-beye)" <noreply+stoyan-atanasov-beye@github.com>
2025-11-05 16:53 ` "ankane (@ankane)" <noreply+ankane@github.com>
2025-11-05 16:53 ` "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