deepset / gbert-base-germandpr-reranking

huggingface.co
Total runs: 221
24-hour runs: 0
7-day runs: -19
30-day runs: 79
Model's Last Updated: September 26 2024
text-classification

Introduction of gbert-base-germandpr-reranking

Model Details of gbert-base-germandpr-reranking

Overview

Language model: gbert-base-germandpr-reranking
Language: German
Training data: GermanDPR train set (~ 56MB)
Eval data: GermanDPR test set (~ 6MB)
Infrastructure : 1x V100 GPU
Published : June 3rd, 2021

Details
  • We trained a text pair classification model in FARM, which can be used for reranking in document retrieval tasks. To this end, the classifier calculates the similarity of the query and each retrieved top k document (e.g., k=10). The top k documents are then sorted by their similarity scores. The document most similar to the query is the best.
Hyperparameters
batch_size = 16
n_epochs = 2
max_seq_len = 512 tokens for question and passage concatenated
learning_rate = 2e-5
lr_schedule = LinearWarmup
embeds_dropout_prob = 0.1
Performance

We use the GermanDPR test dataset as ground truth labels and run two experiments to compare how a BM25 retriever performs with or without reranking with our model. The first experiment runs retrieval on the full German Wikipedia (more than 2 million passages) and second experiment runs retrieval on the GermanDPR dataset only (not more than 5000 passages). Both experiments use 1025 queries. Note that the second experiment is evaluating on a much simpler task because of the smaller dataset size, which explains strong BM25 retrieval performance.

Full German Wikipedia (more than 2 million passages):

BM25 Retriever without Reranking

  • recall@3: 0.4088 (419 / 1025)
  • mean_reciprocal_rank@3: 0.3322

BM25 Retriever with Reranking Top 10 Documents

  • recall@3: 0.5200 (533 / 1025)
  • mean_reciprocal_rank@3: 0.4800
GermanDPR Test Dataset only (not more than 5000 passages):

BM25 Retriever without Reranking

  • recall@3: 0.9102 (933 / 1025)
  • mean_reciprocal_rank@3: 0.8528

BM25 Retriever with Reranking Top 10 Documents

  • recall@3: 0.9298 (953 / 1025)
  • mean_reciprocal_rank@3: 0.8813
Usage
In haystack

You can load the model in haystack for reranking the documents returned by a Retriever:

...
retriever = ElasticsearchRetriever(document_store=document_store)
ranker = FARMRanker(model_name_or_path="deepset/gbert-base-germandpr-reranking")
...
p = Pipeline()
p.add_node(component=retriever, name="ESRetriever", inputs=["Query"])
p.add_node(component=ranker, name="Ranker", inputs=["ESRetriever"])
)
About us

deepset logo We bring NLP to the industry via open source!
Our focus: Industry specific language models & large scale QA systems.

Some of our work:

Get in touch: Twitter | LinkedIn | Website

By the way: we're hiring!

Runs of deepset gbert-base-germandpr-reranking on huggingface.co

221
Total runs
0
24-hour runs
-92
3-day runs
-19
7-day runs
79
30-day runs

More Information About gbert-base-germandpr-reranking huggingface.co Model

More gbert-base-germandpr-reranking license Visit here:

https://choosealicense.com/licenses/mit

gbert-base-germandpr-reranking huggingface.co

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

gbert-base-germandpr-reranking huggingface.co Url

https://huggingface.co/deepset/gbert-base-germandpr-reranking

deepset gbert-base-germandpr-reranking online free

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

deepset gbert-base-germandpr-reranking online free url in huggingface.co:

https://huggingface.co/deepset/gbert-base-germandpr-reranking

gbert-base-germandpr-reranking install

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

gbert-base-germandpr-reranking install url in huggingface.co:

https://huggingface.co/deepset/gbert-base-germandpr-reranking

Url of gbert-base-germandpr-reranking

gbert-base-germandpr-reranking huggingface.co Url

Provider of gbert-base-germandpr-reranking huggingface.co

deepset
ORGANIZATIONS

Other API from deepset

huggingface.co

Total runs: 51.8K
Run Growth: 38.8K
Growth Rate: 75.02%
Updated: September 26 2024
huggingface.co

Total runs: 27.7K
Run Growth: 3.2K
Growth Rate: 11.47%
Updated: September 26 2024
huggingface.co

Total runs: 655
Run Growth: 197
Growth Rate: 33.56%
Updated: September 26 2024