|
| 1 | +--- |
| 2 | +title: Qdrant |
| 3 | +description: Use Qdrant vector database |
| 4 | +--- |
| 5 | + |
| 6 | +import { BlockInfoCard } from "@/components/ui/block-info-card" |
| 7 | + |
| 8 | +<BlockInfoCard |
| 9 | + type="qdrant" |
| 10 | + color="#1A223F" |
| 11 | + icon={true} |
| 12 | + iconSvg={`<svg className="block-icon" fill='none' viewBox='0 0 49 56' xmlns='http://www.w3.org/2000/svg'> |
| 13 | + <g clip-path='url(#b)'> |
| 14 | + <path |
| 15 | + d='m38.489 51.477-1.1167-30.787-2.0223-8.1167 13.498 1.429v37.242l-8.2456 4.7589-2.1138-4.5259z' |
| 16 | + clipRule='evenodd' |
| 17 | + fill='#24386C' |
| 18 | + fillRule='evenodd' |
| 19 | + /> |
| 20 | + <path |
| 21 | + d='m48.847 14-8.2457 4.7622-17.016-3.7326-19.917 8.1094-3.3183-9.139 12.122-7 12.126-7 12.123 7 12.126 7z' |
| 22 | + clipRule='evenodd' |
| 23 | + fill='#7589BE' |
| 24 | + fillRule='evenodd' |
| 25 | + /> |
| 26 | + <path |
| 27 | + d='m0.34961 13.999 8.2457 4.7622 4.7798 14.215 16.139 12.913-4.9158 10.109-12.126-7.0004-12.123-7v-28z' |
| 28 | + clipRule='evenodd' |
| 29 | + fill='#B2BFE8' |
| 30 | + fillRule='evenodd' |
| 31 | + /> |
| 32 | + <path |
| 33 | + d='m30.066 38.421-5.4666 8.059v9.5207l7.757-4.4756 3.9968-5.9681' |
| 34 | + clipRule='evenodd' |
| 35 | + fill='#24386C' |
| 36 | + fillRule='evenodd' |
| 37 | + /> |
| 38 | + <path |
| 39 | + d='m24.602 36.962-7.7603-13.436 1.6715-4.4531 6.3544-3.0809 7.488 7.5343-7.7536 13.436z' |
| 40 | + clipRule='evenodd' |
| 41 | + fill='#7589BE' |
| 42 | + fillRule='evenodd' |
| 43 | + /> |
| 44 | + <path |
| 45 | + d='m16.843 23.525 7.7569 4.4756v8.9585l-7.1741 0.3087-4.3397-5.5412 3.7569-8.2016z' |
| 46 | + clipRule='evenodd' |
| 47 | + fill='#B2BFE8' |
| 48 | + fillRule='evenodd' |
| 49 | + /> |
| 50 | + <path |
| 51 | + d='m24.6 28 7.757-4.4752 5.2792 8.7903-6.3886 5.2784-6.6476-0.6346v-8.9589z' |
| 52 | + clipRule='evenodd' |
| 53 | + fill='#24386C' |
| 54 | + fillRule='evenodd' |
| 55 | + /> |
| 56 | + <path |
| 57 | + d='m32.355 51.524 8.2457 4.476v-37.238l-8.0032-4.6189-7.9995-4.6189-8.0031 4.6189-7.9995 4.6189v18.479l7.9995 4.6189 8.0031 4.6193 7.757-4.4797v9.5244zm0-19.045-7.757 4.4793-7.7569-4.4793v-8.9549l7.7569-4.4792 7.757 4.4792v8.9549z' |
| 58 | + clipRule='evenodd' |
| 59 | + fill='#DC244C' |
| 60 | + fillRule='evenodd' |
| 61 | + /> |
| 62 | + <path d='m24.603 46.483v-9.5222l-7.7166-4.4411v9.5064l7.7166 4.4569z' fill='url(#a)' /> |
| 63 | + </g> |
| 64 | + <defs> |
| 65 | + <linearGradient |
| 66 | + id='a' |
| 67 | + x1='23.18' |
| 68 | + x2='15.491' |
| 69 | + y1='38.781' |
| 70 | + y2='38.781' |
| 71 | + gradientUnits='userSpaceOnUse' |
| 72 | + > |
| 73 | + <stop stopColor='#FF3364' offset='0' /> |
| 74 | + <stop stopColor='#C91540' stopOpacity='0' offset='1' /> |
| 75 | + </linearGradient> |
| 76 | + <clipPath id='b'> |
| 77 | + <rect transform='translate(.34961)' fill='#fff' /> |
| 78 | + </clipPath> |
| 79 | + </defs> |
| 80 | + </svg>`} |
| 81 | +/> |
| 82 | + |
| 83 | +## Usage Instructions |
| 84 | + |
| 85 | +Store, search, and retrieve vector embeddings using Qdrant. Perform semantic similarity searches and manage your vector collections. |
| 86 | + |
| 87 | + |
| 88 | + |
| 89 | +## Tools |
| 90 | + |
| 91 | +### `qdrant_upsert_points` |
| 92 | + |
| 93 | +Insert or update points in a Qdrant collection |
| 94 | + |
| 95 | +#### Input |
| 96 | + |
| 97 | +| Parameter | Type | Required | Description | |
| 98 | +| --------- | ---- | -------- | ----------- | |
| 99 | +| `url` | string | Yes | Qdrant base URL | |
| 100 | +| `apiKey` | string | No | Qdrant API key \(optional\) | |
| 101 | +| `collection` | string | Yes | Collection name | |
| 102 | +| `points` | array | Yes | Array of points to upsert | |
| 103 | + |
| 104 | +#### Output |
| 105 | + |
| 106 | +| Parameter | Type | |
| 107 | +| --------- | ---- | |
| 108 | +| `status` | string | |
| 109 | +| `data` | string | |
| 110 | + |
| 111 | +### `qdrant_search_vector` |
| 112 | + |
| 113 | +Search for similar vectors in a Qdrant collection |
| 114 | + |
| 115 | +#### Input |
| 116 | + |
| 117 | +| Parameter | Type | Required | Description | |
| 118 | +| --------- | ---- | -------- | ----------- | |
| 119 | +| `url` | string | Yes | Qdrant base URL | |
| 120 | +| `apiKey` | string | No | Qdrant API key \(optional\) | |
| 121 | +| `collection` | string | Yes | Collection name | |
| 122 | +| `vector` | array | Yes | Vector to search for | |
| 123 | +| `limit` | number | No | Number of results to return | |
| 124 | +| `filter` | object | No | Filter to apply to the search | |
| 125 | +| `with_payload` | boolean | No | Include payload in response | |
| 126 | +| `with_vector` | boolean | No | Include vector in response | |
| 127 | + |
| 128 | +#### Output |
| 129 | + |
| 130 | +| Parameter | Type | |
| 131 | +| --------- | ---- | |
| 132 | +| `data` | string | |
| 133 | +| `status` | string | |
| 134 | + |
| 135 | +### `qdrant_fetch_points` |
| 136 | + |
| 137 | +Fetch points by ID from a Qdrant collection |
| 138 | + |
| 139 | +#### Input |
| 140 | + |
| 141 | +| Parameter | Type | Required | Description | |
| 142 | +| --------- | ---- | -------- | ----------- | |
| 143 | +| `url` | string | Yes | Qdrant base URL | |
| 144 | +| `apiKey` | string | No | Qdrant API key \(optional\) | |
| 145 | +| `collection` | string | Yes | Collection name | |
| 146 | +| `ids` | array | Yes | Array of point IDs to fetch | |
| 147 | +| `with_payload` | boolean | No | Include payload in response | |
| 148 | +| `with_vector` | boolean | No | Include vector in response | |
| 149 | + |
| 150 | +#### Output |
| 151 | + |
| 152 | +| Parameter | Type | |
| 153 | +| --------- | ---- | |
| 154 | +| `data` | string | |
| 155 | +| `status` | string | |
| 156 | + |
| 157 | + |
| 158 | + |
| 159 | +## Block Configuration |
| 160 | + |
| 161 | +### Input |
| 162 | + |
| 163 | +| Parameter | Type | Required | Description | |
| 164 | +| --------- | ---- | -------- | ----------- | |
| 165 | +| `operation` | string | Yes | Operation | |
| 166 | + |
| 167 | + |
| 168 | + |
| 169 | +### Outputs |
| 170 | + |
| 171 | +This block does not produce any outputs. |
| 172 | + |
| 173 | +## Notes |
| 174 | + |
| 175 | +- Category: `tools` |
| 176 | +- Type: `qdrant` |
0 commit comments