|
6f97245961
|
✨ finish #2 prefer mode with redis
|
2024-11-18 17:10:11 +08:00 |
|
|
4d2f304ab7
|
refactor(web): 重构动物列表查询逻辑
- 优化了 prefer 模式下的查询流程,减少了冗余代码
- 重构了 getPreferCatsId 函数,增加了 skip 参数支持分页查询
- 修改了 Encounter 模型中的 EncounteredCats 方法,支持 DISTINCT 查询和分页
- 提高了查询效率,减少了数据库访问次数
|
2024-11-18 13:06:51 +08:00 |
|
|
e33f9a1801
|
feat(encounter): 添加路遇模块没有查询到数据的错误处理
- 在 errcode/encounter.go 中新增 ErrEncounterNoData 错误码
- 在 EnocunterMsgInit 和 EncounterMsgUserInit 函数中添加相应的错误消息
- 修改 encounter_controller.go 中的 List 方法,使用新增的错误码处理没有查询到数据的情况
|
2024-11-18 12:22:13 +08:00 |
|
|
2fc1e2d8da
|
🖊️
|
2024-11-18 00:40:32 +08:00 |
|
|
c06bc1f84e
|
🐱
|
2024-11-18 00:39:36 +08:00 |
|
|
d2f6f5da5a
|
refactor(web): 优化 WebSocket 错误消息发送
- 移除了未使用的 fmt 包
- 更新了 Rag 结构的注释
- 简化了错误消息的发送逻辑,直接使用 errcode.ErrMsgForUser[code] 作为消息内容
|
2024-11-18 00:27:33 +08:00 |
|
|
dba6b16693
|
🐱
|
2024-11-18 00:20:24 +08:00 |
|
|
5ca6966b2f
|
🐛 修正 ws 错误状体的返回。
|
2024-11-18 00:16:45 +08:00 |
|
|
0c2903e4f8
|
🐛 Create Animal 参数绑定错误修正
|
2024-11-17 16:46:15 +08:00 |
|
|
3413d52316
|
🎏 finish RAG
|
2024-11-16 18:18:07 +08:00 |
|
|
2af03cbf13
|
✨ SSE 版本
|
2024-11-16 14:00:57 +08:00 |
|
|
d330b6b74c
|
✨ finish simple RAG
|
2024-11-16 02:38:34 +08:00 |
|
|
b296677596
|
nothing
|
2024-11-15 23:00:03 +08:00 |
|
|
07391268a9
|
refactor(doc): 重构文档上传逻辑
- 将文档上传分为两个阶段:插入数据库记录和调用 Python API
- 修改了 Doc 模型的 InsertDocumentData 方法,返回插入记录的 ID 和状态
- 在控制器中处理了插入数据库失败的情况
- 保留了 TODO 注释,以便后续继续开发
|
2024-11-15 22:53:19 +08:00 |
|
|
e636bbb9c2
|
fit to docx
|
2024-11-15 22:15:47 +08:00 |
|
|
1156b44466
|
🆕 doc upload API # pre for RAG
|
2024-11-15 15:05:54 +08:00 |
|
|
55cf9e77e4
|
长文本的处理交给前端了。
|
2024-11-15 07:12:50 +08:00 |
|
|
45ba7ea003
|
✨ finish es highlight
|
2024-11-14 21:00:24 +08:00 |
|
|
5ff73e318e
|
🎏 finish search ALl
|
2024-11-14 04:26:12 +08:00 |
|
|
723dbae21c
|
🖊️
|
2024-11-14 01:42:50 +08:00 |
|
|
2502f43631
|
finish add Knoledge
|
2024-11-14 00:39:42 +08:00 |
|
|
9ec55f46b4
|
✨ add knowledge random list API
|
2024-11-13 20:04:08 +08:00 |
|
|
656bcf7239
|
✨ finish half animal ES
|
2024-11-13 19:43:26 +08:00 |
|
|
ac5d516c1e
|
🐛 fix TagsSlice
|
2024-11-13 18:56:22 +08:00 |
|
|
bbd55d4223
|
✨ 增加对 Slice 类型数据的绑定
|
2024-11-13 18:55:05 +08:00 |
|
|
568bb72e13
|
Merge branch 'main' of github.com:Havoc412/catface-hav-backend-normal
|
2024-11-13 17:47:55 +08:00 |
|
|
9de43d0d09
|
🆕finish half knowledge ES
|
2024-11-13 17:47:16 +08:00 |
|
|
5c2536a3a7
|
fix(test): 修改测试数据中的中文标签
- 将 "重大" 修改为 "重要",以更准确地对应英文标签 "serious"
- 此修改统一了中英文标签的含义,提高了测试数据的一致性和准确性
|
2024-11-13 13:09:43 +08:00 |
|
forDecember
|
4102ad918b
|
update: actions
|
2024-11-13 00:35:20 +08:00 |
|
ForDecember
|
53e56ebc32
|
Create go.yml
|
2024-11-13 00:22:26 +08:00 |
|
ForDecember
|
555cb947fb
|
Merge pull request #1 from Havoc412/for-dev
update: 七牛云对象存储
|
2024-11-13 00:21:43 +08:00 |
|
ForDecember
|
76285dc0e4
|
Merge branch 'main' into for-dev
|
2024-11-13 00:21:35 +08:00 |
|
|
5cf79f95d9
|
🎏 finish search all #1
|
2024-11-12 16:39:06 +08:00 |
|
|
7ab3cfa81e
|
🆕add encounter insert with ES
|
2024-11-12 15:53:47 +08:00 |
|
|
5f0e76c0bb
|
🆕real link es #1
|
2024-11-12 12:41:57 +08:00 |
|
|
a0afee4161
|
add a new errMsg
|
2024-11-12 12:24:49 +08:00 |
|
|
44c9e825c9
|
fit #2
|
2024-11-12 12:13:50 +08:00 |
|
|
b7c7bf92d6
|
fit Images Save with root Path
|
2024-11-12 11:31:40 +08:00 |
|
|
6b8fabb8d8
|
nothing
|
2024-11-12 02:01:23 +08:00 |
|
fordecember
|
766e58fc95
|
update: 七牛云oss配置
|
2024-11-10 15:05:36 +08:00 |
|
fordecember
|
f34f507652
|
update: 七牛云对象存储逻辑
- 单文件上传
- 多文件并行上传
- 文件删除
- 单元测试
|
2024-11-10 15:02:06 +08:00 |
|
|
eeeaa2a86f
|
feat(animal): 优化动物列表查询并添加用户友好错误信息
- 在动物模型中添加排序条件,按更新时间降序排列
- 在错误代码中添加针对用户的错误信息
- 在动物控制器中使用用户友好的错误信息
|
2024-11-09 05:51:43 +08:00 |
|
|
8186f41347
|
feat(encounter): 优化遇猫创建逻辑
- 添加 poi 和 extra 信息的处理
- 新增标签处理逻辑
- 优化动物模型默认值设置
- 调整动物模型字段,增加默认值
|
2024-11-09 04:53:28 +08:00 |
|
|
75f2b9e59b
|
refactor(animals): 优化动物名称模糊查询逻辑
- 在 AnimalsCurd 的 ShowByName 方法中,保留了原有的名称模糊查询逻辑
- 在 AnimalWithNickNameHit 结构中,添加了注释解释模糊查询的实现方式
- 此修改旨在提高代码的可读性和可维护性,避免使用复杂的 SQL 查询
|
2024-11-08 22:20:26 +08:00 |
|
|
c018a63cd3
|
🎏finish name selece
|
2024-11-08 18:57:08 +08:00 |
|
|
1b5ef757b7
|
fit redisgo to lrange
|
2024-11-08 16:57:47 +08:00 |
|
|
473eafc069
|
🎏FInish prefer List
|
2024-11-07 21:28:41 +08:00 |
|
|
dc72569f32
|
add new itm
|
2024-11-07 04:09:25 +08:00 |
|
|
33ef39c849
|
prepare for animal mode
|
2024-11-07 00:11:37 +08:00 |
|
|
1247e39a2e
|
add 'other' to fit unkonw like other fields
|
2024-11-06 19:02:38 +08:00 |
|