Unified Hyperbolic Spectral Retrieval (UHSR) - a novel text retrieval algorithm combining lexical and semantic search.
Project description
Unified Hyperbolic Spectral Retrieval (UHSR)
Unified Hyperbolic Spectral Retrieval (UHSR) is a novel text retrieval algorithm that fuses lexical search (using BM25) with semantic search (using dense embeddings) into a unified, robust, and scalable system. It leverages advanced techniques such as logistic normalization, harmonic fusion, and spectral re-ranking based on graph Laplacian analysis to produce interpretable relevance scores within the [0,1] range.
Key Features
- Hybrid Retrieval: Combines BM25 for lexical scoring and dense vector semantic similarity for contextual understanding.
- Advanced Fusion: Uses logistic normalization and harmonic fusion to integrate multiple scoring signals.
- Spectral Re-Ranking: Employs spectral analysis (using the graph Laplacian and Fiedler vector) to boost central, highly relevant candidates.
- Metric Flexibility: Supports multiple semantic similarity metrics (cosine, euclidean, Mahalanobis) to suit various datasets.
- Interpretable Scores: Final relevance scores are normalized to the [0,1] range.
- Scalable: Designed to work with both small and large datasets using FAISS for fast approximate nearest neighbor search.
Overview
UHSR provides an end-to-end text retrieval pipeline that starts with raw documents and ends with a ranked list of documents. It first applies BM25 to perform fast lexical filtering, then computes semantic similarity using dense embeddings. The two scoring components are fused via a harmonic mean after logistic normalization, ensuring that both lexical and semantic aspects contribute effectively. Finally, a spectral re-ranking step based on graph Laplacian analysis refines the ranking by boosting documents that are centrally located among the top candidates.
Intended Use
UHSR is intended for research and educational purposes and can serve as a strong foundation for further development in text retrieval and natural language processing applications.
For more details, visit the GitHub repository.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file uhsr-0.2.4.tar.gz.
File metadata
- Download URL: uhsr-0.2.4.tar.gz
- Upload date:
- Size: 12.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8f5aa4d6f1db34a2dbd058ac0b2a63028e98ddaecccc2d550c5cf49ddf65d19a
|
|
| MD5 |
7a272bb251666f457a3b0d9495225061
|
|
| BLAKE2b-256 |
a07385ad086d23aaaa70692558f01fb24f583b02f571cf0d8d5266e953c4f300
|
File details
Details for the file uhsr-0.2.4-py3-none-any.whl.
File metadata
- Download URL: uhsr-0.2.4-py3-none-any.whl
- Upload date:
- Size: 11.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a6efb341f7f4f14a430faa760474a97e495d17af7cf0f212af8a8e24f05cd243
|
|
| MD5 |
faa4010d4ceb167b37dff231b9be7d9c
|
|
| BLAKE2b-256 |
f31349355fc57003fa6e67f4431ca21d447589e724a056fd8d404ec5db28315f
|