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

Gswrtz
/
finetuned-cos-rag-embedder

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

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

  • Libraries
  • sentence-transformers

    How to use Gswrtz/finetuned-cos-rag-embedder with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("Gswrtz/finetuned-cos-rag-embedder")
    
    sentences = [
        "Most Common enzyme deficient in galactosemics: A. Galactose-1-phosphate uridyl transferase/GALT. B. Galactosidase. C. UDP galactose epimerase. D. Galactokinase.",
        "Solve the following expression and give your answer as a decimal. $ 50\\% \\times \\dfrac{2}{8} = {?} $\n\nHints:\nFirst get all of the numbers in decimal form. $ 50\\% = \\dfrac{50}{100} = 0.5 $ $ \\dfrac{2}{8} = 0.25$ Now we have: $ 0.5 \\times 0.25 = {?} $ $ 0.5 \\times 0.25 = 0.125 $",
        "**Galactose-1-phosphate uridylyltransferase**\n\nGalactose-1-phosphate uridylyltransferase:\nGalactose-1-phosphate uridylyltransferase (or GALT, G1PUT) is an enzyme (EC 2.7.7.12) responsible for converting ingested galactose to glucose.Galactose-1-phosphate uridylyltransferase (GALT) catalyzes the second step of the Leloir pathway of galactose metabolism, namely: UDP-glucose + galactose 1-phosphate  ⇌ glucose 1-phosphate + UDP-galactoseThe expression of GALT is controlled by the actions of the FOXO3 gene. The absence of this enzyme results in classic galactosemia in humans and can be fatal in the newborn period if lactose is not removed from the diet. The pathophysiology of galactosemia has not been clearly defined.",
        "**Galactose 1-phosphate**\n\nGalactose 1-phosphate:\nD-Galactose-1-phosphate is an intermediate in the intraconversion of glucose and uridine diphosphate galactose. It is formed from galactose by galactokinase.The improper metabolism of galactose-1-phosphate is a characteristic of galactosemia. The Leloir pathway is responsible for such metabolism of galactose and its intermediate, galactose-1-phosphate. Deficiency of enzymes found in this pathway can result in galactosemia; therefore, diagnosis of this genetic disorder occasionally involves measuring the concentration of these enzymes. One of such enzymes is galactose-1-phosphate uridylytransferase (GALT). The enzyme catalyzes the transfer of a UDP-activator group from UDP-glucose to galactose-1-phosphate. Although the cause of enzyme deficiency in the Leloir pathway is still disputed amongst researchers, some studies suggest that protein misfolding of GALT, which may lead to an unfavorable conformational change that impacts its thermal stability and substrate-binding affinity, may play a role in the deficiency of GALT in Type 1 galactosemia. Increase in galactitol concentration can be seen in patients with galactosemia; putting patients at higher risk for presenile cataract."
    ]
    embeddings = model.encode(sentences)
    
    similarities = model.similarity(embeddings, embeddings)
    print(similarities.shape)
    # [4, 4]
  • Notebooks
  • Google Colab
  • Kaggle
finetuned-cos-rag-embedder
91.9 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 2 commits
Gswrtz's picture
Gswrtz
Upload fine-tuned RAG embedding model
45ca9cb verified 12 months ago
  • 1_Pooling
    Upload fine-tuned RAG embedding model 12 months ago
  • .gitattributes
    1.52 kB
    initial commit 12 months ago
  • README.md
    37.5 kB
    Upload fine-tuned RAG embedding model 12 months ago
  • config.json
    617 Bytes
    Upload fine-tuned RAG embedding model 12 months ago
  • config_sentence_transformers.json
    199 Bytes
    Upload fine-tuned RAG embedding model 12 months ago
  • model.safetensors
    90.9 MB
    xet
    Upload fine-tuned RAG embedding model 12 months ago
  • modules.json
    349 Bytes
    Upload fine-tuned RAG embedding model 12 months ago
  • sentence_bert_config.json
    53 Bytes
    Upload fine-tuned RAG embedding model 12 months ago
  • special_tokens_map.json
    695 Bytes
    Upload fine-tuned RAG embedding model 12 months ago
  • tokenizer.json
    712 kB
    Upload fine-tuned RAG embedding model 12 months ago
  • tokenizer_config.json
    1.46 kB
    Upload fine-tuned RAG embedding model 12 months ago
  • vocab.txt
    232 kB
    Upload fine-tuned RAG embedding model 12 months ago