Skip to content

Update names of embedding files #122

@cassiasamp

Description

@cassiasamp

Description (Actual Behavior)

The names of the files following the pattern prompt_sentences-<model_name>-<language>.js are currently getting too big.

Expected Behavior

Have smaller file names.

Possible Approach

Have either smaller model names according to HuggingFace ids and maintain the pattern prompt_sentences-<model_name>-<language>.js or perhaps change it to corpus-<model_name>-<language>.js.

We could also use and modify the already existing function to generate the names, perhaps in a notebook recipe just for that.

# Converts model_id into filenames
def model_id_to_filename( model_id ):
    return model_id.split('/')[1].lower()

Metadata

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