pub struct KnowledgeBaseClient { /* private fields */ }
Expand description
KnowledgeBase API 客户端
Implementations§
Source§impl KnowledgeBaseClient
impl KnowledgeBaseClient
Sourcepub async fn post_repo_knowledge_base_query(
&self,
repo: String,
query: Value,
) -> Result<Value>
pub async fn post_repo_knowledge_base_query( &self, repo: String, query: Value, ) -> Result<Value>
查询知识库,使用文档:https://docs.cnb.cool/zh/ai/knowledge-base.html
Sourcepub async fn get_repo_knowledge_embedding_models(
&self,
repo: String,
) -> Result<Value>
pub async fn get_repo_knowledge_embedding_models( &self, repo: String, ) -> Result<Value>
获取当前支持的 Embedding 模型列表
Sourcepub async fn get_repo_knowledge_base(&self, repo: String) -> Result<Value>
pub async fn get_repo_knowledge_base(&self, repo: String) -> Result<Value>
获取知识库信息
Sourcepub async fn delete_repo_knowledge_base(&self, repo: String) -> Result<Value>
pub async fn delete_repo_knowledge_base(&self, repo: String) -> Result<Value>
删除知识库
Auto Trait Implementations§
impl Freeze for KnowledgeBaseClient
impl !RefUnwindSafe for KnowledgeBaseClient
impl Send for KnowledgeBaseClient
impl Sync for KnowledgeBaseClient
impl Unpin for KnowledgeBaseClient
impl !UnwindSafe for KnowledgeBaseClient
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