mirror of
https://github.com/immich-app/immich.git
synced 2025-02-11 01:18:24 -05:00
fix(server): changing vector dim size (#15630)
This commit is contained in:
parent
9871a04d54
commit
72fa31f9e9
1 changed files with 1 additions and 1 deletions
|
@ -292,7 +292,7 @@ export class SearchRepository implements ISearchRepository {
|
||||||
await sql`truncate ${sql.table('smart_search')}`.execute(trx);
|
await sql`truncate ${sql.table('smart_search')}`.execute(trx);
|
||||||
await trx.schema
|
await trx.schema
|
||||||
.alterTable('smart_search')
|
.alterTable('smart_search')
|
||||||
.alterColumn('embedding', (col) => col.setDataType(sql.lit(`vector(${dimSize})`)))
|
.alterColumn('embedding', (col) => col.setDataType(sql.raw(`vector(${dimSize})`)))
|
||||||
.execute();
|
.execute();
|
||||||
await sql`reindex index clip_index`.execute(trx);
|
await sql`reindex index clip_index`.execute(trx);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Reference in a new issue