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

pranamjain
/
bge-finetuned-rag

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

Instructions to use pranamjain/bge-finetuned-rag with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use pranamjain/bge-finetuned-rag with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("pranamjain/bge-finetuned-rag")
    
    sentences = [
        "What year do the patent families related to DARZALEX expire in the United States?",
        "Amortization for owned content predominantly monetized on an individual basis and accrued costs associated with participations and residuals payments are recorded using the individual film forecast computation method, which recognizes the costs in the same ratio as the associated ultimate revenue.",
        "The two patent families both expire in the United States in 2029.",
        "For the year ended December 31, 2022, net cash used in investing activities of $371.9 million was primarily from the purchase of $247.3 million marketable securities, net of sale and maturities, $62.2 million net cash used to acquire GreenCom, SolarLeadFactory and ClipperCreek, $46.4 million used in purchases of test and assembly equipment to expand our supply capacity, related facility improvements and information technology enhancements, including capitalized costs related to internal-use software and $16.0 million used to invest in private companies."
    ]
    embeddings = model.encode(sentences)
    
    similarities = model.similarity(embeddings, embeddings)
    print(similarities.shape)
    # [4, 4]
  • Notebooks
  • Google Colab
  • Kaggle
bge-finetuned-rag
439 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 2 commits
pranamjain's picture
pranamjain
Upload folder using huggingface_hub
4cd7641 verified 23 days ago
  • 1_Pooling
    Upload folder using huggingface_hub 23 days ago
  • .gitattributes
    1.52 kB
    initial commit 23 days ago
  • README.md
    60 kB
    Upload folder using huggingface_hub 23 days ago
  • config.json
    721 Bytes
    Upload folder using huggingface_hub 23 days ago
  • config_sentence_transformers.json
    296 Bytes
    Upload folder using huggingface_hub 23 days ago
  • model.safetensors
    438 MB
    xet
    Upload folder using huggingface_hub 23 days ago
  • modules.json
    448 Bytes
    Upload folder using huggingface_hub 23 days ago
  • sentence_bert_config.json
    250 Bytes
    Upload folder using huggingface_hub 23 days ago
  • special_tokens_map.json
    732 Bytes
    Upload folder using huggingface_hub 23 days ago
  • tokenizer.json
    712 kB
    Upload folder using huggingface_hub 23 days ago
  • tokenizer_config.json
    1.33 kB
    Upload folder using huggingface_hub 23 days ago
  • vocab.txt
    232 kB
    Upload folder using huggingface_hub 23 days ago