I am using this model to embed a product catalog for a rag. In the product catalog, there are no red shirts for men, but there are red shirts for women. How can I make sure the model doesnt output women shirts for men based queries?
The following is the example product data
{
"ColorDesc": "Brown",
"styleName": "Scarf",
"productType": "mens accessories",
"tags": {
"colorTag": [
{
"type": "color",
"value": "Brown"
}
],
"newStyleTag": [
{
"type": "style",
"value": "Scarves"
}
],
"depttTag": [
{
"type": "department",
"value": "Men"
}
]
},
"gender": "Men"
},
When I prompt - "Looking for a brown scarf for women", the model will returns this product instead of returning nothing Is there any way to strictly apply certain filters in rag so that it retrieves only that those products and not output anything if the product is not available for that prompt? I am using FAISS for vectorstore and ollama for llm.