Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: CI
on:
pull_request:
push:
branches: [main]
branches: [main, 'release/**']

permissions:
contents: read
Expand All @@ -25,6 +25,7 @@ jobs:
uses: actions/checkout@v7
with:
repository: open-rec/rec-algorithm
ref: e2bab2c3a4d0692756da9eb4abd4414e126bab87
path: rec-algorithm
- name: Set up Python
uses: actions/setup-python@v6
Expand Down
36 changes: 36 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Release

on:
push:
tags: ['v*']

permissions:
contents: write

jobs:
release:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v7
- name: Validate version and create source archive
shell: bash
env:
REPOSITORY_NAME: ${{ github.event.repository.name }}
run: |
version="$(tr -d '[:space:]' < VERSION)"
test "${GITHUB_REF_NAME}" = "v${version}"
test -s RELEASE_NOTES.md
[[ "${version}" != *-dev ]]
archive="${REPOSITORY_NAME}-${version}.tar.gz"
git archive --format=tar.gz --prefix="${REPOSITORY_NAME}-${version}/" -o "${RUNNER_TEMP}/${archive}" HEAD
cd "${RUNNER_TEMP}"
sha256sum "${archive}" > "${archive}.sha256"
- name: Publish release notes and source assets
uses: softprops/action-gh-release@v3
with:
body_path: RELEASE_NOTES.md
fail_on_unmatched_files: true
files: |
${{ runner.temp }}/*.tar.gz
${{ runner.temp }}/*.tar.gz.sha256
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Changelog

## 0.1.0 — 2026-10-05

First coordinated release. See [release notes](RELEASE_NOTES.md) for features, compatibility and known limitations.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# OpenRec Rank Engine

[Release v0.1.0](RELEASE_NOTES.md) · [Changelog](CHANGELOG.md)

[![CI](https://github.com/open-rec/rank-engine/actions/workflows/ci.yml/badge.svg)](https://github.com/open-rec/rank-engine/actions/workflows/ci.yml)
![Python](https://img.shields.io/badge/Python-3.12-3776AB?logo=python&logoColor=white)
![FastAPI](https://img.shields.io/badge/FastAPI-0.141.1-009688?logo=fastapi&logoColor=white)
Expand Down
25 changes: 25 additions & 0 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# rank-engine v0.1.0

Released: 2026-10-05

Online model inference. First coordinated OpenRec source release.

## Features

- FastAPI scoring for source users and item or user candidates, using LR, FM and LightGBM models.
- Shared encoders and feature contracts from rec-algorithm, Redis feature snapshots, and refreshable time-window features.
- Versioned model loading, retained activation state, startup recovery and readiness checks.
- Explicit feature-sidecar validation, scoring metrics and CPU/CUDA device configuration.
- Session and request feature transport where supported by the selected model contract.

## Installation and compatibility

Build with rec-algorithm `v0.1.0`. Model weights, fitted feature sidecars and selected definitions must be compatible. Default bootstrap models live under `rank/item` and `rank/user`; trained releases and activation state use separate runtime storage.

The service loads and scores models; offline training belongs to rec-algorithm. Standalone normally bypasses ranking. A nonempty rec-server response alone does not establish that ranking succeeded; cluster acceptance checks rank scores.

## Validation and known boundaries

See this repository's README for build/test commands and deployment requirements. The coordinated release's [validation record](https://github.com/open-rec/openrec/blob/v0.1.0/release/VALIDATION.md) distinguishes checks executed for this release from historical integration evidence.

This initial release establishes a versioned source baseline. Source archives and checksums are published; external package registries and container registries are not populated by the source-release workflow. Upgrade the complete compatible distribution, retain data/checkpoints/artifacts, and preserve prior component refs for rollback.
1 change: 1 addition & 0 deletions VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0.1.0
2 changes: 1 addition & 1 deletion server.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
from service.feature_service import FeatureService
from util.redis_util import get_redis_client

app = FastAPI(title="OpenRec Rank Engine", version="1.0")
app = FastAPI(title="OpenRec Rank Engine", version="0.1.0")
model = None
model_info = None
user_model = None
Expand Down
Loading