Update FlexRAG retriever
Browse files
.gitattributes
CHANGED
@@ -160,3 +160,4 @@ database.lance/data/f76c834e-8597-4d02-89f6-ba02807a5678.lance filter=lfs diff=l
|
|
160 |
database.lance/data/fe07deef-fabf-432c-821b-92ed4a1536ab.lance filter=lfs diff=lfs merge=lfs -text
|
161 |
database.lance/data/ffa0760d-7028-4497-870a-684e03b311c7.lance filter=lfs diff=lfs merge=lfs -text
|
162 |
database.lance/data/9e3cf2be-d7c5-4fdf-8f13-46188f405a05.lance filter=lfs diff=lfs merge=lfs -text
|
|
|
|
160 |
database.lance/data/fe07deef-fabf-432c-821b-92ed4a1536ab.lance filter=lfs diff=lfs merge=lfs -text
|
161 |
database.lance/data/ffa0760d-7028-4497-870a-684e03b311c7.lance filter=lfs diff=lfs merge=lfs -text
|
162 |
database.lance/data/9e3cf2be-d7c5-4fdf-8f13-46188f405a05.lance filter=lfs diff=lfs merge=lfs -text
|
163 |
+
database.lance/data/ef7f500e-6eb8-492a-874d-fec43c9367d0.lance filter=lfs diff=lfs merge=lfs -text
|
README.md
CHANGED
@@ -1 +1,40 @@
|
|
1 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
language: en
|
3 |
+
library_name: FlexRAG
|
4 |
+
tags:
|
5 |
+
- FlexRAG
|
6 |
+
- retrieval
|
7 |
+
- search
|
8 |
+
- lexical
|
9 |
+
- RAG
|
10 |
+
---
|
11 |
+
|
12 |
+
# FlexRAG Retriever
|
13 |
+
|
14 |
+
This is a DenseRetriever created with the [`FlexRAG`](https://github.com/ictnlp/flexrag) library (version `0.1.8`).
|
15 |
+
|
16 |
+
FlexRAG Related Links:
|
17 |
+
* 📚[Documentation](https://flexrag.readthedocs.io/en/latest/)
|
18 |
+
* 💻[GitHub Repository](https://github.com/ictnlp/flexrag)
|
19 |
+
|
20 |
+
## Installation
|
21 |
+
|
22 |
+
You can install the `FlexRAG` library with `pip`:
|
23 |
+
|
24 |
+
```bash
|
25 |
+
pip install flexrag
|
26 |
+
```
|
27 |
+
|
28 |
+
## Loading a `FlexRAG` retriever
|
29 |
+
|
30 |
+
You can use this retriever for information retrieval tasks. Here is an example:
|
31 |
+
|
32 |
+
```python
|
33 |
+
from flexrag.retriever import LocalRetriever
|
34 |
+
|
35 |
+
# Load the retriever from the HuggingFace Hub
|
36 |
+
retriever = LocalRetriever.load_from_hub("zhuocheng/toycorp-all-MiniLM-L6-v2")
|
37 |
+
|
38 |
+
# You can retrieve now
|
39 |
+
results = retriever.search("Who is Bruce Wayne?")
|
40 |
+
```
|
database.lance/_transactions/122-b9571c45-b33a-46fc-b7f4-5bac470ee344.txn
ADDED
Binary file (8.78 kB). View file
|
|
database.lance/_versions/124.manifest
CHANGED
Binary files a/database.lance/_versions/124.manifest and b/database.lance/_versions/124.manifest differ
|
|
database.lance/data/ef7f500e-6eb8-492a-874d-fec43c9367d0.lance
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c834f6972f346877ec7a36f88f7d7d96011b8604c225cb0efe037ce360e1cc3f
|
3 |
+
size 135099736
|