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

@@ -15,3 +15,25 @@ type RagChunk struct {
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}
type RagIndexTask struct {
ProjectID string `json:"project_id"`
DeleteWikiIDs []string `json:"delete_wiki_ids"`
DeleteEntityIDs []string `json:"delete_entity_ids"`
Wikis []*RagWikiItem `json:"wikis"`
Entities []*RagEntityItem `json:"entities"`
}
type RagWikiItem struct {
ID string `json:"id"`
Title string `json:"title"`
Doc string `json:"doc"`
Source string `json:"source"`
}
type RagEntityItem struct {
ID string `json:"id"`
Name string `json:"name"`
Description string `json:"description"`
Source string `json:"source"`
}