You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: examples/gdrive_text_embedding/README.md
+17-11Lines changed: 17 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,6 @@
1
-
Simple example for cocoindex: build embedding index based on Google Drive files.
1
+
This example builds embedding index based on Google Drive files.
2
+
It continuously updates the index as files are added / updated / deleted in the source folders:
3
+
it keeps the index in sync with the source folders effortlessly.
2
4
3
5
## Prerequisite
4
6
@@ -25,35 +27,39 @@ Before running the example, you need to:
25
27
26
28
Install dependencies:
27
29
28
-
```bash
30
+
```sh
29
31
pip install -e .
30
32
```
31
33
32
34
Setup:
33
35
34
-
```bash
36
+
```sh
35
37
python main.py cocoindex setup
36
38
```
37
39
38
-
Update index:
39
-
40
-
```bash
41
-
python main.py cocoindex update
42
-
```
43
-
44
40
Run:
45
41
46
-
```bash
42
+
```sh
47
43
python main.py
48
44
```
49
45
46
+
During running, it will keep observing changes in the source folders and update the index automatically.
47
+
At the same time, it accepts queries from the terminal, and performs search on top of the up-to-date index.
48
+
49
+
50
50
## CocoInsight
51
51
CocoInsight is in Early Access now (Free) 😊 You found us! A quick 3 minute video tutorial about CocoInsight: [Watch on YouTube](https://youtu.be/ZnmyoHslBSc?si=pPLXWALztkA710r9).
52
52
53
53
Run CocoInsight to understand your RAG data pipeline:
54
54
55
-
```
55
+
```sh
56
56
python main.py cocoindex server -c https://cocoindex.io
57
57
```
58
58
59
+
You can also add a `-L` flag to make the server keep updating the index to reflect source changes at the same time:
60
+
61
+
```sh
62
+
python main.py cocoindex server -c https://cocoindex.io -L
63
+
```
64
+
59
65
Then open the CocoInsight UI at [https://cocoindex.io/cocoinsight](https://cocoindex.io/cocoinsight).
0 commit comments