Hello,
I’m trying to implement a weaviate database with question and answers. My idea is to search if a particular question is already in the data base, and I’m using this code:
response = (
client.query
.get("Questions", ["answer","question", "technology"])
.with_near_text({
"concepts": [prompt],
"distance": distance
})
.with_where({
"path": ["technology"],
"operator": "Equal",
"valueText": str(technology)
})
.with_additional(["id", "distance"])
.with_limit(2)
.do()
)
Where “prompt” is the question that I want to introduce.
I’m using the distance parameter, but I only want to compare the distance of my questions, with the questions inside, not with the answers , it can be done? If yes… how?
Thanks!