Documentation Index
Fetch the complete documentation index at: https://docs.textin.com/llms.txt
Use this file to discover all available pages before exploring further.
Qdrant
Qdrant 是一个向量相似性搜索引擎,它提供可用于生产环境的服务。 xParse支持 Qdrant Local、 Qdrant client-sever 以及 Qdrant Cloud的连接。参数说明
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
type | string | 是 | 固定为 "qdrant" |
url | string | 是 | Qdrant 的连接地址,如http://localhost:6333 |
collection_name | string | 是 | 集合(Collection)名称 |
dimension | integer | 是 | 向量维度,必须与 embed 模型维度一致(当前为 1024) |
api_key | string | 否 | Qdrant Cloud API Key |
prefer_grpc | boolean | 否 | 是否优先使用 gRPC(默认 False) |
如何获取 Qdrant Cloud 鉴权参数
-
注册 Qdrant Cloud 账号:
- 访问 Qdrant Cloud 官网
- 注册并登录账号
-
创建集群:
- 在 Qdrant Cloud 控制台创建新的集群
- 选择合适的地域和规格
- 等待集群创建完成
-
获取连接信息:
- 在集群详情页查看”连接地址”(Endpoint)
- 格式:
https://xxxxxxxxx.xxxxx.xxxxx.cloud.qdrant.io
-
获取 API Key:
- 进入”API Keys”页面
- 创建新的 API Key 或使用现有 Key
- 保存 API Key 值(注意:API Key 只显示一次,请妥善保存)
-
创建集合(可选):
- xParse client 会自动创建集合,但您也可以预先在控制台创建
- 确保集合的向量维度与 embed 模型一致(1024 维)
- xParse client 需要使用
record_id索引,如果该索引不存在会静默创建
配置示例
使用示例
数据 Schema
| 字段名 | 类型 | 说明 |
|---|---|---|
id | VARCHAR(128) | 元素唯一标识符(主键) |
vectors | FLOAT_VECTOR(1024) | 向量嵌入(1024 维) |
text | VARCHAR(65535) | 元素文本内容 |
record_id | VARCHAR(128) | 记录 ID |
metadata | JSON | 元数据信息(动态字段) |

