forked from Cutlery/immich
select embedding by default
This commit is contained in:
parent
9d886cf9dc
commit
5def1ebc53
@ -11,11 +11,6 @@ export class SmartSearchEntity {
|
||||
assetId!: string;
|
||||
|
||||
@Index('clip_index', { synchronize: false })
|
||||
@Column({
|
||||
type: 'float4',
|
||||
array: true,
|
||||
select: false,
|
||||
transformer: { from: (v) => JSON.parse(v), to: (v) => v },
|
||||
})
|
||||
@Column({ type: 'float4', array: true, transformer: { from: (v) => JSON.parse(v), to: (v) => v } })
|
||||
embedding!: number[];
|
||||
}
|
||||
|
@ -179,11 +179,7 @@ export class SearchService {
|
||||
async handleSearchDuplicates({ id }: IEntityJob): Promise<JobStatus> {
|
||||
const { machineLearning } = await this.configCore.getConfig();
|
||||
|
||||
const [asset] = await this.assetRepository.getByIds(
|
||||
[id],
|
||||
{ smartSearch: true },
|
||||
{ smartSearch: { assetId: true, embedding: true } },
|
||||
);
|
||||
const asset = await this.assetRepository.getById(id, { smartSearch: true });
|
||||
if (!asset) {
|
||||
this.logger.error(`Asset ${id} not found`);
|
||||
return JobStatus.FAILED;
|
||||
|
Loading…
x
Reference in New Issue
Block a user