Hey there, wonderful community!
I’m currently diving into the fascinating world of Weaviate, and I could use a bit of guidance on optimizing my vector search queries. Here’s a snippet of the properties I’m working with:
properties = {
"supplier_sku": d["SUPPLIER_SKU"],
"name": d["NAME"],
"title": d["TITLE"],
"description": d["DESCRIPTION"],
"brand": d["BRAND"],
"price": float(d["PRICE_GBP"]),
"cost_price": float(d["COST_PRICE_GBP"]),
"supplier_name": d["SUPPLIER_NAME"],
"supplier_country": d["SUPPLIER_COUNTRY"],
"categories": d["CATEGORIES"],
"product_type": d["PRODUCT_TYPE"],
"product_description": d["PRODUCT_SUMMARY"],
"key_features": d["KEY_FEATURES"],
"keywords": d["KEYWORDS"],
}
What I’m aiming for is to refine my search to focus solely on the “product_description” property. Essentially, I want to perform a vector search on just this field. However, I also need to retrieve all other relevant attributes such as “name,” “title,” “supplier name,” “category,” and so forth for the matched results.
I’ve come across an example in the documentation that performs a similar search across multiple properties:
response = (
client.query
.get("Question", ["question", "answer", "category"])
.with_near_text({"concepts": ["biology"]})
.with_limit(2)
.do()
)
How can I exclusively execute a vector search on the “answer” field while obtaining all additional attributes such as “question” and “category” in the response?