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

redis
/
langcache-embed-v2

Sentence Similarity
sentence-transformers
ONNX
Safetensors
OpenVINO
modernbert
feature-extraction
Generated from Trainer
dataset_size:36864
loss:MatryoshkaLoss
loss:CachedMultipleNegativesRankingLoss
text-embeddings-inference
Model card Files Files and versions
xet
Community
5

Instructions to use redis/langcache-embed-v2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use redis/langcache-embed-v2 with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("redis/langcache-embed-v2")
    
    sentences = [
        "What are civil cases and what are some examples?",
        "What are criminal cases and what are no examples?",
        "Civil cases involve disputes between individuals or organizations, typically seeking monetary compensation or specific performance, and *do not* include criminal prosecutions by the government.",
        "Criminal cases involve disputes between individuals or organizations, seeking monetary damages or specific performance, while civil cases concern offenses against the state punishable by imprisonment.",
        "What are some examples of civil cases?"
    ]
    embeddings = model.encode(sentences)
    
    similarities = model.similarity(embeddings, embeddings)
    print(similarities.shape)
    # [5, 5]
  • Inference
  • Notebooks
  • Google Colab
  • Kaggle
langcache-embed-v2
600 MB
Ctrl+K
Ctrl+K
  • 2 contributors
History: 9 commits
waris-gill's picture
waris-gill
Update README.md
86b6536 verified about 1 year ago
  • 1_Pooling
    Upload folder using huggingface_hub about 1 year ago
  • .gitattributes
    1.52 kB
    initial commit about 1 year ago
  • README.md
    18.2 kB
    Update README.md about 1 year ago
  • config.json
    1.21 kB
    Upload folder using huggingface_hub about 1 year ago
  • config_sentence_transformers.json
    205 Bytes
    Upload folder using huggingface_hub about 1 year ago
  • medical.png
    64.9 kB
    Upload 4 files about 1 year ago
  • model.safetensors
    596 MB
    xet
    Upload folder using huggingface_hub about 1 year ago
  • modules.json
    229 Bytes
    Upload folder using huggingface_hub about 1 year ago
  • negation.png
    77.2 kB
    Upload 4 files about 1 year ago
  • quora.png
    67.3 kB
    Upload 4 files about 1 year ago
  • redis.png
    72.1 kB
    Upload 4 files about 1 year ago
  • sentence_bert_config.json
    54 Bytes
    Upload folder using huggingface_hub about 1 year ago
  • special_tokens_map.json
    694 Bytes
    Upload folder using huggingface_hub about 1 year ago
  • tokenizer.json
    3.58 MB
    Upload folder using huggingface_hub about 1 year ago
  • tokenizer_config.json
    21 kB
    Upload folder using huggingface_hub about 1 year ago