Update README.md
Browse files
README.md
CHANGED
@@ -1,5 +1,6 @@
|
|
1 |
---
|
2 |
language: en
|
|
|
3 |
tags:
|
4 |
- bm25
|
5 |
- bm25s
|
@@ -41,7 +42,8 @@ retriever = BM25HF.load_from_hub("xhluca/bm25s-nq-index", revision="main")
|
|
41 |
|
42 |
# You can retrieve now
|
43 |
query = "a cat is a feline"
|
44 |
-
|
|
|
45 |
```
|
46 |
|
47 |
## Saving a `bm25s` index
|
|
|
1 |
---
|
2 |
language: en
|
3 |
+
library_name: bm25s
|
4 |
tags:
|
5 |
- bm25
|
6 |
- bm25s
|
|
|
42 |
|
43 |
# You can retrieve now
|
44 |
query = "a cat is a feline"
|
45 |
+
|
46 |
+
results = retriever.retrieve(bm25s.tokenize(query), k=3)
|
47 |
```
|
48 |
|
49 |
## Saving a `bm25s` index
|