Skip to content
Discussion options

You must be logged in to vote

Hi @miraseus!

The general rule of thumb is 1 schema 1 space 1 field, but for your use-case I can currently suggest 3 different approaches, please find them below and feel free to ask any followup questions about each!

  1. concat the product fields outside SL system into 1 SchemaField and put that into the space (drawback is the vector will be the vector of the aggregate text of the fields, but using contextualised embeddings from sbert this should not be that big of a problem). This results in a space with 1 field from each schema.
text_sim_space = TextSimilaritySpace([user.pref, product.product_and_category_concatenated])
  1. Create multiple spaces and add them to the index. This works until …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@miraseus
Comment options

Answer selected by morkapronczay
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants