zrguo
c2da2fbe12
build
2025-07-14 17:19:28 +08:00
zrguo
c9cbd2d3e0
Merge branch 'main' into rerank
2025-07-14 16:24:29 +08:00
zrguo
ef2115d437
Update token limit
2025-07-14 15:53:48 +08:00
yangdx
b03bb48e24
feat: Refine summary logic and add dedicated Ollama num_ctx config
...
- Refactor the trigger condition for LLM-based summarization of entities and relations. Instead of relying on character length, the summary is now triggered when the number of merged description fragments exceeds a configured threshold. This provides a more robust and logical condition for consolidation.
- Introduce the `OLLAMA_NUM_CTX` environment variable to explicitly configure the context window size (`num_ctx`) for Ollama models. This decouples the model's context length from the `MAX_TOKENS` parameter, which is now specifically used to limit input for summary generation, making the configuration clearer and more flexible.
- Updated `README` files, `env.example`, and default values to reflect these changes.
2025-07-14 01:55:04 +08:00
yangdx
e8b3dfcf90
Bump api verion to 0182
2025-07-14 00:29:48 +08:00
yangdx
e4aef36977
Update webui assets
2025-07-13 01:36:25 +08:00
yangdx
efc359c411
Update webui assets
2025-07-13 00:57:41 +08:00
yangdx
0e3aaa318f
Feat: Add keyed lock cleanup and status monitoring
2025-07-13 00:09:00 +08:00
yangdx
943ead8b1d
Bump api version to 0181
2025-07-12 05:59:13 +08:00
yangdx
2056c3c809
Increase default CHUNK_TOP_K from 5 to 15
2025-07-09 04:41:51 +08:00
zrguo
d4651d59c1
Add rerank to server
2025-07-08 21:44:20 +08:00
yangdx
a1bbf367ad
Update webui assets
2025-07-08 00:22:14 +08:00
yangdx
ef79088f60
Move max_graph_nodes to global config
2025-07-07 21:53:57 +08:00
yangdx
cb14ce6ff3
Bump api version to 0180
2025-07-07 18:14:31 +08:00
yangdx
f417118e27
Center banner text dynamically
2025-07-07 17:28:59 +08:00
yangdx
f86ae6df0a
Update api server README
2025-07-07 17:16:14 +08:00
yangdx
7916b3d18f
Update webui assets
2025-07-07 03:45:19 +08:00
yangdx
1d24e8ca3c
Bump api version to 0179
2025-07-07 01:40:26 +08:00
yangdx
db22cad2c8
feat: add workspace and MAX_GRAPH_NODES to /health endpoint and webui
2025-07-07 01:39:48 +08:00
yangdx
253833475f
Add workspace info to splash screen display
2025-07-07 01:26:27 +08:00
yangdx
033098c1bc
Feat: Add WORKSPACE support to all storage types
2025-07-07 00:57:21 +08:00
yangdx
98150e80b8
Improved empty/whitespace file handling
...
- Better detection of whitespace-only files
- Changed error to warning for empty chunks
2025-07-05 23:16:39 +08:00
xuewei
49cb51b5dc
PDF文件解析不到内容
2025-07-05 13:47:47 +08:00
yangdx
04d793abbd
Update logger message
2025-07-03 22:15:32 +08:00
yangdx
67f51597c2
Bump api version to 0178
2025-07-03 21:37:47 +08:00
yangdx
05231233f1
Feat: Check pending equest_pending after document deletion
...
- Add double-check for pipeline status to prevent race conditions
- Implement automatic processing of pending indexing requests after deletion
2025-07-03 21:36:35 +08:00
yangdx
3be8727e3e
Bump api version to 0177
2025-07-02 16:35:22 +08:00
SLKun
4e88ee3662
update ollama compatible api
2025-06-30 10:41:35 +08:00
yangdx
0f51ec48f1
fix: streaming error when only_need_context=True returns empty results
...
Prevents NoneType async iteration error by handling None responses
in stream_generator and ensuring kg_query returns valid strings.
2025-06-28 09:18:06 +08:00
yangdx
a506753548
Fix linting
2025-06-27 02:33:20 +08:00
yangdx
60777d535b
fix: prevent Path Traversal vulnerability in upload endpoint
...
- Add sanitize_filename() function to validate and clean uploaded filenames
- Remove path separators, traversal sequences, and control characters
- Verify final paths stay within input directory using Path.resolve()
- Return HTTP 400 errors for unsafe filenames
- Prevents directory traversal attacks like ../../../etc/passwd
2025-06-27 02:33:05 +08:00
yangdx
6e1ca8f461
Merge branch 'patch-1'
2025-06-26 18:45:23 +08:00
yangdx
fb3006b44d
Update requirements.txt
2025-06-26 18:45:01 +08:00
yangdx
8fb1c09b08
Refac: pipelinge message
2025-06-26 01:00:54 +08:00
yangdx
88c528ec94
Update webui assetes
2025-06-25 19:26:24 +08:00
yangdx
bdcd55a871
Feat: Add delete upload file option to document deletion
2025-06-25 19:02:46 +08:00
yangdx
6a1737784d
Bump api version to 0176
2025-06-25 17:17:56 +08:00
yangdx
f440461810
Update webui assets
2025-06-25 17:16:59 +08:00
yangdx
51bb0471cd
Change the API for deleting documents to support deleting multiple documents at once.
2025-06-25 16:19:49 +08:00
yangdx
495d6c8cce
Improve the pipeline status message for document deletetion
2025-06-25 15:46:58 +08:00
yangdx
2aaa6d5f7d
Fix linting
2025-06-25 14:59:45 +08:00
yangdx
49baeb7318
Change document deletion API to async
2025-06-25 14:59:10 +08:00
yangdx
922484915b
Remove deprecated API endpoint.
2025-06-25 13:55:47 +08:00
yangdx
ebe5b1e0d2
Bump api version to 0175
2025-06-24 22:16:06 +08:00
yangdx
8b6dcfb6eb
Pls do not use /delete_document API endpoint
2025-06-24 11:26:38 +08:00
yangdx
5ae945c1e5
Improved error handling for document deletion
...
Added HTTPException for not_found status
Added HTTPException for fail status
2025-06-24 01:12:25 +08:00
yangdx
c18065a912
Disable document deletion when LLM cache for extraction is off
2025-06-23 22:41:27 +08:00
yangdx
1973c80dca
Feat: Add entity and relation deletion endpoints
2025-06-23 22:14:50 +08:00
yangdx
bd487dd252
Unify document APIs returen status string
2025-06-23 21:38:47 +08:00
yangdx
b8a2d5b223
Bump api version to 0174
2025-06-23 18:42:34 +08:00