Partial Matching to show visibility for recommendation system

Hi Everyone,

I am building a recommendation system where the generate text option, generates product recommendations, for example if the final order contains shoes then the recommendation system gives value as socks, accessories etc. To show these recommendation I am using collections linked to product table and filtered out with product name includes recommendations, the problem is recommendation names are not exactly same as product table hence all the values are not filtered and displayed, Any solution for this.

Thanks,

If you have set list of “recommendations” that would fit with the product table, reference them inside your prompt and steer the AI to generate only from that list.