From 0b3a94e90bff3b5b279885ae8578b8b9976b95f4 Mon Sep 17 00:00:00 2001 From: hajdul88 <52442977+hajdul88@users.noreply.github.com> Date: Thu, 7 Nov 2024 16:19:38 +0100 Subject: [PATCH] fix: resolves pg asyncpg UUID to UUID --- .../infrastructure/databases/vector/pgvector/PGVectorAdapter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cognee/infrastructure/databases/vector/pgvector/PGVectorAdapter.py b/cognee/infrastructure/databases/vector/pgvector/PGVectorAdapter.py index a911d4785..025d361bd 100644 --- a/cognee/infrastructure/databases/vector/pgvector/PGVectorAdapter.py +++ b/cognee/infrastructure/databases/vector/pgvector/PGVectorAdapter.py @@ -209,7 +209,7 @@ class PGVectorAdapter(SQLAlchemyAdapter, VectorDBInterface): # Create and return ScoredResult objects return [ ScoredResult( - id = UUID(row.id), + id = UUID(str(row.id)), payload = row.payload, score = row.similarity ) for row in vector_list