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

Unknown argument nearContent on field TextBlock #22

Open
Boburmirzo opened this issue Dec 4, 2023 · 0 comments
Open

Unknown argument nearContent on field TextBlock #22

Boburmirzo opened this issue Dec 4, 2023 · 0 comments
Assignees
Labels
bug documentation Improvements or additions to documentation p:low
Milestone

Comments

@Boburmirzo
Copy link

Boburmirzo commented Dec 4, 2023

One issue I found nearContent attribute is not defined in the current GraphQL endpoint. But documentation showcases this example with nearContent :

https://www.unbody.io/docs/graphql-api/search/generative-search

After running the following query:

{
  Get {
    TextBlock(nearContent: { concepts: ["World history"] }, limit: 2) {
      content
      _additional {
        generate(
          singleResult: {
            prompt: """
            Transform this historical fact into a captivating tweet: {content}.
            """
          }
        ) {
          singleResult
          error
        }
      }
    }
  }
}

I got an error:

{
  "errors": [
    {
      "locations": [
        {
          "column": 15,
          "line": 3
        }
      ],
      "message": "Unknown argument \"nearContent\" on field \"TextBlock\" of type \"GetObjectsObj\". Did you mean \"nearObject\" or \"nearText\"?",
      "path": null
    }
  ]
}

You can also see the similar error on the GraphQL editor:

image

@amirhouieh amirhouieh self-assigned this Jan 13, 2024
@amirhouieh amirhouieh added documentation Improvements or additions to documentation bug p:medium labels Jan 13, 2024
@amirhouieh amirhouieh added this to the Jan 2024 milestone Jan 13, 2024
@jeangovil jeangovil added p:low and removed p:medium labels Jun 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug documentation Improvements or additions to documentation p:low
Projects
None yet
Development

No branches or pull requests

3 participants