feat: Add comprehensive documentation for WeKnora knowledge base and wiki features
- Introduced multiple new documentation files, including a complete documentation index, quick reference guides, and comprehensive analyses of the knowledge base and wiki settings. - The new files provide detailed insights into the architecture, data models, API endpoints, and implementation strategies for the knowledge base and wiki functionalities. - Enhanced navigation and usability for developers and team members by summarizing key components, configurations, and data flows related to the knowledge base system. These additions significantly improve the clarity and accessibility of documentation, supporting better onboarding and reference for current and future team members.
This commit is contained in:
@@ -1004,8 +1004,13 @@ const confirmDelete = () => {
|
||||
}
|
||||
|
||||
const isInitialized = (kb: KB) => {
|
||||
return !!(kb.embedding_model_id && kb.embedding_model_id !== '' &&
|
||||
kb.summary_model_id && kb.summary_model_id !== '')
|
||||
// LLM (summary) model is always required
|
||||
if (!kb.summary_model_id || kb.summary_model_id === '') return false
|
||||
// Embedding model only required when RAG indexing is enabled (vector or keyword)
|
||||
const strategy = (kb as any).indexing_strategy
|
||||
const needsEmbedding = !strategy || strategy.vector_enabled || strategy.keyword_enabled
|
||||
if (needsEmbedding && (!kb.embedding_model_id || kb.embedding_model_id === '')) return false
|
||||
return true
|
||||
}
|
||||
|
||||
// 计算是否有未初始化的知识库
|
||||
|
||||
Reference in New Issue
Block a user