Skip to content

New option to TextEncoder to prefix with the column name #1206

Open
@GaelVaroquaux

Description

Language models use very well the context, and the column name can give useful context. For instance the value "mouse" should probably be embedded differently if the column name is "peripheral" versus "animal".

My suggestion is to have an option to embed entries with "{column_name}: {entry}" to enable exploiting this piece of context.

Of course, ideally we should benchmark this option, to see how / when it brings value.

The benefit would be to disambiguate "State: New York" and "City: New York"

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions