Skip to content

Commit

Permalink
fix match error on analytics payload with unknown feature type (#1232)
Browse files Browse the repository at this point in the history
  • Loading branch information
shuttie committed Jan 26, 2024
1 parent 327d7b2 commit c96f217
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/scala/ai/metarank/model/AnalyticsPayload.scala
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import ai.metarank.feature.InteractedWithFeature.InteractedWithSchema
import ai.metarank.feature.InteractionCountFeature.InteractionCountSchema
import ai.metarank.feature.ItemAgeFeature.ItemAgeSchema
import ai.metarank.feature.LocalDateTimeFeature.LocalDateTimeSchema
import ai.metarank.feature.NumVectorFeature.VectorFeatureSchema
import ai.metarank.feature.NumberFeature.NumberFeatureSchema
import ai.metarank.feature.PositionFeature.PositionFeatureSchema
import ai.metarank.feature.RandomFeature.RandomFeatureSchema
Expand Down Expand Up @@ -143,6 +144,8 @@ object AnalyticsPayload {
case f: DiversitySchema => UsedFeature(f.name, "diversity")
case f: FieldMatchBiencoderSchema => UsedFeature(f.name, "field_match.bi-encoder")
case f: FieldMatchCrossEncoderSchema => UsedFeature(f.name, "field_match.cross-encoder")
case f: VectorFeatureSchema => UsedFeature(f.name, "vector")
case f => UsedFeature(f.name, "unknown")
},
system = SystemParams(),
ts = System.currentTimeMillis()
Expand Down

0 comments on commit c96f217

Please sign in to comment.