feat: more broad similarity changes
This commit is contained in:
@ -196,7 +196,7 @@ func (m ImageModel) UpdateEmbedding(ctx context.Context, imageId uuid.UUID, embe
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
const SIMILARITY_THRESHOLD = 0.9
|
const SIMILARITY_THRESHOLD = 0.5
|
||||||
|
|
||||||
func (m ImageModel) GetSimilar(ctx context.Context, imageId uuid.UUID) ([]model.Image, error) {
|
func (m ImageModel) GetSimilar(ctx context.Context, imageId uuid.UUID) ([]model.Image, error) {
|
||||||
stmt, err := m.dbPool.PrepareContext(ctx, `
|
stmt, err := m.dbPool.PrepareContext(ctx, `
|
||||||
|
Reference in New Issue
Block a user