File tree Expand file tree Collapse file tree 2 files changed +13
-13
lines changed
content/integrate/redisvl Expand file tree Collapse file tree 2 files changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -645,18 +645,18 @@ from redisvl.index import SearchIndex
645
645
index = SearchIndex.from_yaml(" path/to/index.yaml" )
646
646
647
647
query = HybridQuery(
648
- text = " example text" ,
649
- text_field_name = " text_field" ,
650
- vector = [0.1 , 0.2 , 0.3 ],
651
- vector_field_name = " vector_field" ,
652
- text_scorer = " BM25STD" ,
653
- filter_expression = None ,
654
- alpha = 0.7 ,
655
- dtype = " float32" ,
656
- num_results = 10 ,
657
- return_fields = [" field1" , " field2" ],
658
- stopwords = " english" ,
659
- dialect = 2 ,
648
+ text = " example text" ,
649
+ text_field_name = " text_field" ,
650
+ vector = [0.1 , 0.2 , 0.3 ],
651
+ vector_field_name = " vector_field" ,
652
+ text_scorer = " BM25STD" ,
653
+ filter_expression = None ,
654
+ alpha = 0.7 ,
655
+ dtype = " float32" ,
656
+ num_results = 10 ,
657
+ return_fields = [" field1" , " field2" ],
658
+ stopwords = " english" ,
659
+ dialect = 2 ,
660
660
)
661
661
662
662
results = index.query(query)
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ Before running this notebook, be sure to
19
19
! rvl version
20
20
```
21
21
22
- 16:19:10 [RedisVL] INFO RedisVL version 0.4.0
22
+ 09:58:03 [RedisVL] INFO RedisVL version 0.5.2
23
23
24
24
25
25
## Commands
You can’t perform that action at this time.
0 commit comments