yangdx
978f154680
Update webui assets and bump API version to 0234
2025-09-28 15:14:05 +08:00
yangdx
0fd0186414
Improve prompt clarity by standardizing terminology and formatting
...
• Replace "Source Data" with "Context"
• Add bold formatting for key sections
• Clarify reference_id usage
• Improve JSON/text block formatting
• Standardize data source naming
2025-09-28 13:31:55 +08:00
yangdx
7cba458f22
Limit deprecated documents endpoint to 1000 records with fair distribution
2025-09-28 11:18:10 +08:00
yangdx
fcbab77613
docs: add API key usage example and security guidance
2025-09-28 10:56:52 +08:00
yangdx
2ce6a022ac
Fix documentation for user_prompt parameter in QueryParam
2025-09-27 23:41:17 +08:00
yangdx
91be53ffd2
Fix linting
2025-09-27 22:36:38 +08:00
yangdx
e0ac05db90
Simplify query route documentation and clarify conversation history
2025-09-27 22:36:16 +08:00
yangdx
f66a0aad8b
Update query streaming endpoint docs to clarify behavior
2025-09-27 22:27:49 +08:00
yangdx
3ca2165c69
Bump API version to 0233
2025-09-27 15:31:30 +08:00
yangdx
dbb0b3afb4
Fix hl_keywords and ll_keywords cache logic
...
- Remove hl_keywords and ll_keywords from keywork extracht cache
- Add hl_keywords and ll_keywords to LLM query cache
2025-09-27 15:26:52 +08:00
yangdx
e7948df541
Fix linting
2025-09-27 15:13:07 +08:00
yangdx
1766cddd6c
Fix mode parameter serialization error in Ollama chat API
...
• Use mode.value for API requests
• Add debug logging in aquery_llm
2025-09-27 15:11:51 +08:00
yangdx
81caee3498
Enhance query API with streaming control and comprehensive documentation
...
- Add stream parameter to QueryRequest
- Support non-streaming in /query/stream
- Add detailed OpenAPI response schemas
- Expand endpoint documentation
- Include usage examples and error handling
2025-09-27 11:53:31 +08:00
yangdx
f43eb00e6c
Update webui assets
2025-09-26 20:06:08 +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
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
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
2a4c12cc56
Update webui assets
2025-09-25 18:01:49 +08:00
yangdx
9e59339110
Bump API version to 0231
2025-09-25 16:57:13 +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
yangdx
6e3aa2092b
Update webui assets and bump API version to 0230
2025-09-25 06:28:18 +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
yangdx
625e4c686c
Update webui assets
2025-09-25 01:49:35 +08:00
yangdx
09bdf2c028
Update webui assets
2025-09-25 00:18:39 +08:00
yangdx
1381575db8
Update webui assets
2025-09-24 23:29:00 +08:00
yangdx
7aeeaa56a8
Update webui assets
2025-09-24 23:12:25 +08:00
yangdx
2208151b82
Update webui assets
2025-09-24 22:32:31 +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
e9503ee6ae
Merge branch 'patch-1' into citation-optimization
2025-09-24 18:23:29 +08:00
yangdx
f99c4a3738
Fix graph truncation logic for depth-limited traversals
...
• Only set truncated flag for node limit
• Keep depth limit info logging
• Improve log message clarity
• Fix false truncation detection
2025-09-24 18:03:11 +08:00
yangdx
ac26f3a2f2
Refactor citation format from file paths to numbered document titles
...
• Change citation format to [n] style
• Reduce max citations from 6 to 5
• Add reference tracking instructions
• Simplify citation merge logic
• Remove inline citation requirements
2025-09-24 14:30:53 +08:00
yangdx
5eb4a4b799
feat: simplify citations, add reference merging, and restructure API response format
2025-09-24 14:30:10 +08:00
SASon
b3cc0127d9
Fix typo in output language instruction
2025-09-24 13:22:35 +09:00
SASon
746d4c576d
Fix typo in output language instruction
...
from Oputput to Output
2025-09-24 13:17:37 +09:00
yangdx
18968c6b6b
Update webui assets
2025-09-23 23:46:17 +08:00
yangdx
8a49f968b2
Update webui assets
2025-09-23 23:45:12 +08:00
yangdx
3591cb69b5
Update webui assets
2025-09-23 23:16:26 +08:00
yangdx
6a599680ec
Update webui assets
2025-09-23 22:41:43 +08:00
yangdx
c9c691384b
Update webui assets
2025-09-23 22:33:47 +08:00
yangdx
faa65d39c3
Update webui assets
2025-09-23 22:28:54 +08:00