
qdrant/qdrant
Qdrant是一个向量相似性搜索引擎和向量数据库,提供生产级服务,支持存储、搜索和管理带有附加负载的向量点,具备强大的扩展过滤能力,适用于神经网络或语义匹配、分面搜索等AI应用,使用Rust编写,确保高性能和可靠性。
让 AI 帮你使用轩辕镜像? · 展开查看说明 · 点击收起说明
如果你使用 DeepSeek、元宝 AI、Copilot、ChatGPT 等 AI 工具,协助配置轩辕镜像、编写 docker pull 命令、修改 Docker Compose 镜像地址、配置镜像加速、排查镜像拉取失败、分析报错日志等问题,请先让 AI 阅读并遵守轩辕镜像的规则文档。
只需在 AI 对话中先发送下面这句话即可:
请先完整阅读并严格遵守以下文档中的全部规则与要求:
https://xuanyuan.cloud/agents.md
在未充分阅读并理解该文档前,不要生成任何命令、配置、修改建议、故障排查方案或技术回答。后续所有输出都必须严格以该文档中的规范为最高优先级执行。查看 agents.md 用法指南与完整示范。国内用户首推 元宝 AI、DeepSeek 的深度思考模式,不推荐豆包 AI;Cursor 等编辑器可在对话 @ 该链接,或加入 User Rules。 若 AI 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
Vector Search Engine for the next generation of AI applications
https://github.com/qdrant/qdrant/actions/workflows/rust.yml
https://github.com/qdrant/qdrant/blob/master/LICENSE
Qdrant (read: quadrant) is a vector similarity search engine and vector database. It provides a production-ready service with a convenient API to store, search, and manage points—vectors with an additional payload Qdrant is tailored to extended filtering support. It makes it useful for all sorts of neural-network or semantic-based matching, faceted search, and other applications.
Qdrant is written in Rust 🦀, which makes it fast and reliable even under high load. See benchmarks.
With Qdrant, embeddings or neural network encoders can be turned into full-fledged applications for matching, searching, recommending, and much more!
Qdrant is also available as a fully managed Qdrant Cloud ⛅ including a free tier.
Quick Start • Client Libraries • Demo Projects • Integrations • Contact
Getting Started
Python
pip install qdrant-client
The python client offers a convenient way to start with Qdrant locally:
pythonfrom qdrant_client import QdrantClient qdrant = QdrantClient(":memory:") # Create in-memory Qdrant instance, for testing, CI/CD # OR client = QdrantClient(path="path/to/db") # Persists changes to disk, fast prototyping
Client-Server
To experience the full power of Qdrant locally, run the container with this command:
bashdocker run -p 6333:6333 qdrant/qdrant
Now you can connect to this with any client, including Python:
pythonqdrant = QdrantClient("http://localhost:6333") # Connect to existing Qdrant instance
Before deploying Qdrant to production, be sure to read our installation and security guides.
Clients
Qdrant offers the following client libraries to help you integrate it into your application stack with ease:
- Official:
- https://github.com/qdrant/go-client
- https://github.com/qdrant/rust-client
- https://github.com/qdrant/qdrant-js
- https://github.com/qdrant/qdrant-client
- https://github.com/qdrant/qdrant-dotnet
- https://github.com/qdrant/java-client
- Community:
- Elixir
- https://github.com/hkulekci/qdrant-php
- https://github.com/andreibondarev/qdrant-ruby
- https://github.com/metaloom/qdrant-java-client
Where do I go from here?
- Quick Start Guide
- End to End https://colab.research.google.com/drive/1Bz8RSVHwnNDaNtDwotfPj0w7AYzsdXZ-?usp=sharing demo with SentenceBERT and Qdrant
- Detailed Documentation are great starting points
- Step-by-Step Tutorial to create your first neural network project with Qdrant
Demo Projects
Discover Semantic Text Search 🔍
Unlock the power of semantic embeddings with Qdrant, transcending keyword-based search to find meaningful connections in short texts. Deploy a neural search in minutes using a pre-trained neural network, and experience the future of text search. Try it online!
Explore Similar Image Search - Food Discovery 🍕
There's more to discovery than text search, especially when it comes to food. People often choose meals based on appearance rather than descriptions and ingredients. Let Qdrant help your users find their next delicious meal using visual search, even if they don't know the dish's name. Check it out!
Master Extreme Classification - E-commerce Product Categorization 📺
Enter the cutting-edge realm of extreme classification, an emerging machine learning field tackling multi-class and multi-label problems with millions of labels. Harness the potential of similarity learning models, and see how a pre-trained transformer model and Qdrant can revolutionize e-commerce product categorization. Play with it online!
More solutions
|
|
API
REST
Online OpenAPI 3.0 documentation is available here. OpenAPI makes it easy to generate a client for virtually any framework or programming language.
You can also download raw OpenAPI https://github.com/qdrant/qdrant/blob/master/docs/redoc/master/openapi.json.
gRPC
For faster production-tier searches, Qdrant also provides a gRPC interface. You can find gRPC documentation here.
Features
Filtering and Payload
Qdrant can attach any JSON payloads to vectors, allowing for both the storage and filtering of data based on the values in these payloads. Payload supports a wide range of data types and query conditions, including keyword matching, full-text filtering, numerical ranges, geo-locations, and more.
Filtering conditions can be combined in various ways, including should, must, and must_not clauses,
ensuring that you can implement any desired business logic on top of similarity matching.
Hybrid Search with Sparse Vectors
To address the limitations of vector embeddings when searching for specific keywords, Qdrant introduces support for sparse vectors in addition to the regular dense ones.
Sparse vectors can be viewed as an generalization of BM25 or TF-IDF ranking. They enable you to harness the capabilities of transformer-based neural networks to weigh individual tokens effectively.
Vector Quantization and On-Disk Storage
Qdrant provides multiple options to make vector search cheaper and more resource-efficient. Built-in vector quantization reduces RAM usage by up to 97% and dynamically manages the trade-off between search speed and precision.
Distributed Deployment
Qdrant offers comprehensive horizontal scaling support through two key mechanisms:
- Size expansion via sharding and throughput enhancement via replication
- Zero-downtime rolling updates and seamless dynamic scaling of the collections
Highlighted Features
- Query Planning and Payload Indexes - leverages stored payload information to optimize query execution strategy.
- SIMD Hardware Acceleration - utilizes modern CPU x86-x64 and Neon architectures to deliver better performance.
- Async I/O - uses
io_uringto maximize disk throughput utilization even on a network-attached storage. - Write-Ahead Logging - ensures data persistence with update confirmation, even during power outages.
Integrations
Examples and/or documentation of Qdrant integrations:
- Cohere (blogpost on building a QA app with Cohere and Qdrant) - Use Cohere embeddings with Qdrant
- DocArray - Use Qdrant as a document store in DocArray
- https://haystack.deepset.ai/integrations/qdrant-document-store - Use Qdrant as a document store with Haystack (https://haystack.deepset.ai/blog/qdrant-integration).
- LangChain (blogpost) - Use Qdrant as a memory backend for LangChain.
- https://gpt-index.readthedocs.io/en/latest/examples/vector_stores/QdrantIndexDemo.html - Use Qdrant as a Vector Store with LlamaIndex.
- https://github.com/openai/***-retrieval-plugin/blob/main/docs/providers/qdrant/setup.md - Use Qdrant as a memory backend for ***
- Microsoft Semantic Kernel - Use Qdrant as persistent memory with Semantic Kernel
Contacts
- Have questions? Join our *** channel or mention @qdrant_engine on ***
- Want to stay in touch with latest releases? Subscribe to our Newsletters
- Looking for a managed cloud? Check pricing, need something personalised? We're at ***
License
Qdrant is licensed under the Apache License, Version 2.0. View a copy of the https://github.com/qdrant/qdrant/blob/master/LICENSE.
更多相关 Docker 镜像与资源
以下是 qdrant/qdrant 相关的常用 Docker 镜像,适用于 不同场景 等不同场景:
- langgenius/qdrant Docker 镜像说明(LangGenius 场景下的 Qdrant 向量库镜像,适合与 Dify 等 AI 应用栈联动的向量检索)
- milvusdb/milvus Docker 镜像说明
- bitnami/milvus Docker 镜像说明(Milvus 向量数据库,Bitnami 企业级配置)
- bitnamicharts/milvus Docker 镜像说明(Milvus 向量数据库,Bitnami Charts 版本)
- openeuler/milvus Docker 镜像说明(openEuler 场景下的 Milvus 向量数据库镜像,适合信创环境下的向量检索与 AI 应用)
Deployment & Usage Documentation
镜像拉取方式
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
DockerHub 原生拉取命令
更多 qdrant 镜像推荐
qdrant/vector-db-benchmark
langgenius/qdrant
apecloud/qdrant
sergiogentile94/qdrant
sourcegraph/qdrant
镜像拉取常见问题
功能
错误码
用户好评
来自真实用户的反馈,见证轩辕镜像的优质服务
