flashrag-dev 0.1.3.dev20241111__tar.gz → 0.1.3.dev20241115__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {flashrag-dev-0.1.3.dev20241111 → flashrag-dev-0.1.3.dev20241115}/PKG-INFO +6 -1
- flashrag-dev-0.1.3.dev20241111/flashrag_dev.egg-info/PKG-INFO → flashrag-dev-0.1.3.dev20241115/README.md +5 -16
- {flashrag-dev-0.1.3.dev20241111 → flashrag-dev-0.1.3.dev20241115}/flashrag/config/basic_config.yaml +1 -1
- {flashrag-dev-0.1.3.dev20241111 → flashrag-dev-0.1.3.dev20241115}/flashrag/config/config.py +2 -1
- {flashrag-dev-0.1.3.dev20241111 → flashrag-dev-0.1.3.dev20241115}/flashrag/dataset/dataset.py +5 -2
- flashrag-dev-0.1.3.dev20241115/flashrag/version.py +1 -0
- flashrag-dev-0.1.3.dev20241111/README.md → flashrag-dev-0.1.3.dev20241115/flashrag_dev.egg-info/PKG-INFO +21 -0
- flashrag-dev-0.1.3.dev20241111/flashrag/version.py +0 -1
- {flashrag-dev-0.1.3.dev20241111 → flashrag-dev-0.1.3.dev20241115}/LICENSE +0 -0
- {flashrag-dev-0.1.3.dev20241111 → flashrag-dev-0.1.3.dev20241115}/flashrag/__init__.py +0 -0
- {flashrag-dev-0.1.3.dev20241111 → flashrag-dev-0.1.3.dev20241115}/flashrag/config/__init__.py +0 -0
- {flashrag-dev-0.1.3.dev20241111 → flashrag-dev-0.1.3.dev20241115}/flashrag/dataset/__init__.py +0 -0
- {flashrag-dev-0.1.3.dev20241111 → flashrag-dev-0.1.3.dev20241115}/flashrag/dataset/utils.py +0 -0
- {flashrag-dev-0.1.3.dev20241111 → flashrag-dev-0.1.3.dev20241115}/flashrag/evaluator/__init__.py +0 -0
- {flashrag-dev-0.1.3.dev20241111 → flashrag-dev-0.1.3.dev20241115}/flashrag/evaluator/_bleu.py +0 -0
- {flashrag-dev-0.1.3.dev20241111 → flashrag-dev-0.1.3.dev20241115}/flashrag/evaluator/evaluator.py +0 -0
- {flashrag-dev-0.1.3.dev20241111 → flashrag-dev-0.1.3.dev20241115}/flashrag/evaluator/metrics.py +0 -0
- {flashrag-dev-0.1.3.dev20241111 → flashrag-dev-0.1.3.dev20241115}/flashrag/evaluator/utils.py +0 -0
- {flashrag-dev-0.1.3.dev20241111 → flashrag-dev-0.1.3.dev20241115}/flashrag/generator/__init__.py +0 -0
- {flashrag-dev-0.1.3.dev20241111 → flashrag-dev-0.1.3.dev20241115}/flashrag/generator/fid.py +0 -0
- {flashrag-dev-0.1.3.dev20241111 → flashrag-dev-0.1.3.dev20241115}/flashrag/generator/generator.py +0 -0
- {flashrag-dev-0.1.3.dev20241111 → flashrag-dev-0.1.3.dev20241115}/flashrag/generator/openai_generator.py +0 -0
- {flashrag-dev-0.1.3.dev20241111 → flashrag-dev-0.1.3.dev20241115}/flashrag/generator/stop_word_criteria.py +0 -0
- {flashrag-dev-0.1.3.dev20241111 → flashrag-dev-0.1.3.dev20241115}/flashrag/generator/utils.py +0 -0
- {flashrag-dev-0.1.3.dev20241111 → flashrag-dev-0.1.3.dev20241115}/flashrag/judger/__init__.py +0 -0
- {flashrag-dev-0.1.3.dev20241111 → flashrag-dev-0.1.3.dev20241115}/flashrag/judger/judger.py +0 -0
- {flashrag-dev-0.1.3.dev20241111 → flashrag-dev-0.1.3.dev20241115}/flashrag/pipeline/__init__.py +0 -0
- {flashrag-dev-0.1.3.dev20241111 → flashrag-dev-0.1.3.dev20241115}/flashrag/pipeline/active_pipeline.py +0 -0
- {flashrag-dev-0.1.3.dev20241111 → flashrag-dev-0.1.3.dev20241115}/flashrag/pipeline/branching_pipeline.py +0 -0
- {flashrag-dev-0.1.3.dev20241111 → flashrag-dev-0.1.3.dev20241115}/flashrag/pipeline/pipeline.py +0 -0
- {flashrag-dev-0.1.3.dev20241111 → flashrag-dev-0.1.3.dev20241115}/flashrag/pipeline/replug_utils.py +0 -0
- {flashrag-dev-0.1.3.dev20241111 → flashrag-dev-0.1.3.dev20241115}/flashrag/prompt/__init__.py +0 -0
- {flashrag-dev-0.1.3.dev20241111 → flashrag-dev-0.1.3.dev20241115}/flashrag/prompt/base_prompt.py +0 -0
- {flashrag-dev-0.1.3.dev20241111 → flashrag-dev-0.1.3.dev20241115}/flashrag/prompt/selfask_examplars.py +0 -0
- {flashrag-dev-0.1.3.dev20241111 → flashrag-dev-0.1.3.dev20241115}/flashrag/prompt/trace_examplars.py +0 -0
- {flashrag-dev-0.1.3.dev20241111 → flashrag-dev-0.1.3.dev20241115}/flashrag/refiner/__init__.py +0 -0
- {flashrag-dev-0.1.3.dev20241111 → flashrag-dev-0.1.3.dev20241115}/flashrag/refiner/kg_refiner.py +0 -0
- {flashrag-dev-0.1.3.dev20241111 → flashrag-dev-0.1.3.dev20241115}/flashrag/refiner/llmlingua_compressor.py +0 -0
- {flashrag-dev-0.1.3.dev20241111 → flashrag-dev-0.1.3.dev20241115}/flashrag/refiner/refiner.py +0 -0
- {flashrag-dev-0.1.3.dev20241111 → flashrag-dev-0.1.3.dev20241115}/flashrag/refiner/selective_context_compressor.py +0 -0
- {flashrag-dev-0.1.3.dev20241111 → flashrag-dev-0.1.3.dev20241115}/flashrag/retriever/__init__.py +0 -0
- {flashrag-dev-0.1.3.dev20241111 → flashrag-dev-0.1.3.dev20241115}/flashrag/retriever/__main__.py +0 -0
- {flashrag-dev-0.1.3.dev20241111 → flashrag-dev-0.1.3.dev20241115}/flashrag/retriever/encoder.py +0 -0
- {flashrag-dev-0.1.3.dev20241111 → flashrag-dev-0.1.3.dev20241115}/flashrag/retriever/index_builder.py +0 -0
- {flashrag-dev-0.1.3.dev20241111 → flashrag-dev-0.1.3.dev20241115}/flashrag/retriever/reranker.py +0 -0
- {flashrag-dev-0.1.3.dev20241111 → flashrag-dev-0.1.3.dev20241115}/flashrag/retriever/retriever.py +0 -0
- {flashrag-dev-0.1.3.dev20241111 → flashrag-dev-0.1.3.dev20241115}/flashrag/retriever/utils.py +0 -0
- {flashrag-dev-0.1.3.dev20241111 → flashrag-dev-0.1.3.dev20241115}/flashrag/utils/__init__.py +0 -0
- {flashrag-dev-0.1.3.dev20241111 → flashrag-dev-0.1.3.dev20241115}/flashrag/utils/constants.py +0 -0
- {flashrag-dev-0.1.3.dev20241111 → flashrag-dev-0.1.3.dev20241115}/flashrag/utils/pred_parse.py +0 -0
- {flashrag-dev-0.1.3.dev20241111 → flashrag-dev-0.1.3.dev20241115}/flashrag/utils/utils.py +0 -0
- {flashrag-dev-0.1.3.dev20241111 → flashrag-dev-0.1.3.dev20241115}/flashrag_dev.egg-info/SOURCES.txt +0 -0
- {flashrag-dev-0.1.3.dev20241111 → flashrag-dev-0.1.3.dev20241115}/flashrag_dev.egg-info/dependency_links.txt +0 -0
- {flashrag-dev-0.1.3.dev20241111 → flashrag-dev-0.1.3.dev20241115}/flashrag_dev.egg-info/requires.txt +0 -0
- {flashrag-dev-0.1.3.dev20241111 → flashrag-dev-0.1.3.dev20241115}/flashrag_dev.egg-info/top_level.txt +0 -0
- {flashrag-dev-0.1.3.dev20241111 → flashrag-dev-0.1.3.dev20241115}/pyproject.toml +0 -0
- {flashrag-dev-0.1.3.dev20241111 → flashrag-dev-0.1.3.dev20241115}/setup.cfg +0 -0
- {flashrag-dev-0.1.3.dev20241111 → flashrag-dev-0.1.3.dev20241115}/setup.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: flashrag-dev
|
|
3
|
-
Version: 0.1.3.
|
|
3
|
+
Version: 0.1.3.dev20241115
|
|
4
4
|
Summary: A library for efficient Retrieval-Augmented Generation research
|
|
5
5
|
Home-page: https://github.com/RUC-NLPIR/FlashRAG
|
|
6
6
|
Author: Jiajie Jin, Yutao Zhu, Chenghao Zhang, Xinyu Yang, Zhicheng Dou
|
|
@@ -536,6 +536,11 @@ In the academic research, Wikipedia and MS MARCO are the most commonly used retr
|
|
|
536
536
|
|
|
537
537
|
For MS MARCO, it is already processed upon release and can be directly downloaded from its [<u>hosting link</u>](https://huggingface.co/datasets/Tevatron/msmarco-passage-corpus) on Hugging Face.
|
|
538
538
|
|
|
539
|
+
### Index
|
|
540
|
+
|
|
541
|
+
To facilitate easier replication of the experiments, we now provide a preprocessed index available in the ModelScope dataset page: [FlashRAG_Dataset/retrieval_corpus/wiki18_100w_e5_index.zip](https://www.modelscope.cn/datasets/hhjinjiajie/FlashRAG_Dataset/file/view/master?id=47985&status=2&fileName=retrieval_corpus%252Fwiki18_100w_e5_index.zip).
|
|
542
|
+
|
|
543
|
+
The index was created using the e5-base-v2 retriever on our uploaded wiki18_100w dataset, which is consistent with the index used in our experiments.
|
|
539
544
|
|
|
540
545
|
## :raised_hands: Additional FAQs
|
|
541
546
|
|
|
@@ -1,19 +1,3 @@
|
|
|
1
|
-
Metadata-Version: 2.1
|
|
2
|
-
Name: flashrag-dev
|
|
3
|
-
Version: 0.1.3.dev20241111
|
|
4
|
-
Summary: A library for efficient Retrieval-Augmented Generation research
|
|
5
|
-
Home-page: https://github.com/RUC-NLPIR/FlashRAG
|
|
6
|
-
Author: Jiajie Jin, Yutao Zhu, Chenghao Zhang, Xinyu Yang, Zhicheng Dou
|
|
7
|
-
Author-email: jinjiajie@ruc.edu.cn
|
|
8
|
-
License: MIT License
|
|
9
|
-
Requires-Python: >=3.9
|
|
10
|
-
Description-Content-Type: text/markdown
|
|
11
|
-
Provides-Extra: core
|
|
12
|
-
Provides-Extra: retriever
|
|
13
|
-
Provides-Extra: generator
|
|
14
|
-
Provides-Extra: full
|
|
15
|
-
License-File: LICENSE
|
|
16
|
-
|
|
17
1
|
# <div align="center">⚡FlashRAG: A Python Toolkit for Efficient RAG Research<div>
|
|
18
2
|
|
|
19
3
|
|
|
@@ -536,6 +520,11 @@ In the academic research, Wikipedia and MS MARCO are the most commonly used retr
|
|
|
536
520
|
|
|
537
521
|
For MS MARCO, it is already processed upon release and can be directly downloaded from its [<u>hosting link</u>](https://huggingface.co/datasets/Tevatron/msmarco-passage-corpus) on Hugging Face.
|
|
538
522
|
|
|
523
|
+
### Index
|
|
524
|
+
|
|
525
|
+
To facilitate easier replication of the experiments, we now provide a preprocessed index available in the ModelScope dataset page: [FlashRAG_Dataset/retrieval_corpus/wiki18_100w_e5_index.zip](https://www.modelscope.cn/datasets/hhjinjiajie/FlashRAG_Dataset/file/view/master?id=47985&status=2&fileName=retrieval_corpus%252Fwiki18_100w_e5_index.zip).
|
|
526
|
+
|
|
527
|
+
The index was created using the e5-base-v2 retriever on our uploaded wiki18_100w dataset, which is consistent with the index used in our experiments.
|
|
539
528
|
|
|
540
529
|
## :raised_hands: Additional FAQs
|
|
541
530
|
|
|
@@ -131,7 +131,8 @@ class Config:
|
|
|
131
131
|
print("Index is empty!!")
|
|
132
132
|
assert False
|
|
133
133
|
|
|
134
|
-
self.final_config
|
|
134
|
+
if self.final_config.get("retrieval_model_path") is None:
|
|
135
|
+
self.final_config["retrieval_model_path"] = model2path.get(retrieval_method, retrieval_method)
|
|
135
136
|
# TODO: not support when `retrieval_model` is path
|
|
136
137
|
|
|
137
138
|
def set_pooling_method(method, model2pooling):
|
{flashrag-dev-0.1.3.dev20241111 → flashrag-dev-0.1.3.dev20241115}/flashrag/dataset/dataset.py
RENAMED
|
@@ -100,8 +100,11 @@ class Dataset:
|
|
|
100
100
|
self.data = self._load_data(self.dataset_name, self.dataset_path)
|
|
101
101
|
else:
|
|
102
102
|
print("Load data from provided data")
|
|
103
|
-
|
|
104
|
-
|
|
103
|
+
if isinstance(data[0], dict):
|
|
104
|
+
self.data = [Item(item_dict) for item_dict in data]
|
|
105
|
+
else:
|
|
106
|
+
assert isinstance(data[0], Item)
|
|
107
|
+
self.data = data
|
|
105
108
|
|
|
106
109
|
def _load_data(self, dataset_name: str, dataset_path: str) -> List[Item]:
|
|
107
110
|
"""Load data from the provided dataset_path or directly download the file(TODO)."""
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.1.3dev20241115"
|
|
@@ -1,3 +1,19 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: flashrag-dev
|
|
3
|
+
Version: 0.1.3.dev20241115
|
|
4
|
+
Summary: A library for efficient Retrieval-Augmented Generation research
|
|
5
|
+
Home-page: https://github.com/RUC-NLPIR/FlashRAG
|
|
6
|
+
Author: Jiajie Jin, Yutao Zhu, Chenghao Zhang, Xinyu Yang, Zhicheng Dou
|
|
7
|
+
Author-email: jinjiajie@ruc.edu.cn
|
|
8
|
+
License: MIT License
|
|
9
|
+
Requires-Python: >=3.9
|
|
10
|
+
Description-Content-Type: text/markdown
|
|
11
|
+
Provides-Extra: core
|
|
12
|
+
Provides-Extra: retriever
|
|
13
|
+
Provides-Extra: generator
|
|
14
|
+
Provides-Extra: full
|
|
15
|
+
License-File: LICENSE
|
|
16
|
+
|
|
1
17
|
# <div align="center">⚡FlashRAG: A Python Toolkit for Efficient RAG Research<div>
|
|
2
18
|
|
|
3
19
|
|
|
@@ -520,6 +536,11 @@ In the academic research, Wikipedia and MS MARCO are the most commonly used retr
|
|
|
520
536
|
|
|
521
537
|
For MS MARCO, it is already processed upon release and can be directly downloaded from its [<u>hosting link</u>](https://huggingface.co/datasets/Tevatron/msmarco-passage-corpus) on Hugging Face.
|
|
522
538
|
|
|
539
|
+
### Index
|
|
540
|
+
|
|
541
|
+
To facilitate easier replication of the experiments, we now provide a preprocessed index available in the ModelScope dataset page: [FlashRAG_Dataset/retrieval_corpus/wiki18_100w_e5_index.zip](https://www.modelscope.cn/datasets/hhjinjiajie/FlashRAG_Dataset/file/view/master?id=47985&status=2&fileName=retrieval_corpus%252Fwiki18_100w_e5_index.zip).
|
|
542
|
+
|
|
543
|
+
The index was created using the e5-base-v2 retriever on our uploaded wiki18_100w dataset, which is consistent with the index used in our experiments.
|
|
523
544
|
|
|
524
545
|
## :raised_hands: Additional FAQs
|
|
525
546
|
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.1.3dev20241111"
|
|
File without changes
|
|
File without changes
|
{flashrag-dev-0.1.3.dev20241111 → flashrag-dev-0.1.3.dev20241115}/flashrag/config/__init__.py
RENAMED
|
File without changes
|
{flashrag-dev-0.1.3.dev20241111 → flashrag-dev-0.1.3.dev20241115}/flashrag/dataset/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{flashrag-dev-0.1.3.dev20241111 → flashrag-dev-0.1.3.dev20241115}/flashrag/evaluator/__init__.py
RENAMED
|
File without changes
|
{flashrag-dev-0.1.3.dev20241111 → flashrag-dev-0.1.3.dev20241115}/flashrag/evaluator/_bleu.py
RENAMED
|
File without changes
|
{flashrag-dev-0.1.3.dev20241111 → flashrag-dev-0.1.3.dev20241115}/flashrag/evaluator/evaluator.py
RENAMED
|
File without changes
|
{flashrag-dev-0.1.3.dev20241111 → flashrag-dev-0.1.3.dev20241115}/flashrag/evaluator/metrics.py
RENAMED
|
File without changes
|
{flashrag-dev-0.1.3.dev20241111 → flashrag-dev-0.1.3.dev20241115}/flashrag/evaluator/utils.py
RENAMED
|
File without changes
|
{flashrag-dev-0.1.3.dev20241111 → flashrag-dev-0.1.3.dev20241115}/flashrag/generator/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{flashrag-dev-0.1.3.dev20241111 → flashrag-dev-0.1.3.dev20241115}/flashrag/generator/generator.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{flashrag-dev-0.1.3.dev20241111 → flashrag-dev-0.1.3.dev20241115}/flashrag/generator/utils.py
RENAMED
|
File without changes
|
{flashrag-dev-0.1.3.dev20241111 → flashrag-dev-0.1.3.dev20241115}/flashrag/judger/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{flashrag-dev-0.1.3.dev20241111 → flashrag-dev-0.1.3.dev20241115}/flashrag/pipeline/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{flashrag-dev-0.1.3.dev20241111 → flashrag-dev-0.1.3.dev20241115}/flashrag/pipeline/pipeline.py
RENAMED
|
File without changes
|
{flashrag-dev-0.1.3.dev20241111 → flashrag-dev-0.1.3.dev20241115}/flashrag/pipeline/replug_utils.py
RENAMED
|
File without changes
|
{flashrag-dev-0.1.3.dev20241111 → flashrag-dev-0.1.3.dev20241115}/flashrag/prompt/__init__.py
RENAMED
|
File without changes
|
{flashrag-dev-0.1.3.dev20241111 → flashrag-dev-0.1.3.dev20241115}/flashrag/prompt/base_prompt.py
RENAMED
|
File without changes
|
|
File without changes
|
{flashrag-dev-0.1.3.dev20241111 → flashrag-dev-0.1.3.dev20241115}/flashrag/prompt/trace_examplars.py
RENAMED
|
File without changes
|
{flashrag-dev-0.1.3.dev20241111 → flashrag-dev-0.1.3.dev20241115}/flashrag/refiner/__init__.py
RENAMED
|
File without changes
|
{flashrag-dev-0.1.3.dev20241111 → flashrag-dev-0.1.3.dev20241115}/flashrag/refiner/kg_refiner.py
RENAMED
|
File without changes
|
|
File without changes
|
{flashrag-dev-0.1.3.dev20241111 → flashrag-dev-0.1.3.dev20241115}/flashrag/refiner/refiner.py
RENAMED
|
File without changes
|
|
File without changes
|
{flashrag-dev-0.1.3.dev20241111 → flashrag-dev-0.1.3.dev20241115}/flashrag/retriever/__init__.py
RENAMED
|
File without changes
|
{flashrag-dev-0.1.3.dev20241111 → flashrag-dev-0.1.3.dev20241115}/flashrag/retriever/__main__.py
RENAMED
|
File without changes
|
{flashrag-dev-0.1.3.dev20241111 → flashrag-dev-0.1.3.dev20241115}/flashrag/retriever/encoder.py
RENAMED
|
File without changes
|
|
File without changes
|
{flashrag-dev-0.1.3.dev20241111 → flashrag-dev-0.1.3.dev20241115}/flashrag/retriever/reranker.py
RENAMED
|
File without changes
|
{flashrag-dev-0.1.3.dev20241111 → flashrag-dev-0.1.3.dev20241115}/flashrag/retriever/retriever.py
RENAMED
|
File without changes
|
{flashrag-dev-0.1.3.dev20241111 → flashrag-dev-0.1.3.dev20241115}/flashrag/retriever/utils.py
RENAMED
|
File without changes
|
{flashrag-dev-0.1.3.dev20241111 → flashrag-dev-0.1.3.dev20241115}/flashrag/utils/__init__.py
RENAMED
|
File without changes
|
{flashrag-dev-0.1.3.dev20241111 → flashrag-dev-0.1.3.dev20241115}/flashrag/utils/constants.py
RENAMED
|
File without changes
|
{flashrag-dev-0.1.3.dev20241111 → flashrag-dev-0.1.3.dev20241115}/flashrag/utils/pred_parse.py
RENAMED
|
File without changes
|
|
File without changes
|
{flashrag-dev-0.1.3.dev20241111 → flashrag-dev-0.1.3.dev20241115}/flashrag_dev.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{flashrag-dev-0.1.3.dev20241111 → flashrag-dev-0.1.3.dev20241115}/flashrag_dev.egg-info/requires.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|