Skip to content

Commit

Permalink
fix(server): changing vector dim size (#15630)
Browse files Browse the repository at this point in the history
  • Loading branch information
mertalev authored Jan 25, 2025
1 parent 9871a04 commit 72fa31f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/src/repositories/search.repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ export class SearchRepository implements ISearchRepository {
await sql`truncate ${sql.table('smart_search')}`.execute(trx);
await trx.schema
.alterTable('smart_search')
.alterColumn('embedding', (col) => col.setDataType(sql.lit(`vector(${dimSize})`)))
.alterColumn('embedding', (col) => col.setDataType(sql.raw(`vector(${dimSize})`)))
.execute();
await sql`reindex index clip_index`.execute(trx);
});
Expand Down

0 comments on commit 72fa31f

Please sign in to comment.