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

YuxuanGong
/
lean-RAG

Sentence Similarity
sentence-transformers
Safetensors
English
Chinese
code
xlm-roberta
feature-extraction
mathlib4
lean4
formal-proof
retrieval
code-retrieval
math
text-embeddings-inference
Model card Files Files and versions
xet
Community

Instructions to use YuxuanGong/lean-RAG with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use YuxuanGong/lean-RAG with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("YuxuanGong/lean-RAG")
    
    sentences = [
        "theorem length_take_of_le_length | (s.take n).length = n",
        "Keywords: less than or equal find if and only natural number lemma proposition | Name: Nat le_find_iff | Kind: lemma | Namespace: Nat",
        "Keywords: length take le' list theorem proposition | Name: List length_take_le' | Kind: theorem | Namespace: List",
        "Keywords: take length list theorem proposition | Name: List take_length | Kind: theorem | Namespace: List"
    ]
    embeddings = model.encode(sentences)
    
    similarities = model.similarity(embeddings, embeddings)
    print(similarities.shape)
    # [4, 4]
  • Notebooks
  • Google Colab
  • Kaggle
lean-RAG
2.29 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 6 commits
YuxuanGong's picture
YuxuanGong
Update README.md
32b60c1 verified 15 days ago
  • 1_Pooling
    Upload BGE-M3 Mathlib-RAG final model + model card 25 days ago
  • .gitattributes
    1.57 kB
    Upload BGE-M3 Mathlib-RAG final model + model card 25 days ago
  • README.md
    7.42 kB
    Update README.md 15 days ago
  • README_en.md
    11.5 kB
    Create README_en.md 15 days ago
  • config.json
    743 Bytes
    Upload BGE-M3 Mathlib-RAG final model + model card 25 days ago
  • config_sentence_transformers.json
    282 Bytes
    Upload BGE-M3 Mathlib-RAG final model + model card 25 days ago
  • model.safetensors
    2.27 GB
    xet
    Upload BGE-M3 Mathlib-RAG final model + model card 25 days ago
  • modules.json
    429 Bytes
    Upload BGE-M3 Mathlib-RAG final model + model card 25 days ago
  • sentence_bert_config.json
    241 Bytes
    Upload BGE-M3 Mathlib-RAG final model + model card 25 days ago
  • tokenizer.json
    17.1 MB
    xet
    Upload BGE-M3 Mathlib-RAG final model + model card 25 days ago
  • tokenizer_config.json
    378 Bytes
    Upload BGE-M3 Mathlib-RAG final model + model card 25 days ago