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

anandshaurya011
/
RAG_model

Sentence Similarity
sentence-transformers
PyTorch
google-tensorflow TensorFlow
Rust
ONNX
Safetensors
Transformers
English
bert
feature-extraction
text-embeddings-inference
Model card Files Files and versions
xet
Community

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

  • Libraries
  • sentence-transformers

    How to use anandshaurya011/RAG_model with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("anandshaurya011/RAG_model")
    
    sentences = [
        "That is a happy person",
        "That is a happy dog",
        "That is a very happy person",
        "Today is a sunny day"
    ]
    embeddings = model.encode(sentences)
    
    similarities = model.similarity(embeddings, embeddings)
    print(similarities.shape)
    # [4, 4]
  • Transformers

    How to use anandshaurya011/RAG_model with Transformers:

    # Load model directly
    from transformers import AutoTokenizer, AutoModel
    
    tokenizer = AutoTokenizer.from_pretrained("anandshaurya011/RAG_model")
    model = AutoModel.from_pretrained("anandshaurya011/RAG_model", device_map="auto")
  • Notebooks
  • Google Colab
  • Kaggle
RAG_model
546 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 5 commits

This model has 1 file scanned as suspicious.

anandshaurya011's picture
anandshaurya011
Upload 1_Pooling_config.json
aceec7d verified about 2 years ago
  • .gitattributes
    317 Bytes
    Upload model.onnx about 2 years ago
  • 1_Pooling_config.json
    190 Bytes
    Upload 1_Pooling_config.json about 2 years ago
  • README.md
    10.7 kB
    Upload 17 files about 2 years ago
  • config.json
    612 Bytes
    Upload 17 files about 2 years ago
  • config_sentence_transformers.json
    116 Bytes
    Upload 17 files about 2 years ago
  • data_config.json
    39.3 kB
    Upload 17 files about 2 years ago
  • gitattributes
    1.23 kB
    Upload 17 files about 2 years ago
  • model.onnx
    90.4 MB
    xet
    Upload model.onnx about 2 years ago
  • model.safetensors
    90.9 MB
    xet
    Upload 17 files about 2 years ago
  • modules.json
    349 Bytes
    Upload 17 files about 2 years ago
  • pytorch_model.bin
    90.9 MB
    xet
    Upload 17 files about 2 years ago
  • rust_model (1).ot
    90.9 MB
    xet
    Upload 17 files about 2 years ago
  • rust_model.ot
    90.9 MB
    xet
    Upload 17 files about 2 years ago
  • sentence_bert_config.json
    53 Bytes
    Upload 17 files about 2 years ago
  • special_tokens_map.json
    112 Bytes
    Upload 17 files about 2 years ago
  • tf_model.h5
    91 MB
    xet
    Upload 17 files about 2 years ago
  • tokenizer.json
    466 kB
    Upload 17 files about 2 years ago
  • tokenizer_config.json
    350 Bytes
    Upload 17 files about 2 years ago
  • train_script.py
    13.2 kB
    Upload 17 files about 2 years ago
  • vocab.txt
    232 kB
    Upload 17 files about 2 years ago