---
title: "Train the store's learned scoring function"
method: POST
path: "/v1/stores/{store_identifier}/lsf/train"
tags: ["stores"]
---

# Train the store's learned scoring function

`POST /v1/stores/{store_identifier}/lsf/train`

Queue a learned-scoring-function training run for a store.

The store must have been created with `config.lsf`. The run collects
signals for the store's captured searches and trains new weights when
enough signalled elements exist, exactly like the scheduled daily run.

Args:
    store_identifier: The ID or name of the store.

Returns:
    StoreLsfTrainingQueued: Confirmation that the run was queued.

## Path parameters

- `store_identifier` union, required — The ID or name of the store
  - string
  - string, uuid

## Response `202`

Confirmation that the training run was queued

- StoreLsfTrainingQueued — Response model for a queued learned-scoring-function training run.
  - `store_id` union, required — ID of the store whose training run was queued
    - string
    - string, uuid
  - `queued` boolean — Whether the training run was queued

## Other responses

- `422` — Validation Error

## Changes

- **2026-09-08** `ce403656bc18` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/mixedbread/apis/mxbai-omni/changes/v1/stores/:store_identifier/lsf/train/post.md)

---

[API](https://skmtc.dev/mixedbread/apis/mxbai-omni.md) · [All operations](https://skmtc.dev/mixedbread/apis/mxbai-omni/llms.txt) · [OpenAPI document](https://skmtc.dev/mixedbread/apis/mxbai-omni/revisions/9c6c72afde2d?raw)
