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
+8-2Lines changed: 8 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,6 +21,12 @@ Exports data to a [Qdrant](https://qdrant.tech/) collection.
21
21
22
22
The spec takes the following fields:
23
23
24
-
*`qdrant_url` (type: `str`, required): The [gRPC URL](https://qdrant.tech/documentation/interfaces/#grpc-interface) of the Qdrant instance. Defaults to `http://localhost:6334/`.
24
+
*`grpc_url` (type: `str`, required): The [gRPC URL](https://qdrant.tech/documentation/interfaces/#grpc-interface) of the Qdrant instance. Defaults to `http://localhost:6334/`.
25
25
26
-
*`collection` (type: `str`, required): The name of the collection to export the data to.
26
+
*`collection_name` (type: `str`, required): The name of the collection to export the data to.
27
+
28
+
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.
29
+
30
+
If no primary key is set during export, a random UUID is used as the Qdrant point ID.
31
+
32
+
You can find an end-to-end example [here](https://github.com/cocoindex-io/cocoindex/tree/main/examples/text_embedding).
Copy file name to clipboardExpand all lines: examples/text_embedding/README.md
+34-6Lines changed: 34 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,32 @@
1
-
Simple example for cocoindex: build embedding index based on local files.
1
+
## Description
2
2
3
-
## Prerequisite
4
-
[Install Postgres](https://cocoindex.io/docs/getting_started/installation#-install-postgres) if you don't have one.
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
+
```
5
30
6
31
## Run
7
32
@@ -23,19 +48,22 @@ Update index:
23
48
python main.py cocoindex update
24
49
```
25
50
51
+
You can now view the data in the Qdrant dashboard at <http://localhost:6333/dashboard>.
52
+
26
53
Run:
27
54
28
55
```bash
29
56
python main.py
30
57
```
31
58
32
-
## CocoInsight
59
+
## CocoInsight
60
+
33
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).
34
62
35
63
Run CocoInsight to understand your RAG data pipeline:
36
64
37
-
```
65
+
```bash
38
66
python main.py cocoindex server -c https://cocoindex.io
39
67
```
40
68
41
-
Then open the CocoInsight UI at [https://cocoindex.io/cocoinsight](https://cocoindex.io/cocoinsight).
69
+
Then open the CocoInsight UI at [https://cocoindex.io/cocoinsight](https://cocoindex.io/cocoinsight).
0 commit comments