Class Introduction
Enumeration class of retrieval modes.
Currently, three retrieval modes are supported: DENSE for dense retrieval, SPARSE for sparse retrieval, and HYBRID for hybrid retrieval.
- Dense retrieval: Vector fields in a database contains only dense types.
- Sparse retrieval: Vector fields in a database contains only sparse types.
- Hybrid retrieval: Fields stored in a database contain both dense and sparse types.
Prototype
from mx_rag.storage.vectorstore import SearchMode
class SearchMode(Enum):
DENSE = 0
SPARSE = 1
HYBRID = 2
Parent topic: SearchMode