Skip to content

recommendations: same ID in positive/negative #5645

Answered by timvisee
dnalor asked this question in Q&A
Discussion options

You must be logged in to vote

Providing a point as positive and negative example will make them cancel each other out.

These two searches will give the same result:

POST /collections/benchmark/points/query
{
  "query": {
    "recommend": {
      "positive": [2],
      "negative": []
    }
  }
}
POST /collections/benchmark/points/query
{
  "query": {
    "recommend": {
      "positive": [1, 2],
      "negative": [1]
    }
  }
}

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@dnalor
Comment options

@timvisee
Comment options

Answer selected by dnalor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants