When we run queries on weaviate, what property the query is running on? Or is it running on all properties of each entry?
Look at the following example, nearText is running on all three properties "question", "answer", "category" here? If that is the case, is there a way to specify a specific property to run the query on? For example, if I want to run nearText just on question, is there such a way?
import weaviate
import json
client = weaviate.Client(
url="https://some-endpoint.weaviate.network/", # Replace with your endpoint
additional_headers={
"X-OpenAI-Api-Key": "<THE-KEY>" # Replace with your API key
}
)
nearText = {"concepts": ["biology"]}
result = (
client.query
.get("Question", ["question", "answer", "category"])
.with_near_text(nearText)
.with_limit(2)
.do()
)
print(json.dumps(result, indent=4))