Skip to content

Commit

Permalink
typo in code
Browse files Browse the repository at this point in the history
  • Loading branch information
azayarni authored Oct 25, 2024
1 parent 521ac01 commit fb47e71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qdrant-landing/content/articles/sparse-vectors.md
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ query_vec, query_tokens = compute_vector(query_text)
query_vec.shape

query_indices = query_vec.nonzero().numpy().flatten()
query_values = query_vec.detach().numpy()[indices]
query_values = query_vec.detach().numpy()[query_indices]
```

In this example, we use the same model for both document and query. This is not a requirement, but it's a simpler approach.
Expand Down

0 comments on commit fb47e71

Please sign in to comment.