weaviate-ruby
weaviate-ruby copied to clipboard
Does it supports query using distance or certainty?
If not, is there a roadmap to implement this? Thanks!
@ccokme Yeah, you should be able to pass distance and/or certainty.
Have you looked at the example using the Get{} GraphQL endpoint?
If you look at the example from the docs:
{
Get{
JeopardyQuestion(
nearText: {
concepts: ["animals"],
distance: 0.2
}
...
You should be able to do something like:
near_text = '{ concepts: ["biology"], distance: "...", certainty: "..." }'
client.query.get(
class_name: '...',
near_text: near_text
...
)