-
Notifications
You must be signed in to change notification settings - Fork 5
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
e674abc
commit 5a9e0bd
Showing
15 changed files
with
354 additions
and
81 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
name: "hf-docs-retrieval" | ||
path: "micpst/hf-docs-retrieval" | ||
split: "train" | ||
type: ragbits.evaluate.loaders.hf:HFDataLoader | ||
options: | ||
name: "hf-docs-retrieval" | ||
path: "micpst/hf-docs-retrieval" | ||
split: "train" |
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
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 |
---|---|---|
@@ -1,6 +1,4 @@ | ||
defaults: | ||
- data: corpus | ||
- embedder: litellm | ||
- providers: unstructured | ||
- vector_store: chroma | ||
- pipeline: document_ingestion | ||
- _self_ |
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
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
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,16 @@ | ||
import sys | ||
|
||
from omegaconf import DictConfig | ||
|
||
from ragbits.core.utils.config_handling import get_cls_from_config | ||
|
||
from .base import DataLoader | ||
|
||
__all__ = [DataLoader] | ||
|
||
module = sys.modules[__name__] | ||
|
||
|
||
def dataloader_factory(config: DictConfig) -> DataLoader: | ||
dataloader_class = get_cls_from_config(config.type, module) | ||
return dataloader_class(config.options) |
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,19 @@ | ||
import sys | ||
|
||
from omegaconf import DictConfig | ||
|
||
from ragbits.core.utils.config_handling import get_cls_from_config | ||
|
||
from .base import MetricSet | ||
|
||
__all__ = [MetricSet] | ||
|
||
module = sys.modules[__name__] | ||
|
||
|
||
def metric_set_factory(cfg: DictConfig) -> MetricSet: | ||
metrics = [] | ||
for metric_cfg in cfg: | ||
metric_module = get_cls_from_config(metric_cfg.type, module) | ||
metrics.append(metric_module(metric_cfg)) | ||
return MetricSet(*metrics) |
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
Oops, something went wrong.