This commit is contained in:
2024-07-20 19:50:01 +08:00
parent 460fbba109
commit 1befa9ff3a

View File

@@ -133,7 +133,7 @@ func GetNetWorkEmbedding(id int) (embedding []float32) {
return result.Feature return result.Feature
} }
var lruCache, _ = lru.New[int, []int64](1000) var lruCache, _ = lru.New[int, []int64](100000)
func (image *Image) GetSimilarImagesIdList(collection_name string) (ids []int64) { func (image *Image) GetSimilarImagesIdList(collection_name string) (ids []int64) {
ctx := context.Background() ctx := context.Background()