Commit Graph

90 Commits

Author SHA1 Message Date
Yang Luo bf22093cde Add getModelProviderFromContext() 2023-08-15 16:43:20 +08:00
Yang Luo 8c79294a7b Add ModelProvider to Store 2023-08-15 16:20:31 +08:00
Kelvin Chiu 83a4697c9d fix: update knowledge retrieval function (#609)
* fix: fix redirect not working error

* feat: update knowledge retrieval function

* fix: optimized the logic of retrieve function
2023-08-15 15:34:10 +08:00
Yang Luo 66a5021eb7 Improve filterTextFiles() 2023-08-14 02:47:44 +08:00
Kelvin Chiu 737dd4df4e feat: add refresh store vectors (#608)
* feat: add refresh store vectors

* fix: clean the object.Url from casdoorsdk
2023-08-14 02:26:25 +08:00
Yang Luo 12d4afc0d9 Change vector data to []float32 2023-08-14 01:54:49 +08:00
yehong a5c4d250f9
feat: change chat box style (#606) 2023-08-02 15:36:31 +08:00
Yang Luo 960f08188f Add user, parent and tag 2023-07-30 23:19:57 +08:00
Yang Luo 15dbed335e Fix file URL 2023-07-30 22:58:11 +08:00
Yang Luo f93d3f90dd ListObjects() works now 2023-07-30 22:05:04 +08:00
Yang Luo 23a2de182f Rename bucket to storage provider 2023-07-30 19:08:01 +08:00
Yang Luo ec45d9e5eb Refactor the storage code 2023-07-30 15:58:45 +08:00
Yang Luo 43e8dabc2c Add getDefaultModelProvider() 2023-07-22 23:22:38 +08:00
Yang Luo 444e3a3841 Add GetMaskedProvider() 2023-07-22 23:09:08 +08:00
Yang Luo 46209eb83f Improve default store logic 2023-07-22 22:11:56 +08:00
Kelvin Chiu fe0df16ac1
feat: add chat page (#589)
* feat: add chat page

* feat: add chat page

* Update ai.go

* Update ai_test.go

* Update message.go

---------

Co-authored-by: hsluoyz <hsluoyz@qq.com>
2023-07-22 11:14:07 +08:00
yehong 96af811a12
feat: add Github CI (#590)
* feat: add CI

* feat: add CI and run gofumpt

* Update conf.go

* Delete migrate.yml

* Update sync.yml

* Update conf.go

* Update file_cache.go

* Update adapter.go

* Update semantic.yml

* Update storage_test.go

* Update file_cache.go

* Update conf.go

* Update adapter.go

* Update conf.go

---------

Co-authored-by: hsluoyz <hsluoyz@qq.com>
2023-07-22 10:17:17 +08:00
Yang Luo c68ccd739f Add vector pages 2023-07-17 14:46:39 +08:00
Kelvin Chiu 084c36d4af
feat: add message list (#18) 2023-07-16 19:01:15 +08:00
Yang Luo fb87ef67a3 Rename vector to factor 2023-07-16 16:27:37 +08:00
Kelvin Chiu 67dd3dc260 feat: add chats list (#17) 2023-07-16 16:03:45 +08:00
Yang Luo d74a763224 Add getCurrentStore() 2023-07-16 14:39:18 +08:00
Yang Luo af135a7469 Add license headers 2023-07-16 12:51:52 +08:00
Yang Luo d08776146a Add updateAllHeaders() 2023-07-16 12:50:14 +08:00
Yang Luo ac76b1fb9b Add provider pages 2023-07-16 02:55:36 +08:00
Yang Luo 8d717a8b93 Add Go error handlings 2023-07-08 11:42:56 +08:00
Kelvin Chiu 98113c7663
feat: Add ResponseError to show error message in frontend (#14) 2023-07-08 11:19:56 +08:00
Yang Luo b453e60eb8 Rename to casibase 2023-06-23 00:03:29 +08:00
Yang Luo 1ca914ae29 Add DataUrls to video 2023-06-22 17:16:59 +08:00
Yang Luo 147ae1b6aa Add addFileToCache 2023-06-22 17:04:07 +08:00
Yang Luo e49baf2615 Fix new video bug 2023-06-22 17:00:57 +08:00
Yang Luo 1d00b72b45 Add PropertiesMap to store 2023-06-22 17:00:03 +08:00
Yang Luo 7f45841417 Improve columns 2023-06-22 16:53:56 +08:00
Yang Luo 6b8b13837d Use createdTime 2023-06-22 16:53:44 +08:00
Yang Luo 8005179c53 Sort objects 2023-06-22 16:52:19 +08:00
Yang Luo 31c00a847b Add "add permission" button 2023-06-22 16:47:12 +08:00
Yang Luo 0f38a123b4 Add root to tree. 2023-06-22 16:44:27 +08:00
Yang Luo d64e18af90 Fix null tree check 2023-06-22 16:44:16 +08:00
Yang Luo c3f9ecb5da Support uploading file 2023-06-22 16:39:39 +08:00
Yang Luo 42842cd481 Add delete folder and files inside 2023-06-22 16:39:34 +08:00
Yang Luo f84cce3b57 Can delete file now 2023-06-22 16:39:29 +08:00
Yang Luo b339923361 Add add folder. 2023-06-22 16:39:16 +08:00
Yang Luo 1c0cbdf177 Add DeleteFile() 2023-06-22 16:38:42 +08:00
Yang Luo 6bdf063dd9 Rename fileSize to size. 2023-06-22 16:38:05 +08:00
Yang Luo b6ddb572ee Use frontend fileSize. 2023-06-22 16:37:41 +08:00
Yang Luo 995a584b8d Show fileSize. 2023-06-22 16:37:35 +08:00
Yang Luo ddf90e86a3 Rename lastIsLeaf. 2023-06-22 16:37:29 +08:00
Yang Luo d49aa1e73f Use aliyun-oss-sdk directly 2023-06-22 16:36:24 +08:00
Yang Luo 7d81623152 Add react-file-viewer, add bucket and domain to store. 2023-06-22 16:34:07 +08:00
Yang Luo dbc73c435a Add store.Populate() 2023-06-22 16:32:26 +08:00