fix(server): CLIP search return empty result (#2018)

pull/2024/head
Alex 2023-03-19 08:20:23 +07:00 committed by GitHub
parent 9a332074c7
commit 7ce64ecf05
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

@ -107,6 +107,7 @@ export class SearchService {
case SearchStrategy.CLIP:
const clip = await this.machineLearning.encodeText(query);
assets = await this.searchRepository.vectorSearch(clip, filters);
break;
case SearchStrategy.TEXT:
default:
assets = await this.searchRepository.searchAssets(query, filters);