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
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

irene93
/
RAG_enhance

Sentence Similarity
sentence-transformers
Safetensors
xlm-roberta
feature-extraction
Generated from Trainer
dataset_size:23404
loss:MultipleNegativesRankingLoss
Eval Results (legacy)
text-embeddings-inference
Model card Files Files and versions
xet
Community

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

  • Libraries
  • sentence-transformers

    How to use irene93/RAG_enhance with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("irene93/RAG_enhance")
    
    sentences = [
        "What concern did analysts have regarding Microsoft's canceled data center leases, and how might recent growth in Azure address these concerns?",
        "Microsoft's Azure cloud division in particular grew by a third over\nthe quarter. The company says about half of that was contributed by AI, news\nthat could ease worries about a slowdown in demand for the new tech. Some\nanalysts had previously pointed to canceled data center leases by Microsoft as\na sign of excess capacity.",
        "The 2-year note <US2YT=RR> yield, which typically moves in\nstep with interest rate expectations for the Federal Reserve,\nfell 2.5 basis points to 3.66%, from 3.685% late on Monday. Oil prices slid on fears of a global recession and dampening\ndemand due to Trump's trade war. U.S. crude <CLc1> fell 2.63% to settle at $60.42 per barrel,\n while Brent <LCOc1> settled at $64.25 per barrel, down 2.44% on\nthe day.",
        "They tried to bring back tariffs to save our country, but it\nwas gone. It was too late. Nothing could have been done."
    ]
    embeddings = model.encode(sentences)
    
    similarities = model.similarity(embeddings, embeddings)
    print(similarities.shape)
    # [4, 4]
  • Notebooks
  • Google Colab
  • Kaggle
RAG_enhance / eval
870 Bytes
Ctrl+K
Ctrl+K
  • 1 contributor
History: 1 commit
irene93's picture
irene93
Upload folder using huggingface_hub
5791e02 verified 11 months ago
  • Information-Retrieval_evaluation_results.csv
    870 Bytes
    Upload folder using huggingface_hub 11 months ago