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:
@@ -444,10 +444,13 @@ const loadKnowledgeBases = async () => {
|
||||
try {
|
||||
const response: any = await listKnowledgeBases();
|
||||
if (response.data && Array.isArray(response.data)) {
|
||||
const validKbs = response.data.filter((kb: any) =>
|
||||
kb.embedding_model_id && kb.embedding_model_id !== '' &&
|
||||
kb.summary_model_id && kb.summary_model_id !== ''
|
||||
);
|
||||
const validKbs = response.data.filter((kb: any) => {
|
||||
if (!kb.summary_model_id || kb.summary_model_id === '') return false
|
||||
const strategy = kb.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
|
||||
});
|
||||
knowledgeBases.value = validKbs;
|
||||
|
||||
// 拉取共享知识库(供 @ 提及与清理选中项时识别)
|
||||
|
||||
Reference in New Issue
Block a user