mirror of
https://github.com/slhaf/Partner.git
synced 2026-06-27 17:49:16 +08:00
chore: remove meaningless warn
This commit is contained in:
@@ -200,7 +200,7 @@ class Entity @JvmOverloads constructor(
|
||||
}
|
||||
|
||||
private fun loadIndexableData(state: JSONObject): IndexableData {
|
||||
val data = IndexableData(state.getDouble("confidence")?.toDouble() ?: 1.0)
|
||||
val data = IndexableData(state.getDouble("confidence") ?: 1.0)
|
||||
state.getJSONObject("vectors")?.forEach { (embeddingModel, vectorValue) ->
|
||||
val vectorArray = vectorValue as? JSONArray ?: return@forEach
|
||||
val vector = DoubleArray(vectorArray.size)
|
||||
|
||||
Reference in New Issue
Block a user