Hello everyone,
After seeing the video by @Anthony_Lee on building a vector store with Qdrant, I wanted to try myself with a custom list of terms (10k) I want to use to classify projects. So I copied how @jimleuk did in his templates.
Unfortunately, I cannot figure out how to insert into Qdrant.
Here is my workflow:
[EDIT] For some reason the pinned data does not seem to show:
[
{
"good_label":
"combusting preparations [chemical additives to motor fuel]",
"class_id_int":
"1",
"good_id":
"U100040",
"class_id":
"U241824",
"good_id_int":
"0001"
},
{
"good_label":
"adhesives for industrial purposes",
"class_id_int":
"1",
"good_id":
"U100042",
"class_id":
"U241824",
"good_id_int":
"0002"
},
{
"good_label":
"salt for preserving, other than for foodstuffs",
"class_id_int":
"1",
"good_id":
"U100044",
"class_id":
"U241824",
"good_id_int":
"0003"
},
{
"good_label":
"auxiliary fluids for use with abrasives",
"class_id_int":
"1",
"good_id":
"U100046",
"class_id":
"U241824",
"good_id_int":
"0004"
},
{
"good_label":
"vulcanization accelerators",
"class_id_int":
"1",
"good_id":
"U100048",
"class_id":
"U241824",
"good_id_int":
"0005"
},
{
"good_label":
"anti-frothing solutions for batteries",
"class_id_int":
"1",
"good_id":
"U100050",
"class_id":
"U241824",
"good_id_int":
"0006"
},
{
"good_label":
"acetates [chemicals]",
"class_id_int":
"1",
"good_id":
"U100052",
"class_id":
"U241824",
"good_id_int":
"0007"
},
{
"good_label":
"acetate of cellulose, unprocessed",
"class_id_int":
"1",
"good_id":
"U100054",
"class_id":
"U241824",
"good_id_int":
"0008"
},
{
"good_label":
"bacteriological preparations for acetification",
"class_id_int":
"1",
"good_id":
"U100056",
"class_id":
"U241824",
"good_id_int":
"0009"
},
{
"good_label":
"acetic anhydride",
"class_id_int":
"1",
"good_id":
"U100058",
"class_id":
"U241824",
"good_id_int":
"0010"
}
]
The vector database has this config:
{
"params": {
"vectors": {
"term_vector": {
"size": 300,
"distance": "Cosine"
}
},
"shard_number": 1,
"replication_factor": 1,
"write_consistency_factor": 1,
"on_disk_payload": true
},
"hnsw_config": {
"m": 16,
"ef_construct": 100,
"full_scan_threshold": 10000,
"max_indexing_threads": 0,
"on_disk": false
},
"optimizer_config": {
"deleted_threshold": 0.2,
"vacuum_min_vector_number": 1000,
"default_segment_number": 2,
"max_segment_size": null,
"memmap_threshold": null,
"indexing_threshold": 20000,
"flush_interval_sec": 5,
"max_optimization_threads": null
},
"wal_config": {
"wal_capacity_mb": 32,
"wal_segments_ahead": 0
},
"quantization_config": null
}
And finally here is the error I get:
Fyi:
- If I run the CURL /collections/goods-services, I get no error so the collection does exist.
- I tried inserting with no metadata but I get the same error.
Thank you very much for your help!
Joachim
- n8n version: 1.54.1
- Database (default: SQLite): Default
- n8n EXECUTIONS_PROCESS setting (default: own, main): Default
- Running n8n via (Docker, npm, n8n cloud, desktop app): Docker
- Operating system: Ubuntu Server