Commit graph

34 commits

Author SHA1 Message Date
clssck
663ada943a chore: add citation system and enhance RAG UI components
Add citation tracking and display system across backend and frontend components.
Backend changes include citation.py for document attribution, enhanced query routes
with citation metadata, improved prompt templates, and PostgreSQL schema updates.
Frontend includes CitationMarker component, HoverCard UI, QuerySettings refinements,
and ChatMessage enhancements for displaying document sources. Update dependencies
and docker-compose test configuration for improved development workflow.
2025-12-01 17:50:00 +01:00
clssck
77df910525 chore: add citation system and code formatting setup
Add citation.py module for document citation tracking and management.
Configure Biome and Ruff for consistent code formatting across TypeScript
and Python. Update webui with improved component organization, API client
refactoring, and enhanced user interface patterns. Add formatting configs
and dependency updates for build toolchain optimization.
2025-11-30 20:51:43 +01:00
clssck
b6074b9a81 chore(lightrag, lightrag_webui): improve code quality and security
- Extract PostgreSQL storage check into named variable for clarity
- Move APIRouter initialization into create_table_routes function scope
- Add robust type handling for database query results
- Add input validation for table names and pagination parameters
- Add regex-based SQL injection prevention for table name sanitization
- Improve clipboard copy fallback logic and error handling
- Add memoization for JSON serialization to prevent unnecessary recalculations
- Hide meta column from table explorer UI display
- Sort table columns alphabetically for consistent ordering
- Add keyboard accessibility to status filter buttons
- Add preprocessed status filter to document manager
- Update @tanstack/react-query from 5.60.0 to 5.87.1
- Extract dev storage config into constant to reduce duplication
- Update documentation comments for clarity
2025-11-27 21:39:42 +01:00
clssck
a9edadef45 feat: add Table Explorer feature with dynamic table data fetching and schema display
- Implemented Table Explorer component to allow users to select and view database tables.
- Added API calls for fetching table list, schema, and paginated data.
- Introduced row detail modal for displaying and copying row data.
- Enhanced DataTable component to support row click events.
- Updated UI components for better user experience and accessibility.
- Added mock data for development mode to facilitate testing.
- Updated localization files to include new terms related to tables.
- Modified settings store to include storage configuration for conditional UI rendering.
- Improved styling and layout for various components to align with new design standards.
2025-11-27 18:27:14 +01:00
yangdx
50210e25e8 Add @tailwindcss/typography plugin and fix Tailwind config
• Add typography plugin dependency
• Fix plugin imports in config
• Add source paths to CSS
2025-10-14 03:14:38 +08:00
kevinnkansah
b81b86203c chore: update deps 2025-10-10 17:12:59 +02:00
Roman Marchuk
1bd84f0005
Merge branch 'main' into fix/dark-mode-graph-text-colors 2025-10-01 17:41:28 -04:00
Roman Marchuk
7297ca1d5c Fix dark mode graph labels for system theme and improve colors
- Fix dark mode detection to work when theme is set to 'system'
- Add real-time system theme change detection
- Update label colors from cyan to white for better readability
- Update edge colors to medium gray (#888888) for better contrast
- Add development feature: random graph generator button in settings
- Enhance random graph with edge attributes and labels
- Install missing graphology layout dependencies
2025-10-01 17:36:50 -04:00
yangdx
19073319c1 Add @tanstack/react-table dependency for table functionality
• Add react-table v8.21.3
• Include table-core dependency
• Update package.json
• Update bun.lock file
2025-10-01 00:32:19 +08:00
yangdx
b6b4baff21 Update webui assets 2025-09-25 19:05:51 +08:00
yangdx
d1b3661a87 Add footnotes support to markdown rendering in chat messages
• Add unist-util-visit dependency
• Create remarkFootnotes plugin
• Style footnotes with CSS classes
• Support footnote refs and definitions
• Update Vite config for new dependency
2025-09-25 01:42:16 +08:00
yangdx
95987ff56c Add rehype-raw plugin for better HTML rendering in markdown
• Add rehype-raw dependency
• Enable HTML parsing in markdown
• Style sup/sub/mark/u/del/ins elements
• Apply to both thinking and main content
• Improve markdown display capabilities
2025-09-24 21:37:03 +08:00
yangdx
6969038fd5 Update mermaid version to 11.9.0 2025-08-14 05:02:53 +08:00
yangdx
7f50a11977 feat: add LaTeX formula rendering support to ChatMessage component
- Add KaTeX dependencies (katex, rehype-katex, @types/katex)
- Configure ReactMarkdown with rehype-katex plugin
- Support both inline ($...$) and block ($$...$$) LaTeX formulas
- Add theme-aware error handling and responsive styling
2025-06-02 17:44:10 +08:00
yangdx
64f5bb0243 Add typography to webui and fix markdown render problem 2025-04-22 17:21:24 +08:00
yangdx
fd997f239b Bump api version to 0156 2025-04-22 08:53:41 +08:00
yangdx
2856107f46 Merge branch 'loginPage' into webui-node-expansion 2025-03-18 00:39:48 +08:00
yangdx
550b4d110c feat: add react-error-boundary package to web UI dependencies 2025-03-15 21:52:35 +08:00
choizhang
b58729751a Merge branch 'improve-property-tooltip' into loginPage 2025-03-15 00:11:50 +08:00
yangdx
32d54dc297 Merge branch 'main' into improve-property-tooltip 2025-03-12 13:25:02 +08:00
choizhang
e5214f1a70 Merge branch 'main' into loginPage 2025-03-11 23:57:03 +08:00
choizhang
6b22e8065b Added loginPage 2025-03-11 14:48:19 +08:00
baoheping
59a2202e7c Added Minimum Degree 2025-03-08 11:01:10 +00:00
ArnoChen
dbf5481959 replace react-shiki with react-syntax-highlighter to reduce package size 2025-02-24 18:58:57 +08:00
ArnoChen
e2b4e661e3 feat: retrieval message code highlight, message copy button 2025-02-24 18:17:17 +08:00
Saifeddine ALOUI
3f3e9ef367 Upgraded webui to show more upload options and added building without using bun to the webui 2025-02-20 11:25:57 +01:00
ArnoChen
eaf1e92e76 render chat message as markdown 2025-02-18 00:42:31 +08:00
ArnoChen
e083ebb95a improve streaming error handling 2025-02-18 00:30:51 +08:00
ArnoChen
c5f380986d implement API key alert 2025-02-17 01:59:36 +08:00
ArnoChen
f5ee1f2cdb release new webui 2025-02-17 01:14:33 +08:00
ArnoChen
fc3ca2777f add query settings 2025-02-16 21:43:14 +08:00
ArnoChen
1fe456666a add document manager and site heaer
clean

format
2025-02-15 23:29:30 +08:00
ArnoChen
bc83c4c7ed update readme
configure output directory
2025-02-13 17:54:10 +08:00
ArnoChen
85e6989abc move lightrag_webui folder to top directory 2025-02-13 17:29:51 +08:00
Renamed from lightrag/api/graph_viewer_webui/package.json (Browse further)