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:
@@ -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"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user