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

srinivasanAI
/
bge-small-my-qna-model

Sentence Similarity
sentence-transformers
Safetensors
bert
feature-extraction
Generated from Trainer
dataset_size:100231
loss:MultipleNegativesRankingLoss
text-embeddings-inference
Model card Files Files and versions
xet
Community

Instructions to use srinivasanAI/bge-small-my-qna-model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use srinivasanAI/bge-small-my-qna-model with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("srinivasanAI/bge-small-my-qna-model")
    
    sentences = [
        "Represent this sentence for searching relevant passages: where do the chances live on raising hope",
        "Raising Hope James \"Jimmy\" Chance is a 23-year old, living in the surreal fictional town of Natesville, who impregnates a serial killer during a one-night stand. Earning custody of his daughter, Hope, after the mother is sentenced to death, Jimmy relies on his oddball but well-intentioned family for support in raising the child.",
        "Quadripoint A quadripoint is a point on the Earth that touches the border of four distinct territories.[1][2] The term has never been in common use—it may not have been used before 1964 when it was possibly invented by the Office of the Geographer of the United States Department of State.[3][n 1] The word does not appear in the Oxford English Dictionary or Merriam-Webster Online dictionary, but it does appear in the Encyclopædia Britannica,[4] as well as in the World Factbook articles on Botswana, Namibia, Zambia, and Zimbabwe, dating as far back as 1990.[5]",
        "Show Me the Way to Go Home The song was recorded by several artists in the 1920s, including radio personalities The Happiness Boys,[2] Vincent Lopez and his Orchestra,[2] and the California Ramblers.[3] Throughout the twentieth into the twenty-first century it has been recorded by numerous artists."
    ]
    embeddings = model.encode(sentences)
    
    similarities = model.similarity(embeddings, embeddings)
    print(similarities.shape)
    # [4, 4]
  • Notebooks
  • Google Colab
  • Kaggle
bge-small-my-qna-model
134 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 4 commits
srinivasanAI's picture
srinivasanAI
updated
0563c59 verified about 1 year ago
  • 1_Pooling
    Initial commit: fine-tuned BGE-small on custom Q&A data about 1 year ago
  • .gitattributes
    1.52 kB
    initial commit about 1 year ago
  • README.md
    25 kB
    updated about 1 year ago
  • config.json
    661 Bytes
    Initial commit: fine-tuned BGE-small on custom Q&A data about 1 year ago
  • config_sentence_transformers.json
    205 Bytes
    Initial commit: fine-tuned BGE-small on custom Q&A data about 1 year ago
  • model.safetensors
    133 MB
    xet
    Initial commit: fine-tuned BGE-small on custom Q&A data about 1 year ago
  • modules.json
    349 Bytes
    Initial commit: fine-tuned BGE-small on custom Q&A data about 1 year ago
  • sentence_bert_config.json
    52 Bytes
    Initial commit: fine-tuned BGE-small on custom Q&A data about 1 year ago
  • special_tokens_map.json
    695 Bytes
    Initial commit: fine-tuned BGE-small on custom Q&A data about 1 year ago
  • tokenizer.json
    712 kB
    Initial commit: fine-tuned BGE-small on custom Q&A data about 1 year ago
  • tokenizer_config.json
    1.46 kB
    Initial commit: fine-tuned BGE-small on custom Q&A data about 1 year ago
  • vocab.txt
    232 kB
    Initial commit: fine-tuned BGE-small on custom Q&A data about 1 year ago