feat: Enhance wiki extraction and configuration options
- Introduced extraction granularity settings in the wiki configuration, allowing users to control the level of detail in entity and concept extraction (focused, standard, exhaustive). - Updated the UI to reflect these new options, including tooltips for better user guidance. - Refactored the knowledge base editor to support the new extraction granularity feature, ensuring a seamless user experience. - Improved the backend logic for wiki ingest tasks to utilize the new granularity settings, enhancing the accuracy of extracted content. - Added tests to validate the new extraction granularity functionality and ensure robust performance across different configurations.
This commit is contained in:
@@ -20,6 +20,7 @@ CREATE TABLE IF NOT EXISTS wiki_pages (
|
||||
content TEXT NOT NULL DEFAULT '',
|
||||
summary TEXT NOT NULL DEFAULT '',
|
||||
source_refs JSONB DEFAULT '[]'::JSONB,
|
||||
chunk_refs JSONB DEFAULT '[]'::JSONB,
|
||||
in_links JSONB DEFAULT '[]'::JSONB,
|
||||
out_links JSONB DEFAULT '[]'::JSONB,
|
||||
page_metadata JSONB DEFAULT '{}'::JSONB,
|
||||
|
||||
@@ -13,8 +13,8 @@ UPDATE knowledge_bases
|
||||
SET indexing_strategy = jsonb_build_object(
|
||||
'vector_enabled', TRUE,
|
||||
'keyword_enabled', TRUE,
|
||||
'wiki_enabled', COALESCE((wiki_config ->> 'enabled')::boolean, FALSE),
|
||||
'graph_enabled', COALESCE((extract_config ->> 'enabled')::boolean, FALSE)
|
||||
'wiki_enabled', FALSE,
|
||||
'graph_enabled', FALSE
|
||||
)
|
||||
WHERE indexing_strategy IS NULL;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user