huggingface.co
Total runs: 1.5K
24-hour runs: -1
7-day runs: -27
30-day runs: 753
Model's Last Updated: October 15 2021
sentence-similarity

Introduction of mfaq

Model Details of mfaq

MFAQ

We present a multilingual FAQ retrieval model trained on the MFAQ dataset , it ranks candidate answers according to a given question.

Installation
pip install sentence-transformers transformers
Usage

You can use MFAQ with sentence-transformers or directly with a HuggingFace model. In both cases, questions need to be prepended with <Q> , and answers with <A> .

Sentence Transformers
from sentence_transformers import SentenceTransformer

question = "<Q>How many models can I host on HuggingFace?"
answer_1 = "<A>All plans come with unlimited private models and datasets."
answer_2 = "<A>AutoNLP is an automatic way to train and deploy state-of-the-art NLP models, seamlessly integrated with the Hugging Face ecosystem."
answer_3 = "<A>Based on how much training data and model variants are created, we send you a compute cost and payment link - as low as $10 per job."

model = SentenceTransformer('clips/mfaq')
embeddings = model.encode([question, answer_1, answer_3, answer_3])
print(embeddings)
HuggingFace Transformers
from transformers import AutoTokenizer, AutoModel
import torch

def mean_pooling(model_output, attention_mask):
    token_embeddings = model_output[0] #First element of model_output contains all token embeddings
    input_mask_expanded = attention_mask.unsqueeze(-1).expand(token_embeddings.size()).float()
    return torch.sum(token_embeddings * input_mask_expanded, 1) / torch.clamp(input_mask_expanded.sum(1), min=1e-9)

question = "<Q>How many models can I host on HuggingFace?"
answer_1 = "<A>All plans come with unlimited private models and datasets."
answer_2 = "<A>AutoNLP is an automatic way to train and deploy state-of-the-art NLP models, seamlessly integrated with the Hugging Face ecosystem."
answer_3 = "<A>Based on how much training data and model variants are created, we send you a compute cost and payment link - as low as $10 per job."

tokenizer = AutoTokenizer.from_pretrained('clips/mfaq')
model = AutoModel.from_pretrained('clips/mfaq')

# Tokenize sentences
encoded_input = tokenizer([question, answer_1, answer_3, answer_3], padding=True, truncation=True, return_tensors='pt')

# Compute token embeddings
with torch.no_grad():
    model_output = model(**encoded_input)

# Perform pooling. In this case, max pooling.
sentence_embeddings = mean_pooling(model_output, encoded_input['attention_mask'])
Training

You can find the training script for the model here .

People

This model was developed by Maxime De Bruyn , Ehsan Lotfi, Jeska Buhmann and Walter Daelemans.

Citation information
@misc{debruyn2021mfaq,
      title={MFAQ: a Multilingual FAQ Dataset}, 
      author={Maxime De Bruyn and Ehsan Lotfi and Jeska Buhmann and Walter Daelemans},
      year={2021},
      eprint={2109.12870},
      archivePrefix={arXiv},
      primaryClass={cs.CL}
}

Runs of clips mfaq on huggingface.co

1.5K
Total runs
-1
24-hour runs
-91
3-day runs
-27
7-day runs
753
30-day runs

More Information About mfaq huggingface.co Model

mfaq huggingface.co

mfaq huggingface.co is an AI model on huggingface.co that provides mfaq's model effect (), which can be used instantly with this clips mfaq model. huggingface.co supports a free trial of the mfaq model, and also provides paid use of the mfaq. Support call mfaq model through api, including Node.js, Python, http.

clips mfaq online free

mfaq huggingface.co is an online trial and call api platform, which integrates mfaq's modeling effects, including api services, and provides a free online trial of mfaq, you can try mfaq online for free by clicking the link below.

clips mfaq online free url in huggingface.co:

https://huggingface.co/clips/mfaq

mfaq install

mfaq is an open source model from GitHub that offers a free installation service, and any user can find mfaq on GitHub to install. At the same time, huggingface.co provides the effect of mfaq install, users can directly use mfaq installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

mfaq install url in huggingface.co:

https://huggingface.co/clips/mfaq

Url of mfaq

mfaq huggingface.co Url

Provider of mfaq huggingface.co

clips
ORGANIZATIONS

Other API from clips

huggingface.co

Total runs: 1.1K
Run Growth: -432
Growth Rate: -40.19%
Updated:October 13 2025
huggingface.co

Total runs: 99
Run Growth: 15
Growth Rate: 15.15%
Updated:October 13 2025
huggingface.co

Total runs: 23
Run Growth: -7
Growth Rate: -30.43%
Updated:April 27 2023
huggingface.co

Total runs: 16
Run Growth: -13
Growth Rate: -81.25%
Updated:March 15 2022
huggingface.co

Total runs: 8
Run Growth: -9
Growth Rate: -112.50%
Updated:October 13 2025
huggingface.co

Total runs: 6
Run Growth: -10
Growth Rate: -166.67%
Updated:October 13 2025