Run this model with HF Jobs

Run WhereIsAI/UAE-Large-V1 on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs to fine-tune https://huggingface.co/WhereIsAI/UAE-Large-V1. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/WhereIsAI/UAE-Large-V1 on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

Adding query prompt when using with sentence-transformers

#17
by Reggie - opened

Hi,
I'm trying to use the model with Sentence Transformers, and was wondering how the query prompt can be added for certain embeds?

WhereIsAI org

hi @Reggie , maybe you can manually set the prompts like

from angle_emb import Prompts

model.encode(Prompts.C.format(text))
model.encode(Prompts.C.format(text='some text'))

Just to confirm, the above will essentially convert my query into this: Represent this sentence for searching relevant passages: some text
Is my understanding right?

hi @Reggie , maybe you can manually set the prompts like

from angle_emb import Prompts

model.encode(Prompts.C.format(text))

Sorry, I made a mistake. It should be Prompts.C.format(text=query)

Sign up or log in to comment