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: docs/docs/ops/storages.md
+18-5Lines changed: 18 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,8 +27,21 @@ The spec takes the following fields:
27
27
28
28
*`api_key` (type: `str`, optional). API key to authenticate requests with.
29
29
30
-
The field name for the vector embeddings must match the [vector name](https://qdrant.tech/documentation/concepts/vectors/#named-vectors) used when the collection was created.
31
-
32
-
If no primary key is set during export, a random UUID is used as the Qdrant point ID.
33
-
34
-
You can find an end-to-end example [here](https://github.com/cocoindex-io/cocoindex/tree/main/examples/text_embedding).
30
+
Before exporting, you must create a collection with a [vector name](https://qdrant.tech/documentation/concepts/vectors/#named-vectors) that matches the vector field name in CocoIndex, and set `setup_by_user=True` during export.
Simple example for cocoindex: build embedding index based on local files.
2
2
3
-
Example to build a vector index in Qdrant based on local files.
4
-
5
-
## Pre-requisites
6
-
7
-
-[Install Postgres](https://cocoindex.io/docs/getting_started/installation#-install-postgres) if you don't have one.
8
-
9
-
- Run Qdrant.
10
-
11
-
```bash
12
-
docker run -d -p 6334:6334 -p 6333:6333 qdrant/qdrant
13
-
```
14
-
15
-
-[Create a collection](https://qdrant.tech/documentation/concepts/vectors/#named-vectors) to export the embeddings to.
16
-
17
-
```bash
18
-
curl -X PUT \
19
-
'http://localhost:6333/collections/cocoindex' \
20
-
--header 'Content-Type: application/json' \
21
-
--data-raw '{
22
-
"vectors": {
23
-
"text_embedding": {
24
-
"size": 384,
25
-
"distance": "Cosine"
26
-
}
27
-
}
28
-
}'
29
-
```
30
-
31
-
You can view the collections and data with the Qdrant dashboard at <http://localhost:6333/dashboard>.
3
+
## Prerequisite
4
+
[Install Postgres](https://cocoindex.io/docs/getting_started/installation#-install-postgres) if you don't have one.
32
5
33
6
## Run
34
7
@@ -56,14 +29,13 @@ Run:
56
29
python main.py
57
30
```
58
31
59
-
## CocoInsight
60
-
32
+
## CocoInsight
61
33
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).
62
34
63
35
Run CocoInsight to understand your RAG data pipeline:
64
36
65
-
```bash
37
+
```
66
38
python main.py cocoindex server -c https://cocoindex.io
67
39
```
68
40
69
-
Then open the CocoInsight UI at [https://cocoindex.io/cocoinsight](https://cocoindex.io/cocoinsight).
41
+
Then open the CocoInsight UI at [https://cocoindex.io/cocoinsight](https://cocoindex.io/cocoinsight).
Example to build a vector index in Qdrant based on local files.
4
+
5
+
## Pre-requisites
6
+
7
+
-[Install Postgres](https://cocoindex.io/docs/getting_started/installation#-install-postgres) if you don't have one.
8
+
9
+
- Run Qdrant.
10
+
11
+
```bash
12
+
docker run -d -p 6334:6334 -p 6333:6333 qdrant/qdrant
13
+
```
14
+
15
+
-[Create a collection](https://qdrant.tech/documentation/concepts/vectors/#named-vectors) to export the embeddings to.
16
+
17
+
```bash
18
+
curl -X PUT \
19
+
'http://localhost:6333/collections/cocoindex' \
20
+
--header 'Content-Type: application/json' \
21
+
--data-raw '{
22
+
"vectors": {
23
+
"text_embedding": {
24
+
"size": 384,
25
+
"distance": "Cosine"
26
+
}
27
+
}
28
+
}'
29
+
```
30
+
31
+
You can view the collections and data with the Qdrant dashboard at <http://localhost:6333/dashboard>.
32
+
33
+
## Run
34
+
35
+
Install dependencies:
36
+
37
+
```bash
38
+
pip install -e .
39
+
```
40
+
41
+
Setup:
42
+
43
+
```bash
44
+
python main.py cocoindex setup
45
+
```
46
+
47
+
Update index:
48
+
49
+
```bash
50
+
python main.py cocoindex update
51
+
```
52
+
53
+
Run:
54
+
55
+
```bash
56
+
python main.py
57
+
```
58
+
59
+
## CocoInsight
60
+
61
+
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).
62
+
63
+
Run CocoInsight to understand your RAG data pipeline:
64
+
65
+
```bash
66
+
python main.py cocoindex server -c https://cocoindex.io
67
+
```
68
+
69
+
Then open the CocoInsight UI at [https://cocoindex.io/cocoinsight](https://cocoindex.io/cocoinsight).
0 commit comments