Skip to content

Commit

Permalink
fix: rearrange search.hybrid-v3.py example
Browse files Browse the repository at this point in the history
maxVectorDistance is a higher-level parameter and should be placed under hybrid: { maxVectorDistance: 3 }

Source: https://github.com/weaviate/weaviate/blob/b053ca564c0ade810dfe660743b1b8011bc8ef42/adapters/handlers/graphql/local/aggregate/hybrid_search.go#L57-L60
  • Loading branch information
bevzzz authored Oct 9, 2024
1 parent cd085f9 commit 5567ff2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions _includes/code/howto/search.hybrid-v3.py
Original file line number Diff line number Diff line change
Expand Up @@ -907,10 +907,10 @@ def test_gqlresponse(response_in, gqlresponse_in):
nearText: {
concepts: [ "large animal" ]
}
maxVectorDistance: 0.5
# highlight-end
}
alpha: 0.75,
maxVectorDistance: 0.5
# highlight-end
alpha: 0.75
query: "California"
}
)
Expand Down

0 comments on commit 5567ff2

Please sign in to comment.