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

Sorting vector search results by score without score in selection set results in error #5759

Closed
darrellwarde opened this issue Nov 7, 2024 · 1 comment · Fixed by #5764 or #5765
Closed
Labels
bug Something isn't working confirmed Confirmed bug lts

Comments

@darrellwarde
Copy link
Contributor

darrellwarde commented Nov 7, 2024

Type definitions

type Movie
  @vector(
    indexes: [
      {
        indexName: "MovieIndex"
        embeddingProperty: "embedding"
        queryName: "searchMovies"
      }
    ]
  )
  @node {
  title: String!
  released: Int!
}

Test data

No response

Steps to reproduce

The execution of a query such as the following will result in a Cypher syntax error:

query($vector: [Float!]) {
  searchMovies(vector: $vector, sort: { score: DESC } ) {
    edges {
      node {
        title
      }
    }
  }
}

What happened

Error: Variable `var1` not defined (line 10, column 14 (offset: 308))

Expected behaviour

No response

Version

latest

Database version

5.24

Relevant log output

No response

@darrellwarde darrellwarde added bug Something isn't working confirmed Confirmed bug labels Nov 7, 2024
@neo4j-team-graphql
Copy link
Collaborator

We've been able to confirm this bug using the steps to reproduce that you provided - many thanks @darrellwarde! 🙏 We will now prioritise the bug and address it appropriately.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working confirmed Confirmed bug lts
Projects
None yet
2 participants