Feature Extraction
sentence-transformers
Safetensors
Transformers
qwen3
sentence-similarity
text-embeddings-inference
lore
logic-oriented-retrieval
Instructions to use XiaSheng/Lore-Qwen3-embedding-0.6B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use XiaSheng/Lore-Qwen3-embedding-0.6B with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("XiaSheng/Lore-Qwen3-embedding-0.6B") sentences = [ "The weather is lovely today.", "It's so sunny outside!", "He drove to the stadium." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [3, 3] - Transformers
How to use XiaSheng/Lore-Qwen3-embedding-0.6B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="XiaSheng/Lore-Qwen3-embedding-0.6B")# Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("XiaSheng/Lore-Qwen3-embedding-0.6B") model = AutoModel.from_pretrained("XiaSheng/Lore-Qwen3-embedding-0.6B") - Notebooks
- Google Colab
- Kaggle
Lore-Qwen3-embedding-0.6B: Logic-ORiented Retriever Enhancement
This model is a fine-tuned version of Qwen/Qwen3-Embedding-0.6B using the LORE (Logic-ORiented Retriever Enhancement) method. It significantly improves retrieval performance for complex logical expressions and queries.
LORE Method Overview
LORE is a novel embedding enhancement method that improves retrieval performance through fine-grained contrastive learning:
- Three-tier Contrastive Learning: Fine-grained sample classification with P (Positive), N1 (Distractor), and N2 (Negative) samples
- Dual Encoder Architecture: Frozen document encoder M_d and trainable query encoder M_q
- InfoNCE-based Loss: Differentiated weights for hierarchical separation P ≻ N1 ≻ N2
- Query Rewriting: LLM-assisted dataset construction with discourse relations from Rhetorical Structure Theory (RST)
- No External Dependencies: Requires no external supervision, resources, or pre-retrieval analysis
Key Improvements
- Enhanced Logical Reasoning: Improved ability to handle complex logical expressions in queries
- Fine-grained Discrimination: Better distinction between relevant content and distractors
- Maintained Efficiency: Preserves the computational efficiency of the original model
- Downloads last month
- 3
from sentence_transformers import SentenceTransformer model = SentenceTransformer("XiaSheng/Lore-Qwen3-embedding-0.6B") sentences = [ "The weather is lovely today.", "It's so sunny outside!", "He drove to the stadium." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [3, 3]