Create README.md
Browse files
README.md
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# FAISS Index
|
| 2 |
+
|
| 3 |
+
This repository contains a FAISS index split into multiple parts in the `index/` folder.
|
| 4 |
+
|
| 5 |
+
## Reconstruct the index
|
| 6 |
+
|
| 7 |
+
```bash
|
| 8 |
+
cat part_* > e5_Flat.index
|
| 9 |
+
````
|
| 10 |
+
|
| 11 |
+
## Usage
|
| 12 |
+
|
| 13 |
+
```python
|
| 14 |
+
import faiss
|
| 15 |
+
|
| 16 |
+
index = faiss.read_index("e5_Flat.index")
|
| 17 |
+
```
|
| 18 |
+
|
| 19 |
+
## Notes
|
| 20 |
+
|
| 21 |
+
* All `part_*` files are required.
|
| 22 |
+
* Do not modify the part files before reconstruction.
|
| 23 |
+
|