48 Commits
Author SHA1 Message Date
ulleo 0b5588b5bf feat: add system param: SAMPLE_DATA_ENABLED 2026-09-15 11:46:16 +08:00
ulleo 3fd6fa867d feat: implement LLM keyword extraction and fusion scoring for table matching
- Add extract_keywords() to LLMService with conversation context support,
  using process_stream + start_log/end_log for logging consistency
- Add expand_with_terminology() to expand keywords with synonym matching
- Add fusion scoring in calc_table_embedding(): α * vec_score + (1-α) * keyword_score
- Add calc_keyword_score() with multi-level matching:
  table name exact (1.0), comment exact (0.9), comment substring (0.7),
  table name partial (0.25-0.5), field comment exact (0.5),
  field comment substring (0.4), field name partial (0.3)
- Scoring considers keyword coverage rate to differentiate tables
  with different numbers of matched keywords
- Extracted keywords persisted to ChatRecord for reuse across endpoints
- get_terminology_template() supports comma-separated keyword input
  with per-keyword matching for higher precision
- Add TABLE_EMBEDDING_ALPHA and TABLE_EMBEDDING_KEYWORD_ENABLED config
2026-09-14 17:51:45 +08:00
fit2cloud-chenyw dc2b0788f4 perf: Add API documentation toggle control 2026-06-24 09:59:39 +08:00
ulleo 5b94406c3a fix: Fix SQL injection / LLM Prompt Injection vulnerability causing unauthorized queries
Security hardening:
- Add SQLBOT_ALLOW_METADATA_QUERIES config option, disable SHOW/DESCRIBE/EXPLAIN by default
- Add table whitelist check, use sqlglot to parse actual SQL table names and compare with authorized table list
- Add dangerous function check, block LOAD_FILE, INTO OUTFILE, EXEC etc. by database type
- Improve check_sql_read to return specific error reasons for better debugging
2026-06-11 17:29:38 +08:00
ulleo 5cdfc07169 feat: add context record count configuration to chat
#773
2026-01-26 17:21:56 +08:00
fit2cloud-chenyw e626d13971 fix: dynamic access path setup failure 2026-01-24 14:40:05 +08:00
junjun 3ec03fa859 fix: Fix external database password containing special characters connection failure 2026-01-07 10:49:02 +08:00
fit2cloud-chenyw c78fc5d88b perf: Supports dynamic access paths 2026-01-06 12:14:08 +08:00
ulleo b9b3376396 feat: support command in mcp 2025-12-22 16:46:41 +08:00
ulleo 3812d5308f feat: implement parameter configuration in chat 2025-12-16 16:13:50 +08:00
fit2cloud-chenyw 20ded06556 perf(X-Pack): Optimize OAuth2 customization logic (#478) 2025-11-21 16:55:16 +08:00
ulleo 46d8530d78 feat: support use lowercase boolean parameter in environment variables 2025-11-04 16:25:38 +08:00
junjun b389e860f2 feat: add oracle instant client to support oracle version 11 2025-10-24 16:01:47 +08:00
junjun 7ad8d82e13 feat: Vector retrieval matches datasource 2025-10-22 18:25:30 +08:00
ulleo 55fb063f6e feat: improve generate sql template
1.Add parameter: GENERATE_SQL_QUERY_LIMIT_ENABLED (default value is True to control data return Limit 1000 rows)
2.Use different SQL example templates based on different data sources.
2025-10-15 18:34:47 +08:00
junjun 2ebac00f87 feat: Vector retrieval matches tables 2025-10-10 16:37:15 +08:00
Junjun 818a93ffbd revert settings 2025-09-29 10:24:05 +08:00
ParkMinsu c2531c33f0 korean update 2025-09-29 10:24:05 +08:00
xcrzh 3dc4b8ece3 fix: add type annotation for TABLE_EMBEDDING_ENABLED 2025-09-26 20:25:47 +08:00
junjun 8cc15583a4 feat: Vector retrieval matches tables 2025-09-26 17:04:34 +08:00
ulleo cc150c3206 feat: support parse <think> reasoning block 2025-09-23 19:00:51 +08:00
junjun 7537fb27ca refactor: add parameter control table count 2025-09-23 17:49:10 +08:00
junjun 487c8e358d feat: Vector retrieval matches tables 2025-09-23 14:53:30 +08:00
ulleo 7405c48fd6 feat: add SQL examples in prompt 2025-09-17 15:03:21 +08:00
ulleo f86b2f60cf feat: add SQL examples in prompt 2025-09-16 18:08:53 +08:00
junjun 44362635f6 fix: mcp images path error 2025-09-16 11:32:25 +08:00
junjun 1976d79796 refactor: Increase database connection pool 2025-09-10 12:20:36 +08:00
ulleo 589de88c34 fix: out of range error while MCP_IMAGE_HOST is empty 2025-09-08 13:46:36 +08:00
junjun 3adf31264c build: allinone 2025-09-04 13:51:26 +08:00
ulleo 4faa2bd689 feat: use terminology during chat 2025-08-27 14:29:18 +08:00
ulleo 393fd8c5b5 feat: add terminology management 2025-08-25 16:34:44 +08:00
fit2cloud-chenyw d2a220c5a5 perf(X-Pack): Open permission configuration and page embedding function 2025-08-20 13:10:00 +08:00
fit2cloud-chenyw 25c9606fbc perf(X-Pack): Optimize appearance-related configuration APIs 2025-08-15 17:45:44 +08:00
junjun f199b364f9 feat: config 2025-08-05 16:23:46 +08:00
ulleo 86abe25e27 feat: export 2025-08-05 10:56:59 +08:00
junjun 25132db697 feat: permission json to text 2025-08-05 10:37:35 +08:00
ulleo 3fc3f5d505 feat: export chart 2025-08-04 19:51:42 +08:00
fit2cloud-chenyw 80484c3c5c perf: Support not only pgsql but mysql 2025-08-04 18:21:55 +08:00
junjun 0aff8e1d78 feat: default config 2025-08-04 14:58:02 +08:00
fit2cloud-chenyw c5ab4a8461 perf: Disable model validate 2025-07-30 15:39:42 +08:00
fit2cloud-chenyw c8003a2e67 perf: Enviroment config 2025-07-30 14:46:17 +08:00
fit2cloud-chenyw e739284db9 perf: Cache config 2025-07-24 16:15:33 +08:00
fit2cloud-chenyw 63a1d1fe7d feat: Log file 2025-07-23 15:59:23 +08:00
fit2cloud-chenyw e69caadd09 perf: Assistant token 2025-07-10 12:43:14 +08:00
fit2cloud-chenyw f3e26129fe perf: User api 2025-07-07 11:17:22 +08:00
ulleo a0da81bd27 feat: mcp chat generate picture 2025-07-04 15:04:37 +08:00
junjun 0a54f09474 feat: mcp image path 2025-07-02 14:50:59 +08:00
fit2cloud-chenyw 051507504b feat: Login api 2025-04-23 21:14:42 +08:00