diff --git a/integrations/postgresql/src/main/kotlin/com/xebia/functional/xef/store/postgresql/postgres.kt b/integrations/postgresql/src/main/kotlin/com/xebia/functional/xef/store/postgresql/postgres.kt index 4f4cef72d..b90b7011b 100644 --- a/integrations/postgresql/src/main/kotlin/com/xebia/functional/xef/store/postgresql/postgres.kt +++ b/integrations/postgresql/src/main/kotlin/com/xebia/functional/xef/store/postgresql/postgres.kt @@ -15,7 +15,7 @@ val createMemoryTable: String = uuid TEXT PRIMARY KEY, conversation_id TEXT NOT NULL, role TEXT NOT NULL, - content TEXT UNIQUE NOT NULL, + content TEXT NOT NULL, index INT NOT NULL );""" .trimIndent() diff --git a/integrations/postgresql/src/main/resources/vectorStore/migrations/V1__Initial.sql b/integrations/postgresql/src/main/resources/vectorStore/migrations/V1__Initial.sql index 4a4671806..f9fd90d81 100644 --- a/integrations/postgresql/src/main/resources/vectorStore/migrations/V1__Initial.sql +++ b/integrations/postgresql/src/main/resources/vectorStore/migrations/V1__Initial.sql @@ -12,7 +12,7 @@ CREATE TABLE IF NOT EXISTS xef_memory ( uuid TEXT PRIMARY KEY, conversation_id TEXT NOT NULL, role TEXT NOT NULL, - content TEXT UNIQUE NOT NULL, + content TEXT NOT NULL, index INT NOT NULL );