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

This commit is contained in:
2026-05-06 10:02:00 +07:00
parent 76c5f55cdd
commit a61cf085ce
13 changed files with 442 additions and 38 deletions

View File

@@ -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"
)

View File

@@ -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
View File

@@ -0,0 +1,8 @@
package constants
import "time"
const (
MaxDailyAIUsage = 10
UsageExpiration = 24 * time.Hour
)