Skip to content

Commit

Permalink
fix: fix some empty issue
Browse files Browse the repository at this point in the history
  • Loading branch information
phodal committed Aug 13, 2023
1 parent a5c5864 commit 2b9a613
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion _fixtures/java/qdrant.http
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ Content-Type: application/json
"vector": [-0.110279165, -0.20323151, -0.19402212, 0.5687035, 0.23401435, -0.3581861, 0.5271091, 0.15083969, 0.34416556, 0.56494397, 0.22725289, 0.113635994, 0.13297962, 0.16670649, 0.18186933, -0.06564712, -0.15182413, 0.355111, -0.7163484, -0.04913767, -0.663516, 0.22934864, -0.004983654, 0.48360667, -0.05824821, 0.22712882, -0.5377796, -0.12723802, -0.13869843, -0.65868527, -0.09670005, -0.06010717, -0.34063816, -0.028756538, 0.20640771, -0.02175857, 0.060673315, -0.16044103, 0.08249193, -0.2743876, 0.013140768, -0.57382923, 0.09609735, -0.011499226, -0.008267462, -0.2613307, 0.18937238, -0.12832402, -0.17780983, 0.23589806, -0.30812678, -0.19349045, -0.1199696, -0.66233987, -0.03363161, -0.09512878, -0.42250982, 0.4612564, -0.03416545, -0.59481907, 0.7756756, -0.17171194, -0.74515057, 0.48214105, 0.109512895, -0.060159165, 0.03312962, 0.8364305, 0.5005641, -0.383744, -0.24040401, 0.46697685, -0.16124786, 0.47246695, 0.31220987, -0.07845653, 0.48405328, 0.0978297, 0.39955565, -0.38739052, 0.20320205, 0.37052405, -0.3384258, 0.40567085, 0.13302103, -0.5924873, 0.6553878, 0.2492858, -0.2113901, 0.039609537, 0.09936675, 0.011963151, 0.48122612, -0.087005295, -0.855067, 0.05195448, 0.21967377, -0.26883313, -0.28816518, 1.5938386, 0.016555792, 0.4605228, 0.3085129, 0.2848029, 0.21296711, 0.09154507, -0.38858747, 0.8437827, 0.16395916, 0.1798058, -0.14895085, 0.40634096, -0.37596753, -0.30977765, 0.53710127, 0.04905224, 0.59237546, -0.08046392, 0.28081483, 0.1994078, -0.21207093, 0.15927452, -0.2675248, -0.28623047, -0.18719508, -0.271465, 0.08163627, -1.7481325e-32, 0.7117869, 0.046314757, 0.08810749, 0.15848, 0.5094527, 0.5384492, -0.37314346, -0.25140703, -0.46735236, 0.23707624, -0.03525045, 0.04242001, -0.014994323, 0.32990482, 0.6873948, 0.1020777, -0.22182953, 0.50239617, 0.41482937, -0.4894677, -0.0010047754, 0.11522704, 0.4444447, 0.8956523, 0.112065874, -0.49681196, 0.27852637, -0.4289411, -0.35519376, 0.16644251, 0.005235652, -0.14812987, -0.3921808, -0.2539396, -0.058002263, -0.5353127, 0.44027257, -0.5862116, 0.48723444, 0.041912634, -0.39615956, -0.031653907, -0.22384675, -0.1660247, 0.47698462, 0.4447286, 0.08870772, 0.024380995, -0.16440527, 0.040698666, 0.25429553, -0.4433404, 0.12491482, -0.024511186, -0.1758517, 0.005671402, 0.1728404, -0.55925035, 0.7056008, 0.05783311, 0.507005, 0.18514593, -0.2557012, -0.49320444, -0.21200551, 0.118768364, 0.1765864, -0.051282704, 0.54867935, -0.04089139, -0.32395157, -0.2656132, 0.10571144, -0.10910803, -0.28008866, 0.10082736, -0.46323022, -0.41716757, -0.8656499, 0.30254444, 0.14473222, -0.31123692, -0.4305289, 0.29052138, 0.05334143, -0.48228803, -0.13061367, -0.27647334, 0.14793135, 0.18344998, -0.24634238, 0.38107178, 0.64464915, -0.23734172, -0.048561174, 2.568429e-32, -0.37187788, -0.2801578, -0.4365394, 0.6523815, -0.07841512, 0.057543516, 0.08467019, -0.006827136, -0.04405451, 0.5664455, -0.26514426, -0.47978082, 0.1894442, 0.579729, -0.0056093237, 0.3913045, 0.114259414, -0.6279835, -0.6148898, 0.5018132, -0.36704504, -0.2511385, -0.787425, 0.1256488, 0.46383405, 0.22579008, 0.34901974, 0.37562713, -0.3048062, -0.43956247, 0.61040634, -0.23435688, -0.3910474, -0.03822125, 0.0010235012, 0.7031872, 0.07300221, 0.1711, -0.03805649, -0.20503116, 0.31147385, -0.4113067, 0.2830288, 0.81740123, -0.4922081, 0.047529582, -0.6890304, 0.32192668, 0.036708724, 0.20717506, -0.60736126, -0.40349212, 0.35182294, -0.31327686, 0.027656319, -0.09882919, -0.46388862, -0.1835417, -0.37170517, 0.3430324, 0.087905385, 0.39683786, -0.24925108, 0.5404869, -0.20595808, -0.6918924, 0.12369304, 0.136187, -0.43145856, 0.17041536, 0.93080807, 0.34820393, 0.28278932, -0.048433464, -0.0042013726, 0.36461926, -0.23178981, 0.52015966, -0.23646581, -0.2645026, -0.07448574, -0.19077025, 0.25949025, 0.05321908, -0.1630237, -0.40390202, 0.27623382, 0.23623504, -0.07707992, -0.44474483, -0.08484307, -0.30488634, -0.31630877, 0.5552085, 0.26741418, -8.796744e-8, -0.42388526, -0.7835722, 0.31339005, 0.18535687, 0.4912046, 0.3799179, 0.46367088, 0.22452867, 0.06597305, 0.6768408, -0.0422195, -0.31624988, 0.15983607, 0.5498157, 0.10440541, -0.68329877, 0.20370972, -0.7067054, -0.083996125, -0.1465518, -0.04802907, -0.082606874, -0.091461994, -0.1620254, 0.11281832, -0.39109156, 0.052334744, 0.45771384, -0.14178409, 0.12591025, -0.07683225, 0.20745273, -0.10680809, -0.07593716, 0.37663043, -0.2506283, -0.0801289, -0.34662268, -0.28494385, -0.7509082, 0.07219892, 0.04742825, 0.97876126, -0.35832188, -0.38610053, -0.1257224, 0.05736194, -0.42519012, -0.014331664, -0.2473176, 0.043123465, 0.022188524, 0.9511275, 0.6504857, 0.07993839, -0.033392675, 0.017061293, 0.17677112, -0.18121076, 0.4190925, 1.0514423, 0.1513483, 0.009485464, 0.099742986],
"with_vectors": true,
"with_payload": true,
"limit": 10
"limit": 5
}
7 changes: 7 additions & 0 deletions counit-server/src/model/archguard_model.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,17 @@ impl ContainerSupply {
#[derive(Serialize, Deserialize, Clone)]
#[serde(rename_all = "camelCase")]
pub struct ContainerDemand {
#[serde(default)]
/// Path to the embedding model directory
pub(crate) source_caller: String,
#[serde(default)]
pub(crate) call_routes: Vec<String>,
#[serde(default)]
pub(crate) base: String,
#[serde(default)]
pub(crate) target_url: String,
#[serde(default)]
pub(crate) target_http_method: String,
#[serde(default)]
pub(crate) call_data: String,
}

0 comments on commit 2b9a613

Please sign in to comment.