zhuocheng's picture
Update FlexRAG retriever
e43ed2d verified
metadata
language: en
library_name: FlexRAG
tags:
  - FlexRAG
  - retrieval
  - search
  - lexical
  - RAG

FlexRAG Retriever

This is a DenseRetriever created with the FlexRAG library (version 0.1.8).

FlexRAG Related Links:

Installation

You can install the FlexRAG library with pip:

pip install flexrag

Loading a FlexRAG retriever

You can use this retriever for information retrieval tasks. Here is an example:

from flexrag.retriever import LocalRetriever

# Load the retriever from the HuggingFace Hub
retriever = LocalRetriever.load_from_hub("zhuocheng/toycorp-all-MiniLM-L6-v2")

# You can retrieve now
results = retriever.search("Who is Bruce Wayne?")