Commit Graph
288 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 aac200aef5 fix(X-Pack): Assistant API call timeout issue #1288 2026-09-14 14:39:17 +08:00
junjun d33e42004c feat: MCP support model 2026-08-19 10:20:40 +08:00
junjun 743750305d feat: MCP support model 2026-08-18 15:43:28 +08:00
ulleo 6a175b0124 fix: CWE problem in recommend_questions 2026-08-03 16:47:33 +08:00
ulleo e58d1822dc feat: optimize chat list sorting 2026-07-30 16:52:46 +08:00
ulleo 7118b401a7 fix: extract_tables_from_sql incorrectly includes CTE names as table names
#1278
2026-07-17 16:33:02 +08:00
ulleo aa594a5681 feat: Adjust the organizational attribution logic of dialogues in MCP
#1221
2026-07-09 18:17:03 +08:00
ulleo b947cf2476 feat: add thousands separator settings 2026-07-09 17:45:21 +08:00
ulleo ce3ea977ae fix: delete chat error when chat title contains '/' character
#1232
2026-07-07 15:19:42 +08:00
ulleo 2fc646ce3c feat: Adjust the organizational attribution logic of dialogues in MCP
#1221
2026-06-29 16:00:42 +08:00
junjun d41598eea5 feat: Adjust the organizational attribution logic of dialogues in MCP #1221 2026-06-29 15:28:18 +08:00
ulleo 4af99e0c45 feat: support configuring terminology for specified advanced applications 2026-06-16 17:23:50 +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 b472bc0977 fix: improve docs
#1183
2026-06-10 11:45:35 +08:00
ulleo 316450b027 feat: improve float value display in export excel 2026-06-08 16:20:21 +08:00
ulleo 23ca654bc4 feat(Application): Application can configure specified model 2026-06-02 16:24:44 +08:00
ulleo e72c0bedda fix: Fix the data source-related issues in the PR 2026-05-11 15:07:15 +08:00
ulleo afbb3d7981 feat: Support configure SQLBot name in chat template 2026-05-08 17:11:16 +08:00
yym 1cf4f249ed feat/fix(charts): Normalize qualified SQL column names for display
- Add DataFormat.normalize_qualified_sql_column_keys* so driver keys like
  "_u2.table_name" also expose "table_name", matching chart columns[].value.
- Apply after SQL execution (LLM save path), format_json_list_data (API/history),
  and get_chart_data_ds (live refresh).

Hive prompts: Document explicit table aliases for duplicate column names in JOINs.

Frontend: Add datasource form i18n key "file_path" (en/zh-CN/zh-TW/ko-KR).
Update Hive/SQLite datasource icons. Remove hive from haveSchema list.
2026-05-08 11:53:08 +08:00
yymandClaude Opus 4.6 348fd3850f feat: Add SQLite and Hive database support with sample data for AI
- Add SQLite support to data sources (file-based connection)
- Add Hive support to data sources
- Add SSL toggle option for MySQL and Doris databases
- Add sample data (3 rows JSON format) to help AI better understand table schema
- Fix SQLite schema table name issue (empty schema prefix)
- Add SQLite.yaml template for SQL generation
- Add Hive to haveSchema list in frontend

Co-Authored-By: Claude Opus 4.6 <[email protected]>
2026-05-08 11:53:08 +08:00
ulleo 387731236e feat(Application): Application can configure specified model 2026-04-30 15:23:32 +08:00
ulleo bc984c0c26 feat(System): Language switch, supports Traditional Chinese. 2026-04-28 15:00:46 +08:00
ulleo 44ab276aaa feat(System): Language switch, supports Traditional Chinese. 2026-04-20 15:54:15 +08:00
ulleo 22dc17baf8 feat(System): Language switch, supports Traditional Chinese. 2026-04-17 18:06:02 +08:00
ulleo 882d0e6e89 feat: improve generate sql/chart quality 2026-04-08 16:57:10 +08:00
ulleo 594df91235 feat: improve generate sql quality 2026-04-07 19:06:17 +08:00
junjun b05d90c6c8 feat: MCP supports configuration to disable rendering charts 2026-03-30 10:47:12 +08:00
junjun 49b08b07dd feat: MCP supports selecting workspaces #926 2026-03-24 16:00:41 +08:00
junjun f6a0a5bb4d feat: MCP supports selecting workspaces #926 2026-03-24 14:01:03 +08:00
ulleo 0ff44b4d94 fix: fix log persistence issues with concurrent question requests
#940
2026-03-04 18:04:18 +08:00
wangjiahao 82de276aad feat(dashboard): The dashboard supports displaying real-time data 2026-02-28 16:02:08 +08:00
王嘉豪 9dccaf12d1 feat(dashboard): The dashboard supports displaying real-time data (#930) 2026-02-28 14:53:51 +08:00
ulleo b5b6282b85 fix: prevent scientific notation in exported Excel data 2026-02-04 17:30:20 +08:00
ulleo 204a3df78c feat: add chat log step display 2026-02-02 16:58:24 +08:00
ulleo d5e54f86b1 feat: support specifying datasource ID in MCP question 2026-02-02 16:07:24 +08:00
ulleo 733227dfe1 feat: add chat log step display
#324
#742
2026-01-29 17:09:58 +08:00
ulleo 8a1a9e01d3 feat: add chat log step display
#324
#742
2026-01-29 16:53:47 +08:00
ulleo 3d440e9a6d feat: add chat log step display
#324
#742
2026-01-28 19:07:08 +08:00
ulleo 7560f4c95a feat: add chat log step display
#324
#742
2026-01-28 18:59:54 +08:00
ulleo f8240acfcf feat: add chat log step display
#324
#742
2026-01-28 18:54:25 +08:00
ulleo 180fd4be75 feat: add chat log step display
#324
#742
2026-01-28 16:02:53 +08:00
fit2cloud-chenyw bca72fc96d perf: Assistant uses workspace-level Q&A configuration 2026-01-28 14:15:46 +08:00
ulleo 37afb2da21 feat: add more chat log operation steps 2026-01-28 11:10:41 +08:00
ulleo 5cdfc07169 feat: add context record count configuration to chat
#773
2026-01-26 17:21:56 +08:00
wangjiahao 55148b47a8 refactor: Recently queried questions query restriction for the current login user 2026-01-26 10:35:43 +08:00
ulleo 0dc289956b feat: improve chart field name matching with original table structure 2026-01-22 14:30:58 +08:00
ulleo 3184b6629e feat: support specifying datasource ID in MCP question 2026-01-21 16:36:26 +08:00
ulleo da807a503b feat: support multiple metrics in line, column, and bar charts 2026-01-20 17:07:11 +08:00