Skip to content

Commit 9dc8d15

Browse files
awesomeYGdhsifssawesomeYG
authored
Feat/v2.40.0 (#240)
* feat: support ai_insight hot question * chore: udpate raglite version * fix: swagger * fix: hot_question list count * fix: hot_question list count * fix: hot_question list count * feat: AI 洞察支持定期识别知识有效性 --------- Co-authored-by: 姚凯 <kai.yao@chaitin.com> Co-authored-by: awesomeYG <gang.yang@chaitin.com>
1 parent 4f5e6cb commit 9dc8d15

36 files changed

Lines changed: 1879 additions & 392 deletions

File tree

.github/workflows/build-base-img.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
- name: raglite
4545
dockerfile: docker/raglite/Dockerfile
4646
context: docker/raglite
47-
tag: "v2.15.2"
47+
tag: "v2.15.3"
4848

4949
steps:
5050
- name: Checkout code

backend/docs/docs.go

Lines changed: 160 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3466,6 +3466,129 @@ const docTemplate = `{
34663466
}
34673467
}
34683468
},
3469+
"/admin/rank/hot_question": {
3470+
"get": {
3471+
"produces": [
3472+
"application/json"
3473+
],
3474+
"tags": [
3475+
"rank"
3476+
],
3477+
"summary": "hot question rank",
3478+
"parameters": [
3479+
{
3480+
"type": "integer",
3481+
"name": "count",
3482+
"in": "query"
3483+
}
3484+
],
3485+
"responses": {
3486+
"200": {
3487+
"description": "OK",
3488+
"schema": {
3489+
"allOf": [
3490+
{
3491+
"$ref": "#/definitions/context.Response"
3492+
},
3493+
{
3494+
"type": "object",
3495+
"properties": {
3496+
"data": {
3497+
"type": "array",
3498+
"items": {
3499+
"allOf": [
3500+
{
3501+
"$ref": "#/definitions/model.RankTimeGroup"
3502+
},
3503+
{
3504+
"type": "object",
3505+
"properties": {
3506+
"items": {
3507+
"type": "array",
3508+
"items": {
3509+
"$ref": "#/definitions/model.RankTimeGroupItem"
3510+
}
3511+
}
3512+
}
3513+
}
3514+
]
3515+
}
3516+
}
3517+
}
3518+
}
3519+
]
3520+
}
3521+
}
3522+
}
3523+
}
3524+
},
3525+
"/admin/rank/hot_question/{hot_question_id}": {
3526+
"get": {
3527+
"produces": [
3528+
"application/json"
3529+
],
3530+
"tags": [
3531+
"rank"
3532+
],
3533+
"summary": "list hot quesion item",
3534+
"parameters": [
3535+
{
3536+
"type": "integer",
3537+
"description": "hot_question_id",
3538+
"name": "hot_question_id",
3539+
"in": "path",
3540+
"required": true
3541+
},
3542+
{
3543+
"minimum": 1,
3544+
"type": "integer",
3545+
"name": "page",
3546+
"in": "query"
3547+
},
3548+
{
3549+
"minimum": 1,
3550+
"type": "integer",
3551+
"name": "size",
3552+
"in": "query"
3553+
}
3554+
],
3555+
"responses": {
3556+
"200": {
3557+
"description": "OK",
3558+
"schema": {
3559+
"allOf": [
3560+
{
3561+
"$ref": "#/definitions/context.Response"
3562+
},
3563+
{
3564+
"type": "object",
3565+
"properties": {
3566+
"data": {
3567+
"allOf": [
3568+
{
3569+
"$ref": "#/definitions/model.ListRes"
3570+
},
3571+
{
3572+
"type": "object",
3573+
"properties": {
3574+
"items": {
3575+
"type": "array",
3576+
"items": {
3577+
"$ref": "#/definitions/model.HotQuestion"
3578+
}
3579+
}
3580+
}
3581+
}
3582+
]
3583+
}
3584+
}
3585+
}
3586+
]
3587+
}
3588+
}
3589+
}
3590+
}
3591+
},
34693592
"/admin/stat/discussion": {
34703593
"get": {
34713594
"produces": [
@@ -6791,13 +6914,15 @@ const docTemplate = `{
67916914
"enum": [
67926915
1,
67936916
2,
6794-
3
6917+
3,
6918+
4
67956919
],
67966920
"type": "integer",
67976921
"x-enum-varnames": [
67986922
"RankTypeContribute",
67996923
"RankTypeAIInsight",
6800-
"RankTypeAllContribute"
6924+
"RankTypeAllContribute",
6925+
"RankTypeHotQuestion"
68016926
],
68026927
"name": "type",
68036928
"in": "query",
@@ -9336,6 +9461,32 @@ const docTemplate = `{
93369461
}
93379462
}
93389463
},
9464+
"model.HotQuestion": {
9465+
"type": "object",
9466+
"properties": {
9467+
"content": {
9468+
"type": "string"
9469+
},
9470+
"created_at": {
9471+
"type": "integer"
9472+
},
9473+
"discussion_uuid": {
9474+
"type": "string"
9475+
},
9476+
"group_id": {
9477+
"type": "string"
9478+
},
9479+
"id": {
9480+
"type": "integer"
9481+
},
9482+
"rag_id": {
9483+
"type": "string"
9484+
},
9485+
"updated_at": {
9486+
"type": "integer"
9487+
}
9488+
}
9489+
},
93399490
"model.JSONB-array_model_AskSessionSummaryDisc": {
93409491
"type": "object"
93419492
},
@@ -9804,6 +9955,9 @@ const docTemplate = `{
98049955
"id": {
98059956
"type": "integer"
98069957
},
9958+
"score": {
9959+
"type": "number"
9960+
},
98079961
"score_id": {
98089962
"type": "string"
98099963
}
@@ -9814,12 +9968,14 @@ const docTemplate = `{
98149968
"enum": [
98159969
1,
98169970
2,
9817-
3
9971+
3,
9972+
4
98189973
],
98199974
"x-enum-varnames": [
98209975
"RankTypeContribute",
98219976
"RankTypeAIInsight",
9822-
"RankTypeAllContribute"
9977+
"RankTypeAllContribute",
9978+
"RankTypeHotQuestion"
98239979
]
98249980
},
98259981
"model.StatTrend": {

0 commit comments

Comments
 (0)