This is an automated email from the ASF dual-hosted git repository.
LinkinStars pushed a change to branch test
in repository https://gitbox.apache.org/repos/asf/answer.git
from 2dbe594d fix(short_id): enhance GetEnableShortID to support gin
context for short ID flag retrieval
add 71d11b62 fix: resolve local plugin paths to absolute and enhance
module replacement logic
add dea18f99 feat: support semantic search in AI chat and embedding ability
add dc71f4a2 fix lint issue
add f346bcc8 update init tables
add 22c2a5c2 feat: implement vector search plugin and syncer for
question/answer embeddings
add 8dd55af6 fix lint
add 7d0714dd fix lint
add 5d923f8c feat: add vector sync service and integrate with answer and
question services
add 057679a2 refactor: remove unused build-local-vector-plugins target and
delete VECTOR_SEARCH_DESIGN.md
add ac7bdda0 fix lint
add 2836d0ea chore: add Apache License header to multiple files
add 278fdfd8 refactor: rename UpdateSearch to updateSearch for consistency
add c93f3bc5 refactor: simplify SaveSiteAI method by removing unnecessary
error handling
add e3831b6f refactor: streamline plugin initialization by removing
redundant search syncer registration
new 97924574 Merge remote-tracking branch 'origin/dev' into test
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
cmd/wire_gen.go | 14 +-
internal/base/constant/ai_config.go | 2 +
internal/cli/build.go | 20 +-
internal/controller/ai_controller.go | 7 +
internal/controller/mcp_controller.go | 133 ++++++++++++
internal/repo/vector_search_sync/syncer.go | 240 +++++++++++++++++++++
internal/schema/mcp_schema.go | 62 +++++-
internal/schema/mcp_tools/mcp_tools.go | 15 ++
internal/service/comment/comment_service.go | 32 +++
internal/service/content/answer_service.go | 29 +++
internal/service/content/question_service.go | 16 ++
internal/service/embedding/embedding_service.go | 60 ++++++
.../service/plugin_common/plugin_common_service.go | 13 ++
internal/service/provider.go | 4 +
internal/service/review/review_service.go | 17 ++
internal/service/vector_sync/vector_sync.go | 115 ++++++++++
plugin/plugin.go | 4 +
plugin/vector_search.go | 174 +++++++++++++++
18 files changed, 942 insertions(+), 15 deletions(-)
create mode 100644 internal/repo/vector_search_sync/syncer.go
create mode 100644 internal/service/embedding/embedding_service.go
create mode 100644 internal/service/vector_sync/vector_sync.go
create mode 100644 plugin/vector_search.go