Commit Graph

463 Commits

Author SHA1 Message Date
lexluo09
5c70607851 [improvement][common] Field replacement is performed using a recursive approach, and it supports field replacement with complex expressions (#1859) 2024-10-30 13:17:28 +08:00
jerryjzhang
53ddc67262 [improvement][chat]Sort parses in NL2SQLParser right after rule-based parsing. 2024-10-29 23:31:02 +08:00
jerryjzhang
996cb3df56 [improvement][chat]Change query type resolution logic. 2024-10-29 19:03:10 +08:00
jerryjzhang
400b9f86f0 [improvement][chat]Modify core workflow of NL2SQLParser, always invoking rule-based parsers first.#1729 2024-10-29 13:12:56 +08:00
lexluo09
5d9b1b917e [improvement][chat] The parser interface supports using the dataSetId provided by the frontend as the reference (#1852) 2024-10-28 21:51:11 +08:00
lexluo09
de4384062c [improvement][chat] The similarity of MapModeEnum.STRICT is 1 (#1851) 2024-10-28 19:58:13 +08:00
lexluo09
920c6e2846 [improvement][chat] Add threshold judgment to field replacement (#1850) 2024-10-28 13:57:35 +08:00
jerryjzhang
1842261dfe [improvement][project]Remove unnecessary copy from Request to Context objects. 2024-10-27 15:59:49 +08:00
lexluo09
3a905d7fb1 [improvement][chat] Milvus supports setting the user and password parameters (#1845) 2024-10-24 22:59:35 +08:00
zhaodongsheng
0ddcdf93ec (feat)Support for managing large models with Dify #1830;2、add user access token; #1829; 3、support change password #1824 (#1839) 2024-10-22 13:58:58 +08:00
lexluo09
473329d398 [improvement][chat] Filter at the lowest level in the Map based on the dataSetId (#1834) 2024-10-20 21:51:57 +08:00
LXW
1f208ffcb7 (improvement)(Common) Move ChatModel management to common modules and add chatApp for data-model builder (#1831)
Co-authored-by: lxwcodemonkey
2024-10-20 18:42:08 +08:00
lexluo09
3df4011f81 [improvement][chat] Add SqlReplaceFieldsTest test class (#1811) 2024-10-16 10:49:11 +08:00
lexluo09
fdbb588fab [improvement][chat] Optimize the logic for field replacement and fix the replacement of 'GROUP BY' functions (#1807) 2024-10-15 19:41:23 +08:00
lexluo09
d7f301064a [improvement][common] Fix the issue of missing 'ORDER BY' clause generation (#1802) 2024-10-15 10:22:22 +08:00
Zhengyang Jia
1ef642d0dd [improvement][common]Add pgvector vector library adaptation. (#1800) 2024-10-15 09:16:32 +08:00
jerryjzhang
0b71390fde [improvement][chat]Introduce AppModule to classify chat apps. 2024-10-14 14:21:41 +08:00
lexluo09
28b7847389 [improvement][headless] Support merging SQL queries with WITH using the LIMIT clause (#1795) 2024-10-13 21:37:34 +08:00
jerryjzhang
7c76c69ac0 [feature][headless-chat]Introduce ChatApp to support more flexible chat model config.#1739 2024-10-12 15:21:48 +08:00
jerryjzhang
3501f592e7 [feature][headless-chat]Introduce ChatApp to support more flexible chat model config.#1739 2024-10-12 13:04:06 +08:00
jerryjzhang
0cce0a76b4 [feature][headless-chat]Introduce ChatApp to support more flexible chat model config.#1739 2024-10-12 11:58:34 +08:00
jerryjzhang
2717a1603c [feature][headless-chat]Introduce ChatApp to support more flexible chat model config.#1739 2024-10-12 11:51:37 +08:00
jipeli
b6e4577784 [improvement][headless] Fix interval time sql error(#1717) (#1786) 2024-10-11 18:53:49 +08:00
jipeli
50b0036d0f [improvement][headless] Fix permission exception loss (#1764) (#1782) 2024-10-11 12:00:41 +08:00
lexluo09
484861571f [improvement][headless] Fix the issue with the query when using the with clause along with a join (#1779) 2024-10-10 21:53:29 +08:00
lexluo09
0299743c69 (improvement)[headless] Remove the as alias containing _ during the headless stage. (#1767) 2024-10-10 11:53:57 +08:00
lexluo09
1215efbdce (improvement)[headless] Optimize table name replacement in complex SQL (#1763) 2024-10-09 23:14:18 +08:00
lexluo09
2c75a6972a (improvement)[build] Format the enumeration class with line breaks (#1761) 2024-10-09 20:56:08 +08:00
jipeli
3cae4c1ea6 (improvement)(headless) not merge nested aggregations (#1760) 2024-10-09 20:18:59 +08:00
jerryjzhang
cd57d2344e [fix][chat]Model provider is case sensitive.#1739 2024-10-09 17:48:42 +08:00
jerryjzhang
248f4f83f6 [feature][chat]Refactor chat model config related codes.#1739 2024-10-09 17:27:07 +08:00
jerryjzhang
9ffe67c962 [feature][chat]Add API to get ChatModelType list.#1739 2024-10-09 14:56:34 +08:00
lexluo09
fc040970b2 (improvement)[chat] Skip the corrector for complex SQL, and do not add the HAVING field to the SELECT clause (#1754) 2024-10-09 14:38:12 +08:00
jerryjzhang
7b9ff2e281 [feature][chat]Introduce dedicated LLM management.#1739 2024-10-09 12:00:24 +08:00
lexluo09
ff709aec60 (improvement)(headless) When retrieving all field names, consider alias fields. (#1751) 2024-10-05 13:24:16 +08:00
lexluo09
71a9954be5 (improvement)[build] Use Spotless to customize the code formatting (#1750) 2024-10-04 00:05:04 +08:00
lexluo09
44d1cde34f [improvement][corrector] Abstract the RuleSqlCorrector component. (#1748) 2024-09-30 19:09:06 +08:00
lexluo09
8693e7f8a7 [improvement][headless] In the translator, adopt Calcite to support multiple WITH structures and optimize the Calcite code. (#1747) 2024-09-30 18:53:27 +08:00
lexluo09
5a163936a8 (improvement)(headless) Determine if there are any 'GROUP BY' fields that require compatibility with self-queries in WITH clauses. (#1734) 2024-09-29 11:28:31 +08:00
lexluo09
3a11ccb6e9 (improvement)(headless) Optimize jsqlparser code and add support for complex queries like WITH in the corrector (#1730) 2024-09-28 23:26:39 +08:00
jerryjzhang
764d3d24aa [improvement][headless]Set default query limits of DataSet. 2024-09-27 16:07:25 +08:00
jerryjzhang
ae3e9f142b [improvement][headless]Rename METRIC query type enum to AGGREGATE. 2024-09-27 15:19:26 +08:00
lexluo09
066b9cc1f7 (improvement)(chat) Fix the SQL fields generated by the large model that contain (#1715) 2024-09-25 22:49:46 +08:00
jerryjzhang
cd08cf51c5 [improvement][project]Use DatePeriodEnum to replace DAY/MONTH/YEAR period constants. 2024-09-22 17:14:55 +08:00
jerryjzhang
ae889bb0ae [improvement][project]Optimize certain code structures. 2024-09-21 18:13:31 +08:00
jerryjzhang
b6765387f5 [improvement][headless]Introduce new time mode CURRENT. #1692 2024-09-21 13:14:47 +08:00
daikon
a200483b5c Support limit (#1688) 2024-09-20 18:35:25 +08:00
lexluo09
75bc470670 (improvement)(build) Fix the .NoClassDefFoundError: org/codehaus/stax2/XMLInputFactory2 error (#1682) 2024-09-18 21:40:49 +08:00
LXW
0c0fbb829e (improvement)(auth)Avoid printing error logs when key decryption and token parsing fail (#1681)
* (improvement)(auth) Avoid throwing exceptions after login token authentication fails #1679

(improvement)(common) Do not print error log when key decryption fails #1679


---------

Co-authored-by: lxwcodemonkey
2024-09-18 16:20:12 +08:00
lexluo09
70fff17fbe (improvement)(headless) Delete 'is null' and 'is not null' expressions only in the WHERE clause, and keep them in the HAVING clause (#1680) 2024-09-15 11:05:54 +08:00