115 Commits

Author SHA1 Message Date
hgaol 2836d0ea81 chore: add Apache License header to multiple files 2026-05-08 19:57:19 +08:00
hgaol 5d923f8ca3 feat: add vector sync service and integrate with answer and question services 2026-05-08 19:57:19 +08:00
hgaol 7d0714dd1a fix lint 2026-05-08 19:57:19 +08:00
hgaol 8dd55af6cd fix lint 2026-05-08 19:57:19 +08:00
hgaol 22c2a5c276 feat: implement vector search plugin and syncer for question/answer embeddings
- Added a new vector search syncer to aggregate questions and answers with comments for vector embedding.
- Introduced a new VectorSearch interface and related structures for managing vector storage and similarity search.
- Refactored embedding service to delegate semantic search to the new vector search plugin.
- Removed embedding-related fields from SiteAIProvider and UI forms as part of the transition to the new vector search architecture.
- Updated plugin registration to include vector search capabilities.
- Cleaned up embedding service methods and removed unused dependencies.
2026-05-08 19:57:19 +08:00
hgaol dc71f4a292 fix lint issue 2026-05-08 19:57:19 +08:00
hgaol dea18f997c feat: support semantic search in AI chat and embedding ability 2026-05-08 19:57:19 +08:00
LinkinStars 90022ce039 fix: integrate API key authentication into existing services and routes 2026-01-29 16:50:25 +08:00
LinkinStars ce5aadf30d feat: add AI configuration support with related controllers and services 2026-01-23 17:25:42 +08:00
kumfo d65e257f92 feat(docs): add Apache License 2.0 header to wire_gen.go 2026-01-22 12:21:02 +08:00
kumfo 29ec29bde7 feat(menu): update admin menu settings to include questions, tags, and advanced options 2026-01-20 14:54:52 +08:00
ferhat elmas 26d868b123 refactor(queue): improve queues
* fix race condition for registering handler
* add close method
* use generics to reduce duplication
* rename packages to drop underscore for go convention
* rename interface to drop stutter with package name

Signed-off-by: ferhat elmas <elmas.ferhat@gmail.com>
2026-01-14 11:22:53 +08:00
ferhat elmas bc629db132 chore(deps): bump mockgen to 0.6.0 for go1.25 support
Signed-off-by: ferhat elmas <elmas.ferhat@gmail.com>
2025-11-28 17:00:25 +08:00
LinkinStars eb1b20ab96 chore(ci): Add ASF header 2025-10-28 15:27:11 +08:00
shuai 52e1b8bd86 fix: merge dev 2025-10-21 18:13:37 +08:00
shuai 78df776449 fix: Details page editing time value adjustment 2025-09-30 15:34:37 +08:00
Luffy bec3e355a9 feat: Add user comment moderation 2025-09-23 14:57:07 +08:00
kumfo a6d95ae8f9 feat: add sidebar plugin 2025-08-13 14:44:25 +08:00
LinkinStars 6d02706d4d feat(user): add user suspension functionality 2025-06-26 14:42:08 +08:00
DanielAuerX def0559a55 Fix file record and delete files (branding and avatar) (#1335)
- [x] create file_record table
- [x] avatar and branding files are added to file_record
- [x] branding files are being deleted
- [x] avatar files are being deleted
- [x] reload latest avatar (frontend) after backend state is being
updated

problems addressed in the pr:
- clean up job fails, because it cannot access file_record table
- avatar and branding files are not added to the file_record table
- avatar and branding files are never deleted
- after an avatar is being updated/deleted, the old file is still being
requested due to browser caching. This is causing error logs ("no such
file or directory") in the backend.

cf. conversation in [pr
1326](https://github.com/apache/answer/pull/1326)

---------

Co-authored-by: broccoli <lekker.broccoli@gmail.com>
Co-authored-by: LinkinStars <linkinstar@foxmail.com>
2025-05-23 15:07:14 +08:00
LinkinStars 02c1304b99 feat(docs): Add Apache License header 2025-04-29 15:00:40 +08:00
shuai bebf5931a1 style: admin ui style changed 2025-04-07 15:31:31 +08:00
shuai 105cd37dfe fix: update seo template for footer template 2025-04-07 11:44:34 +08:00
LinkinStars 5cffab8649 feat(service): implement file cleanup and deletion functionality 2025-01-10 10:43:35 +08:00
LinkinStars 47c666200e Merge remote-tracking branch 'origin/main' into dev
# Conflicts:
#	internal/base/middleware/accept_language.go
#	internal/schema/answer_schema.go
#	internal/schema/comment_schema.go
#	internal/service/user_admin/user_backyard.go
2025-01-07 12:48:13 +08:00
LinkinStars 0618947350 refactor(name): rename incubator-answer 2025-01-07 10:39:23 +08:00
Luffy d328ea4175 fix: rename DeleteUserBadge to DeleteUserBadgeAward 2025-01-02 16:49:07 +08:00
Luffy 0f69467340 feat: remove user config 2025-01-02 16:49:07 +08:00
Luffy a475295784 feat: Add delete external user login info by user ID 2024-12-09 11:52:18 +08:00
LinkinStars e7ee4ea91d fix(review): reject the review when delete question 2024-12-09 11:52:18 +08:00
LinkinStars 23cc755aa8 feat(question): add question linking feature for closing question 2024-10-18 15:55:31 +08:00
sy-records a8e008de07 feat: Support related and hot questions template 2024-10-17 11:08:06 +08:00
LinkinStars 8602065490 refactor(provider): add importer provider 2024-10-16 17:03:29 +08:00
Anan 73c7a22900 Fix importer 2024-10-16 11:28:26 +08:00
Anan 5aad9e95b5 Add importer service 2024-10-16 11:28:26 +08:00
LinkinStars 0d6ea89ad3 refactor(gomod): upgrade golang and dependence version 2024-09-23 15:00:34 +08:00
sy-records 48c2387853 chore: sync swagger 2024-09-19 14:37:04 +08:00
kumfo bd7a8c0368 fix(badge): fixed badge description translation 2024-09-04 18:26:31 +08:00
LinkinStars 2ca5e8bb4a Merge branch 'dev' into test
# Conflicts:
#	cmd/wire_gen.go
#	internal/service/content/question_service.go
2024-09-04 10:29:05 +08:00
ferrischi201 eacb79e512 feat(recommend): add tag-based recommendations in question page
Filter out deleted or hidden questions and support multi databases and filter out deleted or hidden questions.

For issue:1003.
2024-09-04 10:24:53 +08:00
robin 1af1f77a60 feat: Add RenderController to handle rendering configuration 2024-08-23 11:39:16 +08:00
LinkinStars 7d040f07dd feat(badge): add badge notification 2024-08-15 18:34:13 +08:00
LinkinStars bede0adbf7 feat(badge): award badge for user 2024-08-14 10:38:17 +08:00
kumfo bb40366f00 feat(badge): badge manage and user center's badge list 2024-08-13 16:12:34 +08:00
kumfo c2531f9b07 chore(badge): change project code struct 2024-08-09 11:33:24 +08:00
LinkinStars 9b0de85ed4 feat(badge): add badge event handler 2024-08-08 18:09:27 +08:00
LinkinStars b2d36e0a73 Merge branch 'feat/1.4.0/badges' into feat/1.4.0/badge
# Conflicts:
#	internal/service/provider.go
2024-08-08 16:43:31 +08:00
kumfo 797ea9b918 feat(badge): badge info && badge award list 2024-08-08 16:41:17 +08:00
LinkinStars 07e4f549b1 feat(badge): add event for the badge 2024-08-08 16:19:47 +08:00
kumfo ea43edc864 feat(badge): define func and add badge's list 2024-08-07 16:35:22 +08:00