Documentation
¶
Index ¶
- Constants
- Variables
- func InitCommonHandlers(log *log.HandlerBuilder, cfg *config.HandlerBuilder, ...) []handler.Builder
- func InitCompositionHandlerUsingZhipu(common []handler.Builder, root *zhipu.Handler) handler.Handler
- func InitLLMCreditLogDAO(db *egorm.Component) dao.LLMCreditDAO
- func InitTableOnce(db *gorm.DB)
- func InitZhipu() *zhipu.Handler
- type AdminHandler
- type KnowledgeBaseFile
- type KnowledgeBaseService
- type LLMHandler
- type LLMRequest
- type LLMResponse
- type LLMService
- type Module
Constants ¶
View Source
const ( RepositoryBaseTypeRetrieval = "retrieval" RepositoryBaseTypeFineTune = "finetune" )
Variables ¶
View Source
var ErrInsufficientCredit = credit.ErrInsufficientCredit
Functions ¶
func InitCommonHandlers ¶
func InitCommonHandlers(log *log.HandlerBuilder, cfg *config.HandlerBuilder, credit *credit.HandlerBuilder, record *record.HandlerBuilder) []handler.Builder
func InitCompositionHandlerUsingZhipu ¶ added in v0.3.2
func InitLLMCreditLogDAO ¶
func InitLLMCreditLogDAO(db *egorm.Component) dao.LLMCreditDAO
func InitTableOnce ¶
Types ¶
type AdminHandler ¶ added in v0.3.2
type AdminHandler = web.AdminHandler
type KnowledgeBaseFile ¶ added in v0.3.3
type KnowledgeBaseFile = domain.KnowledgeBaseFile
type KnowledgeBaseService ¶ added in v0.3.3
type KnowledgeBaseService = knowledge_base.RepositoryBaseSvc
func InitZhipuKnowledgeBase ¶ added in v0.3.3
func InitZhipuKnowledgeBase(repo repository.KnowledgeBaseRepo) KnowledgeBaseService
type LLMHandler ¶ added in v0.3.2
type LLMRequest ¶
type LLMRequest = domain.LLMRequest
type LLMResponse ¶
type LLMResponse = domain.LLMResponse
type LLMService ¶
type Module ¶
type Module struct { Svc LLMService KnowledgeBaseSvc KnowledgeBaseService Hdl *LLMHandler AdminHandler *AdminHandler C *event.KnowledgeBaseConsumer }
Source Files
¶
Directories
¶
Path | Synopsis |
---|---|
internal
|
|
service/llm/handler/mocks
Code generated by MockGen.
|
Code generated by MockGen. |
Package aimocks is a generated GoMock package.
|
Package aimocks is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.