Commit graph

5149 commits

Author SHA1 Message Date
yangdx
f43eb00e6c Update webui assets 2025-09-26 20:06:08 +08:00
yangdx
53d3c9290f Merge branch 'zl7261/main' 2025-09-26 20:02:32 +08:00
Daniel.y
c4711ec158
Merge pull request #2152 from danielaskdd/fix-double-query
Fix double query problem by add aquery_llm function for consistent response handling
2025-09-26 19:47:31 +08:00
yangdx
a528213210 Fix logging filter logic
• Fix boolean operator precedence in filter
• Consolidate GET/POST condition logic
2025-09-26 19:42:33 +08:00
yangdx
3ba06478a8 fix http log message order for streaming respond
- Move aquery_llm call outside generator
- Execute query before stream starts
2025-09-26 19:27:44 +08:00
yangdx
8cd4139cbf refactor: fix double query problem by add aquery_llm function for consistent response handling
- Add new aquery_llm/query_llm methods providing structured responses
- Consolidate /query and /query/stream endpoints to use unified aquery_llm
- Optimize cache handling by moving cache checks before LLM calls
2025-09-26 19:05:03 +08:00
Daniel.y
602fc43ef3
Merge pull request #2151 from danielaskdd/optimize-footnote
Optimize Footnote Marker Display in WebUI
2025-09-26 15:11:25 +08:00
yangdx
862026905a Update webui assets and bump AIP version to 0232 2025-09-26 13:15:21 +08:00
yangdx
cbdc4c4bdf Refactor prompts and context building for better maintainability
- Extract context templates to PROMPTS
- Unify token calculation logic
- Simplify user_prompt formatting
- Reduce code duplication
- Improve prompt structure consistency
2025-09-26 12:39:06 +08:00
zl7261
1bb7655538 WebUI - set full width to input element 2025-09-26 04:04:54 +00:00
zl7261
a024793a6a Web UI - center the loading icon 2025-09-26 03:57:42 +00:00
yangdx
1a0dc94f55 Update userPrompt label to clarify additional output functionality
• Rename "User Prompt" to clearer label
• Update across all language files
• Better describes prompt purpose
2025-09-26 10:40:20 +08:00
yangdx
d5fe6bb33e Increase user prompt history capacity and dropdown height
• History limit: 8 → 12 items
• Dropdown height: max-h-60 → max-h-96
• Better visibility for longer prompts
• Improved user experience
2025-09-26 10:27:03 +08:00
yangdx
683bbe9364 Fix footnote spacing and anchor links in markdown processing
- Add spacing between consecutive footnotes
- Fix anchor href to use footnote ID
- Detect adjacent footnote patterns
- Improve footnote reference formatting
- Add non-breaking space for readability
2025-09-26 10:20:45 +08:00
yangdx
fba2356c81 Move user_prompt to system prompt
- Refactor query prompt handling to separate user prompts in system context
- Simplify user_query to only contain query
- Apply changes to both kg_query and naive_query
2025-09-26 10:02:01 +08:00
yangdx
058ce83dba Clarify citation format and fix typo 2025-09-25 20:08:55 +08:00
yangdx
b6b4baff21 Update webui assets 2025-09-25 19:05:51 +08:00
yangdx
0330882b12 feat: add delete functionality to user prompt history dropdown
• Add delete buttons to history items
• Decrease history limit to 8 items
• Improve dropdown styling
2025-09-25 18:55:44 +08:00
yangdx
2a4c12cc56 Update webui assets 2025-09-25 18:01:49 +08:00
yangdx
6e6a65ce9e Disable autocomplete for user prompt input field 2025-09-25 18:01:14 +08:00
yangdx
275146fa0b Simplify footnote plugin to only render inline citations
• Remove footnote definition collection
• Remove footnote references section
• Simplify HTML output with placeholder links
• Keep only inline citation rendering
• Remove unused imports and types
2025-09-25 17:57:03 +08:00
yangdx
72039e0b4e Add strict: false and trust: true to KaTeX plugin configuration
• Relaxes KaTeX parsing rules
• Enables trusted LaTeX commands
• Improves math rendering compatibility
• Applied to both markdown processors
2025-09-25 17:28:01 +08:00
Daniel.y
b4cc249dca
Merge pull request #2147 from danielaskdd/return-reference-on-query
Feature: Add Reference List Support for All Query Endpoints
2025-09-25 16:58:32 +08:00
yangdx
9e59339110 Bump API version to 0231 2025-09-25 16:57:13 +08:00
yangdx
bcf30a4c8a Add comprehensive reference testing for query endpoints
- Add reference format validation
- Test streaming response parsing
- Check reference consistency
- Support references enable/disable
- Add --references-only test mode
2025-09-25 16:56:09 +08:00
yangdx
b848ca49e6 Fix linting 2025-09-25 16:22:00 +08:00
yangdx
b08b8a6a6a Add reference list support to query API endpoints with unified result handling
• Add include_references param to QueryRequest
• Extend QueryResponse with references field
• Create unified QueryResult data structures
• Refactor kg_query and naive_query functions
• Update streaming to send references first
2025-09-25 16:21:42 +08:00
Daniel.y
64c38864e5
Merge pull request #2146 from danielaskdd/user-prompt-history
Feature(webui): Add user prompt history dropdown to query settings
2025-09-25 06:31:29 +08:00
yangdx
6e3aa2092b Update webui assets and bump API version to 0230 2025-09-25 06:28:18 +08:00
yangdx
889c1d21e3 Increase right margin spacing for checkboxes in QuerySettings
• Change mr-1 to mr-10 for checkboxes
• Improve visual spacing consistency
• Apply to all four checkbox elements
• Better UI alignment and readability
2025-09-25 06:26:22 +08:00
yangdx
71367c7bc2 Add user prompt history dropdown to query settings
- Create UserPromptInputWithHistory component
- Move user prompt field to top of panel
- Add history tracking to settings store
- Include keyboard navigation support
- Auto-save prompts on query execution
2025-09-25 06:16:32 +08:00
yangdx
699ca3ba00 Remove deprecated history_turns and ids parameters from query API endpoint
• Update QueryParam documentation
• Mark history_turns as deprecated
• Clean up splash screen display
• Clarify conversation_history usage
2025-09-25 04:58:57 +08:00
yangdx
41a6da6786 Remove inline citation instructions from prompt templates
- Remove footnote syntax guidelines
- Delete inline citation examples
- Keep references section format
- Simplify citation documentation
- Update example section titles
2025-09-25 03:46:30 +08:00
yangdx
14bbafa146 Improve inline citation format and add examples to prompts
- Clarify single caret rule for citations
- Add citation format examples
- Rename to "References Section Format"
- Improve multi-citation instructions
2025-09-25 03:26:50 +08:00
yangdx
6177878812 Add inline citation format with footnote syntax to prompts
- Add footnote syntax `[^1]` for citations
- Support multiple citations `[^1,2,3]`
- Update reference section examples
- Enforce caret symbol requirement
- Match reference_id in brackets
2025-09-25 02:51:12 +08:00
Daniel.y
2645ad5587
Merge pull request #2145 from danielaskdd/footnode
Feature: Add footnotes support to markdown rendering in chat messages
2025-09-25 01:52:27 +08:00
yangdx
625e4c686c Update webui assets 2025-09-25 01:49:35 +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
09bdf2c028 Update webui assets 2025-09-25 00:18:39 +08:00
yangdx
d933b20562 Update query mode tooltips with clearer retrieval strategy descriptions 2025-09-25 00:17:59 +08:00
Daniel.y
c8b30323c0
Merge pull request #2144 from danielaskdd/fix-clipboard
Fix: Robust clipboard functionality with fallback strategies
2025-09-24 23:41:00 +08:00
yangdx
1381575db8 Update webui assets 2025-09-24 23:29:00 +08:00
yangdx
a911cd1c43 Add copy functionality messages to chat locales
- Add copyEmpty message
- Add copySuccess variants
- Add copyFailed message
- Add manual copy instruction
- Support 5 languages (ar,en,fr,zh,zh_TW)
2025-09-24 23:28:49 +08:00
yangdx
7aeeaa56a8 Update webui assets 2025-09-24 23:12:25 +08:00
yangdx
c358f83d2d Implement robust clipboard functionality with multiple fallback strategies
• Add comprehensive clipboard utility
• Support legacy browser environments
• Provide detailed user feedback
• Handle security context failures
2025-09-24 23:12:16 +08:00
yangdx
2208151b82 Update webui assets 2025-09-24 22:32:31 +08:00
Daniel.y
358e4334f2
Merge pull request #2143 from danielaskdd/fix-ui
Feature: Add Enhanced Markdown Support for WebUI
2025-09-24 22:18:23 +08:00
yangdx
810493b7c9 Update webui assets and bump API version to 0229 2025-09-24 22:16:59 +08:00
yangdx
f610bd5d21 Update citation format to use bullet points and add examples
- Change citation format to `* [n]`
- Add reference section examples
- Apply to both prompt templates
- Improve formatting consistency
2025-09-24 21:59:21 +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