Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing
    • Website
      • Tasks
      • HuggingChat
      • Collections
      • Languages
      • Organizations
    • Community
      • Blog
      • Posts
      • Daily Papers
      • Hardware
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

E3LQA
/
lleqa_article_retriever

Sentence Similarity
sentence-transformers
Safetensors
gte
feature-extraction
Generated from Trainer
dataset_size:148815
loss:CachedMultipleNegativesRankingLoss
custom_code
Eval Results (legacy)
Model card Files Files and versions
xet
Community

Instructions to use E3LQA/lleqa_article_retriever with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use E3LQA/lleqa_article_retriever with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("E3LQA/lleqa_article_retriever", trust_remote_code=True)
    
    sentences = [
        "query: Je suis travailleuse salariée. Quelles démarches dois-je faire auprès de la mutuelle avant la naissance de mon enfant ?",
        "Le trajet de réintégration visant la réinsertion socioprofessionnelle au sens de cette section a pour objectif, dans le cadre du \" Trajet Retour Au Travail \", de favoriser la réintégration socioprofessionnelle du titulaire qui n'est plus ou ne peut plus être employé par son employeur en l'accompagnant vers une fonction auprès d'un autre employeur ou dans une autre branche d'activité.",
        "Le Roi peut fixer le montant minimum des cotisations personnelles visées aux articles 116/1, § 1er, 116/3, 121, 123, 128, § 1er, et 130, et les conditions dans lesquelles elles peuvent être réduites ou supprimées.",
        "Le bail d'un appartement meublé est censé fait à l'année, quand il a été fait à tant par an ;Au mois, s'il a été fait à tant par mois;Au jour, s'il a été fait à tant par jour.."
    ]
    embeddings = model.encode(sentences)
    
    similarities = model.similarity(embeddings, embeddings)
    print(similarities.shape)
    # [4, 4]
  • Notebooks
  • Google Colab
  • Kaggle
lleqa_article_retriever
1.24 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 3 commits
E3LQA's picture
E3LQA
Update README.md
8a7057d verified 5 months ago
  • 1_Pooling
    Add new SentenceTransformer model 5 months ago
  • .gitattributes
    1.57 kB
    Add new SentenceTransformer model 5 months ago
  • README.md
    84.7 kB
    Update README.md 5 months ago
  • config.json
    973 Bytes
    Add new SentenceTransformer model 5 months ago
  • config_sentence_transformers.json
    290 Bytes
    Add new SentenceTransformer model 5 months ago
  • configuration_hf_alibaba_nlp_gte.py
    7.13 kB
    Add new SentenceTransformer model 5 months ago
  • model.safetensors
    1.22 GB
    xet
    Add new SentenceTransformer model 5 months ago
  • modeling_hf_alibaba_nlp_gte.py
    40.4 kB
    Add new SentenceTransformer model 5 months ago
  • modules.json
    349 Bytes
    Add new SentenceTransformer model 5 months ago
  • sentence_bert_config.json
    58 Bytes
    Add new SentenceTransformer model 5 months ago
  • special_tokens_map.json
    964 Bytes
    Add new SentenceTransformer model 5 months ago
  • tokenizer.json
    17.1 MB
    xet
    Add new SentenceTransformer model 5 months ago
  • tokenizer_config.json
    1.37 kB
    Add new SentenceTransformer model 5 months ago