Download the PHP package x-laravel/embedding-qdrant-driver without Composer
On this page you can find all versions of the php package x-laravel/embedding-qdrant-driver. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package embedding-qdrant-driver
x-laravel/embedding — Qdrant Driver
Qdrant vector database driver for x-laravel/embedding.
How It Works
- Implements
SimilarityDriver— registers as theqdrantdriver, similarity search runs entirely in Qdrant using its native ANN (Approximate Nearest Neighbor) engine - Implements
VectorStore— writes embeddings to both the SQLembeddingstable (for Eloquent relationships) and the Qdrant collection (for search)
Requirements
- PHP ^8.3
- Laravel ^12.0 | ^13.0
x-laravel/embedding ^1.0- Qdrant server (self-hosted or Qdrant Cloud)
Installation
The QdrantEmbeddingServiceProvider is auto-discovered and registers the qdrant driver automatically.
Setup
1. Configure x-laravel/embedding
Publish the config if you haven't already:
Set the similarity driver in config/embedding.php:
2. Configure Qdrant
Set the following environment variables:
Or publish the config to config/embedding-qdrant-driver.php for full customisation:
3. Create the Qdrant collection and SQL table
This publishes both the SQL embeddings table migration (from the core package) and creates the Qdrant collection.
Note: The Qdrant collection is created with cosine similarity. The
EMBEDDING_DIMENSIONSconfig value sets the vector size — it must match your AI model's output dimension.
4. Model
Follow the standard x-laravel/embedding setup. No Qdrant-specific changes are needed on your models.
Usage
The driver is transparent — use the standard x-laravel/embedding API:
All methods set a similarity_score float attribute on each returned model.
Testing
License
This package is open-sourced software licensed under the MIT license.
All versions of embedding-qdrant-driver with dependencies
illuminate/support Version ^12.0|^13.0
illuminate/http Version ^12.0|^13.0
x-laravel/embedding Version ^1.2