Files
geo/server/migrations/20260405173000_add_markdown_content_to_knowledge_items.up.sql
T
root dbd7747742 feat: add knowledge markdown formatting and detail retrieval
- Implemented KnowledgeWebsiteMarkdownPrompt for formatting webpage content into Markdown.
- Added GetItemDetail method in KnowledgeHandler to retrieve knowledge item details.
- Introduced KnowledgeDetailDrawer component for displaying knowledge item details in the admin web interface.
- Created MarkdownPreview component for rendering Markdown content.
- Added knowledge chunking and URL parsing logic to handle webpage content extraction and formatting.
- Updated database schema to include markdown_content in knowledge_items table.
2026-04-05 20:41:42 +08:00

8 lines
189 B
SQL

ALTER TABLE knowledge_items
ADD COLUMN markdown_content TEXT;
UPDATE knowledge_items
SET markdown_content = content_text
WHERE markdown_content IS NULL
AND content_text IS NOT NULL;