package com.correx.infrastructure.router.turbovec

import kotlinx.serialization.Serializable

@Serializable
data class SidecarRequest(
    val op: String,
    val id: String? = null,
    val vector: List<Float>? = null,
    val k: Int? = null,
    val path: String? = null,
    val dim: Int? = null,
    val bitWidth: Int? = null
)

@Serializable
data class SidecarHit(
    val id: String,
    val score: Float
)

@Serializable
data class SidecarResponse(
    val ok: Boolean,
    val error: String? = null,
    val hits: List<SidecarHit>? = null
)
