You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I tried to add item embedding as vector feature according to the document, but it failed at the validation step when running the validate command. The error is:
scala.MatchError: VectorFeatureSchema(product_embedding,item.product_embedding,Some(List(VectorReducer(384))),ItemScopeType,None,None) (of class ai.metarank.feature.NumVectorFeature$VectorFeatureSchema)
at ai.metarank.model.AnalyticsPayload$.$anonfun$apply$2(AnalyticsPayload.scala:126)
at scala.collection.immutable.List.map(List.scala:250)
at ai.metarank.model.AnalyticsPayload$.apply(AnalyticsPayload.scala:126)
at ai.metarank.main.Main$.$anonfun$run$14(Main.scala:59)
It seems that in AnalyticsPayload, there is no feature map for vector feature schema:
usedFeatures = config.features.map {
case f: RateFeatureSchema => UsedFeature(f.name, "rate")
case f: BooleanFeatureSchema => UsedFeature(f.name, "boolean")
case f: FieldMatchSchema => UsedFeature(f.name, "field_match")
case f: InteractedWithSchema => UsedFeature(f.name, "interacted_with")
case f: InteractionCountSchema => UsedFeature(f.name, "interaction_count")
case f: ItemAgeSchema => UsedFeature(f.name, "item_age")
case f: LocalDateTimeSchema => UsedFeature(f.name, "local_time")
case f: NumberFeatureSchema => UsedFeature(f.name, "number")
case f: RefererSchema => UsedFeature(f.name, "referer")
case f: RelevancySchema => UsedFeature(f.name, "relevancy")
case f: StringFeatureSchema => UsedFeature(f.name, "string")
case f: UserAgentSchema => UsedFeature(f.name, "ua")
case f: WindowInteractionCountSchema => UsedFeature(f.name, "window_count")
case f: WordCountSchema => UsedFeature(f.name, "word_count")
case f: PositionFeatureSchema => UsedFeature(f.name, "position")
case f: RandomFeatureSchema => UsedFeature(f.name, "random")
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")
},
How do I resolve this error and use vector feature for metaranl model?
The text was updated successfully, but these errors were encountered:
Hello, I tried to add item embedding as vector feature according to the document, but it failed at the validation step when running the validate command. The error is:
It seems that in AnalyticsPayload, there is no feature map for vector feature schema:
How do I resolve this error and use vector feature for metaranl model?
The text was updated successfully, but these errors were encountered: