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.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package embedding-qdrant-driver

x-laravel/embedding — Qdrant Driver

Tests PHP Laravel

Qdrant vector database driver for x-laravel/embedding.

How It Works

Requirements

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 SQL tables and the Qdrant collection

Migrations are not loaded automatically. Publish the core migrations (embeddings and embeddables tables) and this driver's Qdrant collection migration, then run them:

The embedding-qdrant tag also publishes config/embedding-qdrant-driver.php.

Note: The Qdrant collection is created with cosine similarity. The EMBEDDING_DIMENSIONS config 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. A threshold of 0.0 returns every match; a positive value is passed to Qdrant as score_threshold.

Payload filtering

Models using #[EmbedPayload] can filter similarity searches inside Qdrant:

How the payload reaches Qdrant:

Filter keys must match ^[A-Za-z_][A-Za-z0-9_]*$. For large collections, create Qdrant payload indexes on embeddable_type, slot and the payload.<key> fields you filter on.

Note: Qdrant points are not deleted when their embeddings rows are: deleting a model, embedding:vector:clear and embedding:vector:clean remove SQL rows only, and embedding:payload:clear / embedding:payload:clean bypass the PayloadStore. Search results stay correct because hits are checked against SQL, but the stale points remain in the collection and count against limit. Run embedding:payload:sync --force after clearing payloads if you want Qdrant back in step.

Testing

License

This package is open-sourced software licensed under the MIT license.


All versions of embedding-qdrant-driver with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
illuminate/support Version ^12.0|^13.0
illuminate/http Version ^12.0|^13.0
x-laravel/embedding Version ^1.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package x-laravel/embedding-qdrant-driver contains the following files

Loading the files please wait ...