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:
@@ -1045,7 +1045,14 @@ const ensureDocumentKbReady = () => {
|
||||
MessagePlugin.warning(t('knowledgeEditor.messages.missingId'));
|
||||
return false;
|
||||
}
|
||||
if (!kbInfo.value || !kbInfo.value.embedding_model_id || !kbInfo.value.summary_model_id) {
|
||||
if (!kbInfo.value || !kbInfo.value.summary_model_id) {
|
||||
MessagePlugin.warning(t('knowledgeBase.notInitialized'));
|
||||
return false;
|
||||
}
|
||||
// Embedding model only required when RAG indexing is enabled
|
||||
const strategy = (kbInfo.value as any).indexing_strategy
|
||||
const needsEmbedding = !strategy || strategy.vector_enabled || strategy.keyword_enabled
|
||||
if (needsEmbedding && !kbInfo.value.embedding_model_id) {
|
||||
MessagePlugin.warning(t('knowledgeBase.notInitialized'));
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user