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:
wizardchen
2026-04-20 19:16:46 +08:00
parent 53ecd5df5d
commit 28deb8282f
51 changed files with 13027 additions and 271 deletions
+7 -4
View File
@@ -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;
// 拉取共享知识库(供 @ 提及与清理选中项时识别)