🔧 AI Nachrichten Major AI platforms go down in unprecedented simultaneous outage(03.09.2026 um 17:34 Uhr)
🔧 AI Nachrichten ChatGPT, Claude, and Grok Down? Users Report Widespread Outages(03.09.2026 um 19:14 Uhr)
🔧 AI Nachrichten OpenAI Launches GPT-6 Astra, Says We May Have Entered the AGI Era(03.09.2026 um 22:08 Uhr)
🔧 AI Nachrichten Claude Comes to CarPlay as Fifth Major AI Chatbot App(05.09.2026 um 05:31 Uhr)
🔧 AI Nachrichten OpenAI’s GPT-6 Astra Is AGI, Says NVIDIA CEO Jensen Huang(07.09.2026 um 06:31 Uhr)
🔧 AI Nachrichten Blame AI companies for Mac mini and Mac Studio shortage(31.08.2026 um 10:32 Uhr)
🔧 AI Nachrichten Major AI platforms go down in unprecedented simultaneous outage(03.09.2026 um 17:34 Uhr)
🔧 AI Nachrichten ChatGPT, Claude, and Grok Down? Users Report Widespread Outages(03.09.2026 um 19:14 Uhr)
🔧 AI Nachrichten OpenAI Launches GPT-6 Astra, Says We May Have Entered the AGI Era(03.09.2026 um 22:08 Uhr)
🔧 AI Nachrichten Claude Comes to CarPlay as Fifth Major AI Chatbot App(05.09.2026 um 05:31 Uhr)
🔧 AI Nachrichten OpenAI’s GPT-6 Astra Is AGI, Says NVIDIA CEO Jensen Huang(07.09.2026 um 06:31 Uhr)
🔧 AI Nachrichten Blame AI companies for Mac mini and Mac Studio shortage(31.08.2026 um 10:32 Uhr)

🔧 Programmierung 🕛 kürzlich 4 Min Lesezeit
0

Kdrant: an idiomatic, coroutine-first Kotlin client for Qdrant

↗ Quelle (dev.to)
🗣️ Stimme:
📑 Inhaltsübersicht

If you build on the JVM and want to use is the client you'd actually want to write Kotlin against:





  • Coroutine-first — every operation is a suspend function, with cooperative cancellation and timeouts


  • Type-safe DSLs for collections, points, payloads, and filters


  • Small footprint — a pure-Kotlin REST engine on Ktor + kotlinx-serialization; no gRPC, Netty, or protobuf


  • Typed errors — a sealed KdrantException you can handle exhaustively



It's stable (1.1.0, SemVer) and published to Maven Central under io.github.nacode-studios.






Quick start



Requires JDK 17+. One dependency:




CODE
dependencies {
implementation("io.github.nacode-studios:kdrant-transport-rest:1.1.0")
}






Spin up Qdrant locally:




CODE
docker run -p 6333:6333 qdrant/qdrant






Connect, create a collection, upsert, search:




CODE
val qdrant = Kdrant(host = "localhost", port = 6333) {
apiKey = System.getenv("QDRANT_API_KEY") // omit for a local, unauthenticated node
requestTimeout = 5.seconds
}

qdrant.use { client ->
client.createCollection("articles") {
vector { size = 1_536; distance = Distance.COSINE }
}

client.upsert("articles", wait = true) {
point(id = 1) {
vector(embedding) // your List<Float> from any embedding model
payload("title" to "Introduction", "lang" to "en", "year" to 2026)
}
}

val hits = client.search("articles") {
query(queryVector)
limit = 5
filter { must { "lang" eq "en" } }
}
}






Kdrant stores and searches vectors you already have — it does not generate embeddings.






A filter DSL that reads like Kotlin



Qdrant's full filtering model, expressed declaratively:




CODE
val query = filter {
must {
"lang" eq "en"
"year" gte 2024
"price" between 10.0..99.0
}
should {
matchAny("tag", "featured", "promo")
geoRadius("location", GeoPoint(lon = 13.40, lat = 52.52), radius = 5_000.0)
}
mustNot { "archived" eq true }
}









Decode results straight into your types






CODE
@Serializable data class Article(val title: String, val lang: String)

val articles: List<Hit<Article>> = qdrant.searchAs<Article>("articles") {
query(queryVector); limit = 5
}
val first: Article? = articles.firstOrNull()?.payload









Hybrid search (dense + sparse)



The modern /points/query engine is fully supported. Fuse several prefetch sources with Reciprocal Rank Fusion for true dense + keyword hybrid search:




CODE
val hits = qdrant.search("articles") {
prefetch { query(denseVector); using = "text"; limit = 50 }
prefetch { querySparse(indices, values); using = "keywords"; limit = 50 }
rrf() // or dbsf()
limit = 10
}






recommend / discover / context, grouped and batch search, multi-vectors, and a Flow-based scroll are all there too.






Building RAG? It plugs in.



Kdrant ships first-class integrations so you don't wire it by hand:





  • Spring Boot starter — an auto-configured QdrantClient bean


  • Spring AI — implements VectorStore


  • LangChain4j — implements EmbeddingStore



There's a runnable

  • 📦 Maven Central: io.github.nacode-studios:kdrant-transport-rest:1.1.0

  • 📖 API docs: https://nacode-studios.github.io/Kdrant/

  • 🪪 Apache-2.0



  • Feedback is very welcome — especially on API ergonomics. If there's something you'd want from a Kotlin-native Qdrant client, open an issue and let's talk.

    Vollständiger Original-Bericht
    Ausführliche Details, Code-Beispiele & Hersteller-Stellungnahme auf dev.to.
    ↗ Original-Artikel auf dev.to lesen
    Wie bewertest du diesen Beitrag?
    1 Klick Feedback
    Teilen mit Netzwerk & Team:

    Community-Analysen & Experten-Meinungen 0

    Verfasse deine eigene Analyse, teile Workarounds oder diskutiere diesen Vorfall im Blog.
    Noch keine Community-Analyse verfasst. Markiere einen Textabschnitt oder klicke oben auf Eigene Analyse verfassen“!
    Community Pulse: Relevanz-Einschätzung
    1 Klick Experten-Votum
    🔴 Akute Relevanz 0%
    🟡 In Evaluierung 0%
    🟢 Keine Auswirkung 0%
    Spannende Innovation 0%
    Verwandte Story-Cluster & Quellen (Vektor-KI)
    Port 8095 Engine
    3 Quellen
    GPT-6 Astra Release Today? OpenAI’s Next Major AI Model Is Almost Here
    1 Quelle
    Apple accuses OpenAI of destroying evidence as trade-secrets fight intensifies
    1 Quelle
    Major AI platforms go down in unprecedented simultaneous outage
    Ähnliche Beiträge
    🔍 Verwandte News

    Auch interessante Nachrichten Kdrant: an idiomatic, coroutine-first Kotlin client for Qdrant

    Thematisch verwandte Begriffe: Kdrant, idiomatic, coroutinefirst, Kotlin · 6 Treffer

    Laden...

    Videos werden geladen ...

    Laden...

    Beiträge werden geladen ...

    Laden...

    Videos werden geladen ...

    Laden...

    Beiträge werden geladen ...

    Laden...

    Videos werden geladen ...

    Laden...

    Beiträge werden geladen ...

    Laden...

    Videos werden geladen ...

    Laden...

    Beiträge werden geladen ...

    Laden...

    Videos werden geladen ...