refactor: remove Gorse integration and implement HotRank feature
Some checks failed
Build Backend / build-docker (push) Has been cancelled
Build Backend / build (push) Has been cancelled

- Removed Gorse-related configurations, handlers, and dependencies from the codebase.
- Introduced HotRank feature with configuration options for ranking posts based on recent activity.
- Updated application structure to support HotRank processing, including new caching mechanisms and database interactions.
- Cleaned up related DTOs and repository methods to reflect the removal of Gorse and the addition of HotRank functionality.
This commit is contained in:
lafay
2026-03-24 05:18:30 +08:00
parent b41567a39a
commit 176cd20847
32 changed files with 735 additions and 1128 deletions

View File

@@ -34,7 +34,8 @@ jobs:
deploy:
runs-on: ubuntu-latest
if: ${{ (github.event.pull_request.merged == true) || (github.event_name == 'workflow_dispatch') }}
environment: production
# workflow_dispatch 可选 staging合并进主分支默认 production
environment: ${{ github.event.inputs.environment || 'production' }}
steps:
- name: Deploy via SSH
uses: appleboy/ssh-action@v1.0.3
@@ -84,12 +85,12 @@ jobs:
-e APP_ENCRYPTION_ENABLED=true \
-e "APP_ENCRYPTION_KEY=${{ secrets.ENCRYPTION_KEY }}" \
-e APP_ENCRYPTION_KEY_VERSION=1 \
-e APP_GORSE_ENABLED=true \
-e APP_GORSE_ADDRESS=http://111.170.19.33:8088 \
-e "APP_GORSE_IMPORT_PASSWORD=${{ secrets.GORSE_IMPORT_PASSWORD }}" \
-e "APP_GORSE_EMBEDDING_API_KEY=${{ secrets.GORSE_EMBEDDING_API_KEY }}" \
-e APP_GORSE_EMBEDDING_URL=https://api.littlelan.cn/v1/embeddings \
-e APP_GORSE_EMBEDDING_MODEL=BAAI/bge-m3 \
-e APP_HOT_RANK_ENABLED=true \
-e APP_HOT_RANK_REFRESH_INTERVAL_SECONDS=300 \
-e APP_HOT_RANK_TOP_N=100 \
-e APP_HOT_RANK_RECENT_WINDOW_HOURS=168 \
-e APP_HOT_RANK_RECENT_FETCH_LIMIT=500 \
-e APP_HOT_RANK_CANDIDATE_CAP=800 \
-e APP_OPENAI_ENABLED=true \
-e APP_OPENAI_BASE_URL=https://api.littlelan.cn/ \
-e "APP_OPENAI_API_KEY=${{ secrets.OPENAI_API_KEY }}" \