-
Download the latest connector zip file from Github Releases.
-
Refer to the first 3 steps of the Kafka Quickstart to set up a local Kafka instance and create a topic named
topic_0
. -
Navigate to the Kafka installation directory.
-
Unzip and copy the
qdrant-kafka-xxx
directory to your Kafka installation'slibs
directory. -
Update the
connect-standalone.properties
file in your Kafka installation'sconfig
directory.key.converter.schemas.enable=false value.converter.schemas.enable=false plugin.path=libs/qdrant-kafka-xxx
-
Create a
qdrant-kafka.properties
file in your Kafka installation'sconfig
directory.name=qdrant-kafka connector.class=io.qdrant.kafka.QdrantSinkConnector qdrant.grpc.url=https://xyz-example.eu-central.aws.cloud.qdrant.io:6334 qdrant.api.key=<paste-your-api-key-here> topics=topic_0
-
Start Kafka Connect with the configured properties.
bin/connect-standalone.sh config/connect-standalone.properties config/qdrant-kafka.properties
- You can now produce messages for the
topic_0
topic and they'll be written into the configured Qdrant instance.
bin/kafka-console-producer.sh --topic topic_0 --bootstrap-server localhost:9092
> { "collection_name": "{collection_name}", "id": 1, "vector": [ 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8 ], "payload": { "name": "kafka", "description": "Kafka is a distributed streaming platform", "url": "https://kafka.apache.org/" } }
Refer to the message formats for the available options when producing messages.