Skip to content

Commit

Permalink
Merge pull request #2782 from AndyVerne/patch-1
Browse files Browse the repository at this point in the history
fix: Update hybrid_search_with_milvus.md, 'csr_array' object does not support slice yet
  • Loading branch information
AnthonyTsu1984 authored Oct 9, 2024
2 parents 10714fe + 7342253 commit e44ebf4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions site/en/tutorials/hybrid_search_with_milvus.md
Original file line number Diff line number Diff line change
Expand Up @@ -246,11 +246,11 @@ Let's run three different searches with defined functions:

```python
dense_results = dense_search(col, query_embeddings["dense"][0])
sparse_results = sparse_search(col, query_embeddings["sparse"][[0]])
sparse_results = sparse_search(col, query_embeddings["sparse"]._getrow(0))
hybrid_results = hybrid_search(
col,
query_embeddings["dense"][0],
query_embeddings["sparse"][[0]],
query_embeddings["sparse"]._getrow(0),
sparse_weight=0.7,
dense_weight=1.0,
)
Expand Down

0 comments on commit e44ebf4

Please sign in to comment.