Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ ktlint_standard_no-wildcard-imports = enabled
# single-line `{ a; b }` blocks, and expression bodies kept on one line where they fit. ktlint still gates
# imports, indentation, spacing, blank lines, and the 120-column limit.
ktlint_standard_function-naming = disabled
# ktlint 14 introduced class-signature and function-signature, which collapse a multi-line parameter
# list onto one line whenever it fits and push the supertype onto its own line. That is the aggressive
# wrapping this file already opted out of by choosing intellij_idea over ktlint_official, so it stays off.
ktlint_standard_class-signature = disabled
ktlint_standard_function-signature = disabled
ktlint_standard_function-signature = disabled
ktlint_standard_statement-wrapping = disabled
ktlint_standard_if-else-bracing = disabled
Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ serialization = "1.11.0"
ktor = "3.5.1"
junit = "6.1.2"
testcontainers = "2.0.5"
ktlint = "12.1.2"
ktlint = "14.2.0"
detekt = "1.23.8"
kover = "0.9.9"
kotest = "6.2.3"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,10 @@ internal class DefaultQdrantClient(
) {
val built = FilterBuilder().apply(filter).build()
require(
!built.must.isNullOrEmpty() || !built.should.isNullOrEmpty() ||
!built.mustNot.isNullOrEmpty() || built.minShould != null,
!built.must.isNullOrEmpty() ||
!built.should.isNullOrEmpty() ||
!built.mustNot.isNullOrEmpty() ||
built.minShould != null,
) {
"delete-by-filter requires at least one condition; an empty filter would match every point"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,9 @@ public class KdrantVectorStore(
runBlocking { client.delete(collectionName, idList.map { PointId.uuid(it) }) }
}

override fun delete(filterExpression: Filter.Expression) {
throw UnsupportedOperationException(
"kdrant-spring-ai does not yet support delete by a metadata filter expression",
)
}
override fun delete(filterExpression: Filter.Expression): Unit = throw UnsupportedOperationException(
"kdrant-spring-ai does not yet support delete by a metadata filter expression",
)

override fun similaritySearch(request: SearchRequest): List<Document> {
if (request.hasFilterExpression()) {
Expand Down