pub struct KnowledgeBase { /* private fields */ }Expand description
A fő tudásbázis rendszer
Implementations§
Source§impl KnowledgeBase
impl KnowledgeBase
Sourcepub fn add_entry(&self, entry: KnowledgeEntry) -> String
pub fn add_entry(&self, entry: KnowledgeEntry) -> String
Hozzáad egy új tudásbázis bejegyzést
Sourcepub fn get_entry(&self, id: &str) -> Option<KnowledgeEntry>
pub fn get_entry(&self, id: &str) -> Option<KnowledgeEntry>
Lekér egy bejegyzést ID alapján
Sourcepub fn search(&self, query: &str, max_results: usize) -> Vec<SearchResult>
pub fn search(&self, query: &str, max_results: usize) -> Vec<SearchResult>
Keresés a tudásbázisban
Sourcepub fn mark_useful(&self, id: &str)
pub fn mark_useful(&self, id: &str)
Bejegyzés hasznosságának növelése
Sourcepub fn learn_association(&self, from_id: &str, to_id: &str, weight: f64)
pub fn learn_association(&self, from_id: &str, to_id: &str, weight: f64)
Asszociáció tanulása két bejegyzés között
Kapcsolódó bejegyzések lekérése
Sourcepub fn add_from_simulation(
&self,
arch: &Architecture,
metrics: &SimulationMetrics,
) -> String
pub fn add_from_simulation( &self, arch: &Architecture, metrics: &SimulationMetrics, ) -> String
Architektúra minta hozzáadása a szimulációs eredményből
Sourcepub fn add_from_decision(
&self,
decision: &DecisionLogEntry,
pattern: &HeuristicPattern,
) -> String
pub fn add_from_decision( &self, decision: &DecisionLogEntry, pattern: &HeuristicPattern, ) -> String
Döntési minta hozzáadása
Sourcepub fn add_insight(
&self,
title: &str,
description: &str,
tags: Vec<String>,
source: &str,
) -> String
pub fn add_insight( &self, title: &str, description: &str, tags: Vec<String>, source: &str, ) -> String
Eureka/Insight hozzáadása
Sourcepub fn add_best_practice(
&self,
title: &str,
description: &str,
context: &str,
tags: Vec<String>,
) -> String
pub fn add_best_practice( &self, title: &str, description: &str, context: &str, tags: Vec<String>, ) -> String
Legjobb gyakorlat hozzáadása
Sourcepub fn add_pitfall(
&self,
title: &str,
description: &str,
context: &str,
tags: Vec<String>,
) -> String
pub fn add_pitfall( &self, title: &str, description: &str, context: &str, tags: Vec<String>, ) -> String
Ismert hiba/buktátó hozzáadása
Sourcepub fn add_heuristic_rule(
&self,
title: &str,
description: &str,
context: &str,
confidence: f64,
tags: Vec<String>,
) -> String
pub fn add_heuristic_rule( &self, title: &str, description: &str, context: &str, confidence: f64, tags: Vec<String>, ) -> String
Heurisztikus szabály hozzáadása
Sourcepub fn get_by_type(
&self,
entry_type: &KnowledgeEntryType,
) -> Vec<KnowledgeEntry>
pub fn get_by_type( &self, entry_type: &KnowledgeEntryType, ) -> Vec<KnowledgeEntry>
Típus szerinti lekérdezés
Sourcepub fn get_by_tag(&self, tag: &str) -> Vec<KnowledgeEntry>
pub fn get_by_tag(&self, tag: &str) -> Vec<KnowledgeEntry>
Tag szerinti lekérdezés
Sourcepub fn get_stats(&self) -> KnowledgeBaseStats
pub fn get_stats(&self) -> KnowledgeBaseStats
Statisztikák lekérése
Sourcepub fn export_all(&self) -> Vec<KnowledgeEntry>
pub fn export_all(&self) -> Vec<KnowledgeEntry>
Tudásbázis exportálása (minden bejegyzés)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for KnowledgeBase
impl RefUnwindSafe for KnowledgeBase
impl Send for KnowledgeBase
impl Sync for KnowledgeBase
impl Unpin for KnowledgeBase
impl UnsafeUnpin for KnowledgeBase
impl UnwindSafe for KnowledgeBase
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<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> 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