pub struct InferenceService { /* private fields */ }Expand description
共通推論ディスパッチおよび実行制御サービス。
Implementations§
Source§impl InferenceService
impl InferenceService
Sourcepub async fn execute(
&self,
req: SystemOneRequest,
client_hash_str: Option<String>,
) -> Result<InferenceOutput, ServerError>
pub async fn execute( &self, req: SystemOneRequest, client_hash_str: Option<String>, ) -> Result<InferenceOutput, ServerError>
推論リクエストを実行し、結果およびキャッシュ・ゲーティングメタデータを返却する。
§処理フロー
- ガードレールパイプラインによる前処理 (無毒化、特殊トークン除去等)。
- 質問プリミティブ種別ごとのメトリクス集計。
- State テキスト展開とキャッシュキー (ハッシュ) の検証および解決。
tokio::task::spawn_blockingによる非同期ワーカースレッド分離。- デュアルエンジン中間特徴量キャッシュまたは通常粗密エンジンの透過的ディスパッチ。
- 後処理ガードレール (二峰性分布補正、キー復元等) の適用。
- 確信度ゲーティング判定と集約サマリーの算出。
- 推論遅延、確信度分布、ゲーティングルーティングメトリクスの一括記録。
Trait Implementations§
Source§impl Clone for InferenceService
impl Clone for InferenceService
Source§fn clone(&self) -> InferenceService
fn clone(&self) -> InferenceService
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for InferenceService
impl !UnwindSafe for InferenceService
impl Freeze for InferenceService
impl Send for InferenceService
impl Sync for InferenceService
impl Unpin for InferenceService
impl UnsafeUnpin for InferenceService
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more