24 Commits

Author SHA1 Message Date
Kevin Hu
8fb18f37f6
Code refactor. ()
### What problem does this PR solve?

### Type of change

- [x] Refactoring
2024-12-30 18:38:51 +08:00
Michael Luo
44ac87aef4
Remove Redundant None Check for vector_similarity_weight ()
### What problem does this PR solve?
The removed if statement is unnecessary and adds cognitive load for
readers.
The original code:
```
vector_similarity_weight = req.get("vector_similarity_weight", 0.3)
if vector_similarity_weight is None:
    vector_similarity_weight = 0.3
```
has been simplified to:
```
vector_similarity_weight = req.get("vector_similarity_weight", 0.3)
```

### Type of change
- [x] Refactoring
2024-12-16 14:35:21 +08:00
Zhichang Yu
1254ecf445
Added static check at PR CI ()
### What problem does this PR solve?

Added static check at PR CI

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
- [x] Refactoring
2024-12-08 21:23:51 +08:00
Zhichang Yu
0d68a6cd1b
Fix errors detected by Ruff ()
### What problem does this PR solve?

Fix errors detected by Ruff

### Type of change

- [x] Refactoring
2024-12-08 14:21:12 +08:00
Jin Hai
c817ff184b
Refactor UI text ()
### What problem does this PR solve?

Refactor UI text

### Type of change

- [x] Documentation Update
- [x] Refactoring

Signed-off-by: jinhai <haijin.chn@gmail.com>
2024-12-07 11:04:36 +08:00
Zhichang Yu
5337cad7e4
Check model id when set dialog. Close ()
### What problem does this PR solve?

Check model id when set dialog. Close 

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
2024-11-26 16:32:46 +08:00
Jin Hai
1e90a1bf36
Move settings initialization after module init phase ()
### What problem does this PR solve?

1. Module init won't connect database any more.
2. Config in settings need to be used with settings.CONFIG_NAME

### Type of change

- [x] Refactoring

Signed-off-by: jinhai <haijin.chn@gmail.com>
2024-11-15 17:30:56 +08:00
Zhichang Yu
185c6a0c71
Unified API response json schema ()
### What problem does this PR solve?

Unified API response json schema

### Type of change

- [x] Refactoring
2024-11-05 11:02:31 +08:00
LiuHua
0164856343
Add Authorization checks ()
### What problem does this PR solve?

Add Authorization checks


### Type of change

- [x] New Feature (non-breaking change which adds functionality)

---------

Co-authored-by: Feiue <10215101452@stu.ecun.edu.cn>
Co-authored-by: Kevin Hu <kevinhu.sh@gmail.com>
2024-09-04 10:36:15 +08:00
Jin Hai
6b3a40be5c
Format file format from Windows/dos to Unix ()
### What problem does this PR solve?

Related source file is in Windows/DOS format, they are format to Unix
format.

### Type of change

- [x] Refactoring

Signed-off-by: Jin Hai <haijin.chn@gmail.com>
2024-08-15 09:17:36 +08:00
KevinHuSh
4454ba7a1e
add self-rag ()
### What problem does this PR solve?

 

### Type of change

- [x] New Feature (non-breaking change which adds functionality)
2024-06-06 11:13:39 +08:00
balibabu
9517a27844
fix: fixed the problem that the api will be called directly after selecting the chat assistant picture ()
### What problem does this PR solve?

fix: fixed the problem that the api will be called directly after
selecting the chat assistant picture 

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
2024-06-03 13:42:56 +08:00
KevinHuSh
0171082cc5
fix create dialog bug ()
### What problem does this PR solve?


### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
2024-05-30 09:25:05 +08:00
KevinHuSh
614defec21
add rerank model ()
### What problem does this PR solve?

feat: add rerank models to the project  

### Type of change

- [x] New Feature (non-breaking change which adds functionality)
2024-05-29 16:50:02 +08:00
Jin Hai
d7744f5870
Refactor method name ()
### What problem does this PR solve?



### Type of change

- [x] Refactoring

Signed-off-by: Jin Hai <haijin.chn@gmail.com>
2024-05-14 14:48:15 +08:00
KevinHuSh
674b3aeafd
fix disable and enable llm setting in dialog ()
### What problem does this PR solve?
 

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
2024-04-30 11:04:14 +08:00
KevinHuSh
fd7fcb5baf
apply pep8 formalize () 2024-03-27 11:33:46 +08:00
KevinHuSh
7fd1eca582
init README of deepdoc, add picture processer. ()
* init README of deepdoc, add picture processer.

* add resume parsing
2024-02-23 18:28:12 +08:00
KevinHuSh
cacd36c5e1
use onnx models, new deepdoc () 2024-02-21 16:32:38 +08:00
KevinHuSh
a8294f2168 Refine resume parts and fix bugs in retrival using sql () 2024-02-19 19:22:17 +08:00
KevinHuSh
e6acaf6738 Add Q&A and Book, fix task running bugs () 2024-02-01 18:53:56 +08:00
KevinHuSh
484e5abc1f llm configuation refine and trievalTest API refine () 2024-01-19 19:51:57 +08:00
KevinHuSh
4a858d33b6 add conversation API () 2024-01-18 19:28:37 +08:00
KevinHuSh
9bf75d4511 add dialog api () 2024-01-17 20:20:42 +08:00