Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does it supports query using distance or certainty? #42

Open
ccokme opened this issue Jan 20, 2024 · 1 comment
Open

Does it supports query using distance or certainty? #42

ccokme opened this issue Jan 20, 2024 · 1 comment

Comments

@ccokme
Copy link

ccokme commented Jan 20, 2024

If not, is there a roadmap to implement this? Thanks!

@andreibondarev
Copy link
Collaborator

@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
    ...
)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants