Skip to content

A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.

fix lint

hgaol8dd55af6cd6b
diff --git a/cmd/wire_gen.go b/cmd/wire_gen.go
index 2c593169..df3b0a1b 100644
--- a/cmd/wire_gen.go
+++ b/cmd/wire_gen.go
@@ -248,7 +248,6 @@ func initApplication(debug bool, serverConf *conf.Server, dbConf *data.Database,
reasonService := reason2.NewReasonService(reasonRepo)
reasonController := controller.NewReasonController(reasonService)
themeController := controller_admin.NewThemeController()
- embeddingService := embedding.NewEmbeddingService()
siteInfoService := siteinfo.NewSiteInfoService(siteInfoRepo, siteInfoCommonService, emailService, tagCommonService, configService, questionCommon, fileRecordService)
siteInfoController := controller_admin.NewSiteInfoController(siteInfoService)
controllerSiteInfoController := controller.NewSiteInfoController(siteInfoCommonService)
@@ -285,6 +284,7 @@ func initApplication(debug bool, serverConf *conf.Server, dbConf *data.Database,
apiKeyService := apikey.NewAPIKeyService(apiKeyRepo)
adminAPIKeyController := controller_admin.NewAdminAPIKeyController(apiKeyService)
featureToggleService := feature_toggle.NewFeatureToggleService(siteInfoRepo)
+ embeddingService := embedding.NewEmbeddingService()
mcpController := controller.NewMCPController(searchService, siteInfoCommonService, tagCommonService, questionCommon, commentRepo, userCommon, answerRepo, featureToggleService, embeddingService)
aiConversationRepo := ai_conversation.NewAIConversationRepo(dataData)
aiConversationService := ai_conversation2.NewAIConversationService(aiConversationRepo, userCommon)
diff --git a/docs/docs.go b/docs/docs.go
index b50a3cf7..57a23d43 100644
--- a/docs/docs.go
+++ b/docs/docs.go
@@ -11719,7 +11719,7 @@ const docTemplate = `{
"provider": {
"type": "string",
"maxLength": 50
- },
+ }
}
},
"schema.SiteAIReq": {
diff --git a/docs/swagger.json b/docs/swagger.json
index 44186220..dac2b38f 100644
--- a/docs/swagger.json
+++ b/docs/swagger.json
@@ -11692,7 +11692,7 @@
"provider": {
"type": "string",
"maxLength": 50
- },
+ }
}
},
"schema.SiteAIReq": {
diff --git a/plugin/vector_search.go b/plugin/vector_search.go
index a0170152..134247d6 100644
--- a/plugin/vector_search.go
+++ b/plugin/vector_search.go
@@ -65,16 +65,16 @@ type VectorSearchDesc struct {
// VectorSearchMetadata holds IDs for URI composition and content retrieval at query time.
// Shared between plugins and the core MCP controller.
type VectorSearchMetadata struct {
- QuestionID string `json:"question_id"`
- AnswerID string `json:"answer_id,omitempty"`
- Answers []VectorSearchMetadataAnswer `json:"answers,omitempty"`
- Comments []VectorSearchMetadataComment `json:"comments,omitempty"`
+ QuestionID string `json:"question_id"`
+ AnswerID string `json:"answer_id,omitempty"`
+ Answers []VectorSearchMetadataAnswer `json:"answers,omitempty"`
+ Comments []VectorSearchMetadataComment `json:"comments,omitempty"`
}
// VectorSearchMetadataAnswer stores answer ID and its comment IDs in metadata.
type VectorSearchMetadataAnswer struct {
- AnswerID string `json:"answer_id"`
- Comments []VectorSearchMetadataComment `json:"comments,omitempty"`
+ AnswerID string `json:"answer_id"`
+ Comments []VectorSearchMetadataComment `json:"comments,omitempty"`
}
// VectorSearchMetadataComment stores a comment ID in metadata.