-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5803b56
commit f23e98f
Showing
2 changed files
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
## This is a tutorial on disabling the reranker and only use embedding model for retrieval. | ||
|
||
The reranker is an optional sub-module that can be used within the retriever module to rerank the retrieved text from the Vector DB. | ||
There are two ways to configure the reranker. | ||
|
||
One way is through the config file: | ||
```python | ||
retriever: | ||
use_reranker: true | ||
reranker_model_name: BAAI/bge-large-en | ||
reranker_model_platform: huggingface | ||
reranker_model_platform_args: null | ||
``` | ||
|
||
The alternate way is through code: | ||
Refer to [this](https://github.com/autogluon/autogluon-rag/tree/main/documentation/tutorials/general/setting_parameters.md) tutorial on how to modify arguments through code after instantiating an `AutoGluonRAG` object. | ||
```python | ||
agrag.use_reranker = False | ||
agrag.initialize_retriever_module() | ||
``` |