承接 hyperf/qdrant-client 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

hyperf/qdrant-client

最新稳定版本:v0.0.3

Composer 安装命令:

composer require hyperf/qdrant-client

包简介

无描述信息

README 文档

README

Install

composer require hyperf/qdrant-client

Usage

An example to create a collection:

use App\VectorStore\Qdrant\Config; use Hyperf\Qdrant\Api\Collections; use Hyperf\Qdrant\Api\Points; use Hyperf\Qdrant\Connection\HttpClient; use Hyperf\Qdrant\Struct\Collections\Enums\Distance; use Hyperf\Qdrant\Struct\Collections\VectorParams; use Hyperf\Qdrant\Struct\Points\ExtendedPointId; use Hyperf\Qdrant\Struct\Points\Point\PointStruct; use Hyperf\Qdrant\Struct\Points\SearchCondition\FieldCondition; use Hyperf\Qdrant\Struct\Points\SearchCondition\Filter; use Hyperf\Qdrant\Struct\Points\SearchCondition\Match\MatchValue; use Hyperf\Qdrant\Struct\Points\VectorStruct; $client = new HttpClient(new Config(...)); $collections = new Collections($client); $collections->createCollection('test_collection', new VectorParams(1536, Distance::COSINE)); # insert vector data $points = new Points($client); $points->setWait(true); $points->upsertPoints('test_collection', [ new PointStruct( new ExtendedPointId($key + 10000), new VectorStruct($data['embeddings'][0]), [ # payload 'name' => $data['name'], 'description' => $data['description'], 'image' => $data['image'], ], ), ]); # similarity search $result = $points->searchPoints( 'test_collection', new VectorStruct($data['embeddings'][0]), 3, withPayload: new WithPayload(true), ); print_r($result); # payload filter $result = $points->searchPoints( 'test_collection', new VectorStruct($data['embeddings'][0]), 3, new Filter( must: [ new FieldCondition('name', new MatchValue('qdrant')), ] ), withPayload: new WithPayload(true), ); print_r($result);

统计信息

  • 总下载量: 9.1k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 4
  • 点击次数: 3
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 4
  • Watchers: 3
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固