Skip to content

Support for config_sentence_transformers.json  #244

@sam-ulrich1

Description

@sam-ulrich1

Feature request

Add cli option to auto-format input text with config_sentence_transformers.json prompt settings (if provided) before toknizing.

Motivation

A lot of models now expect a prompt prefix so enabling the server-side handle of this allows clients to become model "model-agnostic". We have trouble changing between models since we must support the custom prompt for each specific model on the client side. Server side via config would remove this entriely.

Your contribution

Happy to do the PR myself just want to make sure this would be a welcome contribution

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions