flashrag-dev 0.1.4.dev20241210__tar.gz → 0.1.4.dev20241219__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.4.dev20241210/flashrag_dev.egg-info → flashrag-dev-0.1.4.dev20241219}/PKG-INFO +2 -1
- {flashrag-dev-0.1.4.dev20241210 → flashrag-dev-0.1.4.dev20241219}/README.md +1 -0
- {flashrag-dev-0.1.4.dev20241210 → flashrag-dev-0.1.4.dev20241219}/flashrag/pipeline/active_pipeline.py +1 -2
- {flashrag-dev-0.1.4.dev20241210 → flashrag-dev-0.1.4.dev20241219}/flashrag/prompt/base_prompt.py +1 -1
- {flashrag-dev-0.1.4.dev20241210 → flashrag-dev-0.1.4.dev20241219}/flashrag/retriever/retriever.py +1 -1
- flashrag-dev-0.1.4.dev20241219/flashrag/version.py +1 -0
- {flashrag-dev-0.1.4.dev20241210 → flashrag-dev-0.1.4.dev20241219/flashrag_dev.egg-info}/PKG-INFO +2 -1
- flashrag-dev-0.1.4.dev20241210/flashrag/version.py +0 -1
- {flashrag-dev-0.1.4.dev20241210 → flashrag-dev-0.1.4.dev20241219}/LICENSE +0 -0
- {flashrag-dev-0.1.4.dev20241210 → flashrag-dev-0.1.4.dev20241219}/flashrag/__init__.py +0 -0
- {flashrag-dev-0.1.4.dev20241210 → flashrag-dev-0.1.4.dev20241219}/flashrag/config/__init__.py +0 -0
- {flashrag-dev-0.1.4.dev20241210 → flashrag-dev-0.1.4.dev20241219}/flashrag/config/basic_config.yaml +0 -0
- {flashrag-dev-0.1.4.dev20241210 → flashrag-dev-0.1.4.dev20241219}/flashrag/config/config.py +0 -0
- {flashrag-dev-0.1.4.dev20241210 → flashrag-dev-0.1.4.dev20241219}/flashrag/dataset/__init__.py +0 -0
- {flashrag-dev-0.1.4.dev20241210 → flashrag-dev-0.1.4.dev20241219}/flashrag/dataset/dataset.py +0 -0
- {flashrag-dev-0.1.4.dev20241210 → flashrag-dev-0.1.4.dev20241219}/flashrag/dataset/utils.py +0 -0
- {flashrag-dev-0.1.4.dev20241210 → flashrag-dev-0.1.4.dev20241219}/flashrag/evaluator/__init__.py +0 -0
- {flashrag-dev-0.1.4.dev20241210 → flashrag-dev-0.1.4.dev20241219}/flashrag/evaluator/_bleu.py +0 -0
- {flashrag-dev-0.1.4.dev20241210 → flashrag-dev-0.1.4.dev20241219}/flashrag/evaluator/evaluator.py +0 -0
- {flashrag-dev-0.1.4.dev20241210 → flashrag-dev-0.1.4.dev20241219}/flashrag/evaluator/metrics.py +0 -0
- {flashrag-dev-0.1.4.dev20241210 → flashrag-dev-0.1.4.dev20241219}/flashrag/evaluator/utils.py +0 -0
- {flashrag-dev-0.1.4.dev20241210 → flashrag-dev-0.1.4.dev20241219}/flashrag/generator/__init__.py +0 -0
- {flashrag-dev-0.1.4.dev20241210 → flashrag-dev-0.1.4.dev20241219}/flashrag/generator/fid.py +0 -0
- {flashrag-dev-0.1.4.dev20241210 → flashrag-dev-0.1.4.dev20241219}/flashrag/generator/generator.py +0 -0
- {flashrag-dev-0.1.4.dev20241210 → flashrag-dev-0.1.4.dev20241219}/flashrag/generator/openai_generator.py +0 -0
- {flashrag-dev-0.1.4.dev20241210 → flashrag-dev-0.1.4.dev20241219}/flashrag/generator/stop_word_criteria.py +0 -0
- {flashrag-dev-0.1.4.dev20241210 → flashrag-dev-0.1.4.dev20241219}/flashrag/generator/utils.py +0 -0
- {flashrag-dev-0.1.4.dev20241210 → flashrag-dev-0.1.4.dev20241219}/flashrag/judger/__init__.py +0 -0
- {flashrag-dev-0.1.4.dev20241210 → flashrag-dev-0.1.4.dev20241219}/flashrag/judger/judger.py +0 -0
- {flashrag-dev-0.1.4.dev20241210 → flashrag-dev-0.1.4.dev20241219}/flashrag/pipeline/__init__.py +0 -0
- {flashrag-dev-0.1.4.dev20241210 → flashrag-dev-0.1.4.dev20241219}/flashrag/pipeline/branching_pipeline.py +0 -0
- {flashrag-dev-0.1.4.dev20241210 → flashrag-dev-0.1.4.dev20241219}/flashrag/pipeline/pipeline.py +0 -0
- {flashrag-dev-0.1.4.dev20241210 → flashrag-dev-0.1.4.dev20241219}/flashrag/pipeline/replug_utils.py +0 -0
- {flashrag-dev-0.1.4.dev20241210 → flashrag-dev-0.1.4.dev20241219}/flashrag/prompt/__init__.py +0 -0
- {flashrag-dev-0.1.4.dev20241210 → flashrag-dev-0.1.4.dev20241219}/flashrag/prompt/selfask_examplars.py +0 -0
- {flashrag-dev-0.1.4.dev20241210 → flashrag-dev-0.1.4.dev20241219}/flashrag/prompt/trace_examplars.py +0 -0
- {flashrag-dev-0.1.4.dev20241210 → flashrag-dev-0.1.4.dev20241219}/flashrag/refiner/__init__.py +0 -0
- {flashrag-dev-0.1.4.dev20241210 → flashrag-dev-0.1.4.dev20241219}/flashrag/refiner/kg_refiner.py +0 -0
- {flashrag-dev-0.1.4.dev20241210 → flashrag-dev-0.1.4.dev20241219}/flashrag/refiner/llmlingua_compressor.py +0 -0
- {flashrag-dev-0.1.4.dev20241210 → flashrag-dev-0.1.4.dev20241219}/flashrag/refiner/refiner.py +0 -0
- {flashrag-dev-0.1.4.dev20241210 → flashrag-dev-0.1.4.dev20241219}/flashrag/refiner/selective_context_compressor.py +0 -0
- {flashrag-dev-0.1.4.dev20241210 → flashrag-dev-0.1.4.dev20241219}/flashrag/retriever/__init__.py +0 -0
- {flashrag-dev-0.1.4.dev20241210 → flashrag-dev-0.1.4.dev20241219}/flashrag/retriever/__main__.py +0 -0
- {flashrag-dev-0.1.4.dev20241210 → flashrag-dev-0.1.4.dev20241219}/flashrag/retriever/encoder.py +0 -0
- {flashrag-dev-0.1.4.dev20241210 → flashrag-dev-0.1.4.dev20241219}/flashrag/retriever/index_builder.py +0 -0
- {flashrag-dev-0.1.4.dev20241210 → flashrag-dev-0.1.4.dev20241219}/flashrag/retriever/reranker.py +0 -0
- {flashrag-dev-0.1.4.dev20241210 → flashrag-dev-0.1.4.dev20241219}/flashrag/retriever/utils.py +0 -0
- {flashrag-dev-0.1.4.dev20241210 → flashrag-dev-0.1.4.dev20241219}/flashrag/utils/__init__.py +0 -0
- {flashrag-dev-0.1.4.dev20241210 → flashrag-dev-0.1.4.dev20241219}/flashrag/utils/constants.py +0 -0
- {flashrag-dev-0.1.4.dev20241210 → flashrag-dev-0.1.4.dev20241219}/flashrag/utils/pred_parse.py +0 -0
- {flashrag-dev-0.1.4.dev20241210 → flashrag-dev-0.1.4.dev20241219}/flashrag/utils/utils.py +0 -0
- {flashrag-dev-0.1.4.dev20241210 → flashrag-dev-0.1.4.dev20241219}/flashrag_dev.egg-info/SOURCES.txt +0 -0
- {flashrag-dev-0.1.4.dev20241210 → flashrag-dev-0.1.4.dev20241219}/flashrag_dev.egg-info/dependency_links.txt +0 -0
- {flashrag-dev-0.1.4.dev20241210 → flashrag-dev-0.1.4.dev20241219}/flashrag_dev.egg-info/requires.txt +0 -0
- {flashrag-dev-0.1.4.dev20241210 → flashrag-dev-0.1.4.dev20241219}/flashrag_dev.egg-info/top_level.txt +0 -0
- {flashrag-dev-0.1.4.dev20241210 → flashrag-dev-0.1.4.dev20241219}/pyproject.toml +0 -0
- {flashrag-dev-0.1.4.dev20241210 → flashrag-dev-0.1.4.dev20241219}/setup.cfg +0 -0
- {flashrag-dev-0.1.4.dev20241210 → flashrag-dev-0.1.4.dev20241219}/setup.py +0 -0
{flashrag-dev-0.1.4.dev20241210/flashrag_dev.egg-info → flashrag-dev-0.1.4.dev20241219}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: flashrag-dev
|
|
3
|
-
Version: 0.1.4.
|
|
3
|
+
Version: 0.1.4.dev20241219
|
|
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
|
|
@@ -553,6 +553,7 @@ The index was created using the e5-base-v2 retriever on our uploaded wiki18_100w
|
|
|
553
553
|
|
|
554
554
|
FlashRAG is licensed under the [<u>MIT License</u>](./LICENSE).
|
|
555
555
|
|
|
556
|
+
|
|
556
557
|
## :star2: Citation
|
|
557
558
|
Please kindly cite our paper if helps your research:
|
|
558
559
|
```BibTex
|
|
@@ -537,6 +537,7 @@ The index was created using the e5-base-v2 retriever on our uploaded wiki18_100w
|
|
|
537
537
|
|
|
538
538
|
FlashRAG is licensed under the [<u>MIT License</u>](./LICENSE).
|
|
539
539
|
|
|
540
|
+
|
|
540
541
|
## :star2: Citation
|
|
541
542
|
Please kindly cite our paper if helps your research:
|
|
542
543
|
```BibTex
|
|
@@ -1216,8 +1216,7 @@ class RQRAGPipeline(BasicPipeline):
|
|
|
1216
1216
|
preds = []
|
|
1217
1217
|
meta_results = []
|
|
1218
1218
|
|
|
1219
|
-
|
|
1220
|
-
for i in tqdm(range(0, len(dataset), self.batch_size)):
|
|
1219
|
+
for i in tqdm(range(0, len(dataset), self.batch_size), position=0, desc='RQRAG Process'):
|
|
1221
1220
|
batch_items = dataset[i : i + self.batch_size]
|
|
1222
1221
|
eval_datas = self.preprocess_eval_data(batch_items)
|
|
1223
1222
|
paths_batch = self.generate_tree_of_thoughts_batch(initial_prompts_batch = eval_datas)
|
{flashrag-dev-0.1.4.dev20241210 → flashrag-dev-0.1.4.dev20241219}/flashrag/prompt/base_prompt.py
RENAMED
|
@@ -23,7 +23,7 @@ class PromptTemplate:
|
|
|
23
23
|
self.is_chat = False
|
|
24
24
|
if "chat" in model_name or "instruct" in model_name:
|
|
25
25
|
self.is_chat = True
|
|
26
|
-
self.tokenizer =
|
|
26
|
+
self.tokenizer = AutoTokenizer.from_pretrained(self.generator_path, trust_remote_code=True)
|
|
27
27
|
else:
|
|
28
28
|
self.is_chat = True
|
|
29
29
|
self.enable_chat = True
|
{flashrag-dev-0.1.4.dev20241210 → flashrag-dev-0.1.4.dev20241219}/flashrag/retriever/retriever.py
RENAMED
|
@@ -339,7 +339,7 @@ class DenseRetriever(BaseRetriever):
|
|
|
339
339
|
results = []
|
|
340
340
|
scores = []
|
|
341
341
|
|
|
342
|
-
for start_idx in
|
|
342
|
+
for start_idx in range(0, len(query_list), batch_size):
|
|
343
343
|
query_batch = query_list[start_idx : start_idx + batch_size]
|
|
344
344
|
batch_emb = self.encoder.encode(query_batch)
|
|
345
345
|
batch_scores, batch_idxs = self.index.search(batch_emb, k=num)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.1.4dev20241219"
|
{flashrag-dev-0.1.4.dev20241210 → flashrag-dev-0.1.4.dev20241219/flashrag_dev.egg-info}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: flashrag-dev
|
|
3
|
-
Version: 0.1.4.
|
|
3
|
+
Version: 0.1.4.dev20241219
|
|
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
|
|
@@ -553,6 +553,7 @@ The index was created using the e5-base-v2 retriever on our uploaded wiki18_100w
|
|
|
553
553
|
|
|
554
554
|
FlashRAG is licensed under the [<u>MIT License</u>](./LICENSE).
|
|
555
555
|
|
|
556
|
+
|
|
556
557
|
## :star2: Citation
|
|
557
558
|
Please kindly cite our paper if helps your research:
|
|
558
559
|
```BibTex
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.1.4dev20241210"
|
|
File without changes
|
|
File without changes
|
{flashrag-dev-0.1.4.dev20241210 → flashrag-dev-0.1.4.dev20241219}/flashrag/config/__init__.py
RENAMED
|
File without changes
|
{flashrag-dev-0.1.4.dev20241210 → flashrag-dev-0.1.4.dev20241219}/flashrag/config/basic_config.yaml
RENAMED
|
File without changes
|
|
File without changes
|
{flashrag-dev-0.1.4.dev20241210 → flashrag-dev-0.1.4.dev20241219}/flashrag/dataset/__init__.py
RENAMED
|
File without changes
|
{flashrag-dev-0.1.4.dev20241210 → flashrag-dev-0.1.4.dev20241219}/flashrag/dataset/dataset.py
RENAMED
|
File without changes
|
|
File without changes
|
{flashrag-dev-0.1.4.dev20241210 → flashrag-dev-0.1.4.dev20241219}/flashrag/evaluator/__init__.py
RENAMED
|
File without changes
|
{flashrag-dev-0.1.4.dev20241210 → flashrag-dev-0.1.4.dev20241219}/flashrag/evaluator/_bleu.py
RENAMED
|
File without changes
|
{flashrag-dev-0.1.4.dev20241210 → flashrag-dev-0.1.4.dev20241219}/flashrag/evaluator/evaluator.py
RENAMED
|
File without changes
|
{flashrag-dev-0.1.4.dev20241210 → flashrag-dev-0.1.4.dev20241219}/flashrag/evaluator/metrics.py
RENAMED
|
File without changes
|
{flashrag-dev-0.1.4.dev20241210 → flashrag-dev-0.1.4.dev20241219}/flashrag/evaluator/utils.py
RENAMED
|
File without changes
|
{flashrag-dev-0.1.4.dev20241210 → flashrag-dev-0.1.4.dev20241219}/flashrag/generator/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{flashrag-dev-0.1.4.dev20241210 → flashrag-dev-0.1.4.dev20241219}/flashrag/generator/generator.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{flashrag-dev-0.1.4.dev20241210 → flashrag-dev-0.1.4.dev20241219}/flashrag/generator/utils.py
RENAMED
|
File without changes
|
{flashrag-dev-0.1.4.dev20241210 → flashrag-dev-0.1.4.dev20241219}/flashrag/judger/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{flashrag-dev-0.1.4.dev20241210 → flashrag-dev-0.1.4.dev20241219}/flashrag/pipeline/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{flashrag-dev-0.1.4.dev20241210 → flashrag-dev-0.1.4.dev20241219}/flashrag/pipeline/pipeline.py
RENAMED
|
File without changes
|
{flashrag-dev-0.1.4.dev20241210 → flashrag-dev-0.1.4.dev20241219}/flashrag/pipeline/replug_utils.py
RENAMED
|
File without changes
|
{flashrag-dev-0.1.4.dev20241210 → flashrag-dev-0.1.4.dev20241219}/flashrag/prompt/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{flashrag-dev-0.1.4.dev20241210 → flashrag-dev-0.1.4.dev20241219}/flashrag/prompt/trace_examplars.py
RENAMED
|
File without changes
|
{flashrag-dev-0.1.4.dev20241210 → flashrag-dev-0.1.4.dev20241219}/flashrag/refiner/__init__.py
RENAMED
|
File without changes
|
{flashrag-dev-0.1.4.dev20241210 → flashrag-dev-0.1.4.dev20241219}/flashrag/refiner/kg_refiner.py
RENAMED
|
File without changes
|
|
File without changes
|
{flashrag-dev-0.1.4.dev20241210 → flashrag-dev-0.1.4.dev20241219}/flashrag/refiner/refiner.py
RENAMED
|
File without changes
|
|
File without changes
|
{flashrag-dev-0.1.4.dev20241210 → flashrag-dev-0.1.4.dev20241219}/flashrag/retriever/__init__.py
RENAMED
|
File without changes
|
{flashrag-dev-0.1.4.dev20241210 → flashrag-dev-0.1.4.dev20241219}/flashrag/retriever/__main__.py
RENAMED
|
File without changes
|
{flashrag-dev-0.1.4.dev20241210 → flashrag-dev-0.1.4.dev20241219}/flashrag/retriever/encoder.py
RENAMED
|
File without changes
|
|
File without changes
|
{flashrag-dev-0.1.4.dev20241210 → flashrag-dev-0.1.4.dev20241219}/flashrag/retriever/reranker.py
RENAMED
|
File without changes
|
{flashrag-dev-0.1.4.dev20241210 → flashrag-dev-0.1.4.dev20241219}/flashrag/retriever/utils.py
RENAMED
|
File without changes
|
{flashrag-dev-0.1.4.dev20241210 → flashrag-dev-0.1.4.dev20241219}/flashrag/utils/__init__.py
RENAMED
|
File without changes
|
{flashrag-dev-0.1.4.dev20241210 → flashrag-dev-0.1.4.dev20241219}/flashrag/utils/constants.py
RENAMED
|
File without changes
|
{flashrag-dev-0.1.4.dev20241210 → flashrag-dev-0.1.4.dev20241219}/flashrag/utils/pred_parse.py
RENAMED
|
File without changes
|
|
File without changes
|
{flashrag-dev-0.1.4.dev20241210 → flashrag-dev-0.1.4.dev20241219}/flashrag_dev.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{flashrag-dev-0.1.4.dev20241210 → flashrag-dev-0.1.4.dev20241219}/flashrag_dev.egg-info/requires.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|