feat: implement RAG-based chatbot service with daily usage rate limiting and background index worker
All checks were successful
Build and Release / release (push) Successful in 1m27s
All checks were successful
Build and Release / release (push) Successful in 1m27s
This commit is contained in:
@@ -3,6 +3,8 @@ package constants
|
||||
const (
|
||||
StreamEmailName = "stream:email_tasks"
|
||||
StreamStorageName = "stream:storage_tasks"
|
||||
StreamRagName = "stream:rag_tasks"
|
||||
GroupEmailName = "email_workers_group"
|
||||
GroupStorageName = "storage_workers_group"
|
||||
GroupRagName = "rag_workers_group"
|
||||
)
|
||||
|
||||
@@ -7,6 +7,7 @@ const (
|
||||
TaskTypeNotifyHistorianReview TaskType = "NOTIFY_HISTORIAN_REVIEW"
|
||||
TaskTypeDeleteMedia TaskType = "DELETE_MEDIA"
|
||||
TaskTypeBulkDeleteMedia TaskType = "BULK_DELETE_MEDIA"
|
||||
TaskTypeRagIndexSubmission TaskType = "RAG_INDEX_SUBMISSION"
|
||||
)
|
||||
|
||||
func (t TaskType) String() string {
|
||||
|
||||
8
pkg/constants/usage.go
Normal file
8
pkg/constants/usage.go
Normal file
@@ -0,0 +1,8 @@
|
||||
package constants
|
||||
|
||||
import "time"
|
||||
|
||||
const (
|
||||
MaxDailyAIUsage = 10
|
||||
UsageExpiration = 24 * time.Hour
|
||||
)
|
||||
Reference in New Issue
Block a user