Camel Spring Boot

Qdrant

Create, inspect and delete collections, and upsert, retrieve, delete and search points in the Qdrant vector database.

What’s inside

Please refer to the above links for usage and configuration details.

Maven coordinates

<dependency>
    <groupId>org.apache.camel.springboot</groupId>
    <artifactId>camel-qdrant-starter</artifactId>
</dependency>

Spring Boot Auto-Configuration

The starter supports 12 options, which are listed below.

Name Description Default Type

camel.component.qdrant.action

The action to perform. The CamelQdrantAction header, when set, wins over this option.

QdrantAction

camel.component.qdrant.api-key

The API key that the client sends in the api-key metadata of each gRPC request to authenticate with Qdrant. If not set, the client sends no credentials. Not used when a QdrantClient is set with QdrantConfiguration.setClient().

String

camel.component.qdrant.autowired-enabled

Whether autowiring is enabled. This is used for automatic autowiring options (the option must be marked as autowired) by looking up in the registry to find if there is a single instance of matching type, which then gets configured on the component. This can be used for automatic configuring JDBC data sources, JMS connection factories, AWS Clients, etc.

true

Boolean

camel.component.qdrant.configuration

The configuration that the endpoints of this component start from: each endpoint gets a copy of it, and its own options override the copy. The option is a org.apache.camel.component.qdrant.QdrantConfiguration type.

QdrantConfiguration

camel.component.qdrant.enabled

Whether to enable auto configuration of the qdrant component. This is enabled by default.

Boolean

camel.component.qdrant.filter

The Filter that the points must match in SIMILARITY_SEARCH, such as conditions on payload fields. The other actions do not use it. If the registry has a single Filter bean, it is used automatically (autowired). The option is a io.qdrant.client.grpc.Common.Filter type.

Common$Filter

camel.component.qdrant.host

The host name or IP address of the Qdrant server. Not used when a QdrantClient is set with QdrantConfiguration.setClient().

localhost

String

camel.component.qdrant.lazy-start-producer

Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a producer may otherwise fail during starting and cause the route to fail being started. By deferring this startup to be lazy then the startup failure can be handled during routing messages via Camel’s routing error handlers. Beware that when the first message is processed then creating and starting the producer may take a little time and prolong the total processing time of the processing.

false

Boolean

camel.component.qdrant.max-results

The maximum number of points that SIMILARITY_SEARCH returns (the limit of the query). The CamelQdrantMaxResults header, when set, wins over this option.

3

Integer

camel.component.qdrant.port

The gRPC port of the Qdrant server (the REST port 6333 does not work). Not used when a QdrantClient is set with QdrantConfiguration.setClient().

6334

Integer

camel.component.qdrant.timeout

The deadline of each gRPC request, such as 5s or PT5S (a plain number is milliseconds). A request that takes longer fails with DEADLINE_EXCEEDED. If not set, the requests have no deadline. When a QdrantClient is set with QdrantConfiguration.setClient(), it applies only to SIMILARITY_SEARCH.

Duration

camel.component.qdrant.tls

Whether to connect to the Qdrant server with TLS. The client trusts the certificate authorities of the JVM. If false, the connection is plaintext, and the API key is sent in clear text. Not used when a QdrantClient is set with QdrantConfiguration.setClient().

false

Boolean