pub struct HttpRetrieverConfig {
pub url: String,
pub http: HttpSettings,
}Expand description
Configuration of a remote retrieval endpoint.
Contract — request (POST <url>, JSON):
{"query": "...", "top_k": 4, "datasets": ["kb1"], "score_threshold": 0.5,
"filter": {"logical_operator": "and", "conditions": [...]}, "rerank": false}Response:
{"records": [{"content": "...", "score": 0.83, "title": "...",
"id": "...", "document_id": "...", "dataset_id": "...", "metadata": {}}]}Only content and score are required per record.
Fields§
§url: String§http: HttpSettingsTrait Implementations§
Source§impl Clone for HttpRetrieverConfig
impl Clone for HttpRetrieverConfig
Source§impl Debug for HttpRetrieverConfig
impl Debug for HttpRetrieverConfig
Source§impl<'de> Deserialize<'de> for HttpRetrieverConfig
impl<'de> Deserialize<'de> for HttpRetrieverConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for HttpRetrieverConfig
impl PartialEq for HttpRetrieverConfig
Source§impl Serialize for HttpRetrieverConfig
impl Serialize for HttpRetrieverConfig
impl StructuralPartialEq for HttpRetrieverConfig
Auto Trait Implementations§
impl Forget for HttpRetrieverConfig
impl Freeze for HttpRetrieverConfig
impl Move for HttpRetrieverConfig
impl RefUnwindSafe for HttpRetrieverConfig
impl Send for HttpRetrieverConfig
impl Sync for HttpRetrieverConfig
impl Unpin for HttpRetrieverConfig
impl UnsafeUnpin for HttpRetrieverConfig
impl UnwindSafe for HttpRetrieverConfig
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