flashrag-dev 0.1.3.dev20241107__tar.gz → 0.1.3.dev20241108__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.dev20241107/flashrag_dev.egg-info → flashrag-dev-0.1.3.dev20241108}/PKG-INFO +1 -1
- {flashrag-dev-0.1.3.dev20241107 → flashrag-dev-0.1.3.dev20241108}/flashrag/config/config.py +2 -2
- {flashrag-dev-0.1.3.dev20241107 → flashrag-dev-0.1.3.dev20241108}/flashrag/retriever/utils.py +2 -0
- flashrag-dev-0.1.3.dev20241108/flashrag/version.py +1 -0
- {flashrag-dev-0.1.3.dev20241107 → flashrag-dev-0.1.3.dev20241108/flashrag_dev.egg-info}/PKG-INFO +1 -1
- flashrag-dev-0.1.3.dev20241107/flashrag/version.py +0 -1
- {flashrag-dev-0.1.3.dev20241107 → flashrag-dev-0.1.3.dev20241108}/LICENSE +0 -0
- {flashrag-dev-0.1.3.dev20241107 → flashrag-dev-0.1.3.dev20241108}/README.md +0 -0
- {flashrag-dev-0.1.3.dev20241107 → flashrag-dev-0.1.3.dev20241108}/flashrag/__init__.py +0 -0
- {flashrag-dev-0.1.3.dev20241107 → flashrag-dev-0.1.3.dev20241108}/flashrag/config/__init__.py +0 -0
- {flashrag-dev-0.1.3.dev20241107 → flashrag-dev-0.1.3.dev20241108}/flashrag/config/basic_config.yaml +0 -0
- {flashrag-dev-0.1.3.dev20241107 → flashrag-dev-0.1.3.dev20241108}/flashrag/dataset/__init__.py +0 -0
- {flashrag-dev-0.1.3.dev20241107 → flashrag-dev-0.1.3.dev20241108}/flashrag/dataset/dataset.py +0 -0
- {flashrag-dev-0.1.3.dev20241107 → flashrag-dev-0.1.3.dev20241108}/flashrag/dataset/utils.py +0 -0
- {flashrag-dev-0.1.3.dev20241107 → flashrag-dev-0.1.3.dev20241108}/flashrag/evaluator/__init__.py +0 -0
- {flashrag-dev-0.1.3.dev20241107 → flashrag-dev-0.1.3.dev20241108}/flashrag/evaluator/_bleu.py +0 -0
- {flashrag-dev-0.1.3.dev20241107 → flashrag-dev-0.1.3.dev20241108}/flashrag/evaluator/evaluator.py +0 -0
- {flashrag-dev-0.1.3.dev20241107 → flashrag-dev-0.1.3.dev20241108}/flashrag/evaluator/metrics.py +0 -0
- {flashrag-dev-0.1.3.dev20241107 → flashrag-dev-0.1.3.dev20241108}/flashrag/evaluator/utils.py +0 -0
- {flashrag-dev-0.1.3.dev20241107 → flashrag-dev-0.1.3.dev20241108}/flashrag/generator/__init__.py +0 -0
- {flashrag-dev-0.1.3.dev20241107 → flashrag-dev-0.1.3.dev20241108}/flashrag/generator/fid.py +0 -0
- {flashrag-dev-0.1.3.dev20241107 → flashrag-dev-0.1.3.dev20241108}/flashrag/generator/generator.py +0 -0
- {flashrag-dev-0.1.3.dev20241107 → flashrag-dev-0.1.3.dev20241108}/flashrag/generator/openai_generator.py +0 -0
- {flashrag-dev-0.1.3.dev20241107 → flashrag-dev-0.1.3.dev20241108}/flashrag/generator/stop_word_criteria.py +0 -0
- {flashrag-dev-0.1.3.dev20241107 → flashrag-dev-0.1.3.dev20241108}/flashrag/judger/__init__.py +0 -0
- {flashrag-dev-0.1.3.dev20241107 → flashrag-dev-0.1.3.dev20241108}/flashrag/judger/judger.py +0 -0
- {flashrag-dev-0.1.3.dev20241107 → flashrag-dev-0.1.3.dev20241108}/flashrag/pipeline/__init__.py +0 -0
- {flashrag-dev-0.1.3.dev20241107 → flashrag-dev-0.1.3.dev20241108}/flashrag/pipeline/active_pipeline.py +0 -0
- {flashrag-dev-0.1.3.dev20241107 → flashrag-dev-0.1.3.dev20241108}/flashrag/pipeline/branching_pipeline.py +0 -0
- {flashrag-dev-0.1.3.dev20241107 → flashrag-dev-0.1.3.dev20241108}/flashrag/pipeline/pipeline.py +0 -0
- {flashrag-dev-0.1.3.dev20241107 → flashrag-dev-0.1.3.dev20241108}/flashrag/pipeline/replug_utils.py +0 -0
- {flashrag-dev-0.1.3.dev20241107 → flashrag-dev-0.1.3.dev20241108}/flashrag/prompt/__init__.py +0 -0
- {flashrag-dev-0.1.3.dev20241107 → flashrag-dev-0.1.3.dev20241108}/flashrag/prompt/base_prompt.py +0 -0
- {flashrag-dev-0.1.3.dev20241107 → flashrag-dev-0.1.3.dev20241108}/flashrag/prompt/selfask_examplars.py +0 -0
- {flashrag-dev-0.1.3.dev20241107 → flashrag-dev-0.1.3.dev20241108}/flashrag/prompt/trace_examplars.py +0 -0
- {flashrag-dev-0.1.3.dev20241107 → flashrag-dev-0.1.3.dev20241108}/flashrag/refiner/__init__.py +0 -0
- {flashrag-dev-0.1.3.dev20241107 → flashrag-dev-0.1.3.dev20241108}/flashrag/refiner/kg_refiner.py +0 -0
- {flashrag-dev-0.1.3.dev20241107 → flashrag-dev-0.1.3.dev20241108}/flashrag/refiner/llmlingua_compressor.py +0 -0
- {flashrag-dev-0.1.3.dev20241107 → flashrag-dev-0.1.3.dev20241108}/flashrag/refiner/refiner.py +0 -0
- {flashrag-dev-0.1.3.dev20241107 → flashrag-dev-0.1.3.dev20241108}/flashrag/refiner/selective_context_compressor.py +0 -0
- {flashrag-dev-0.1.3.dev20241107 → flashrag-dev-0.1.3.dev20241108}/flashrag/retriever/__init__.py +0 -0
- {flashrag-dev-0.1.3.dev20241107 → flashrag-dev-0.1.3.dev20241108}/flashrag/retriever/__main__.py +0 -0
- {flashrag-dev-0.1.3.dev20241107 → flashrag-dev-0.1.3.dev20241108}/flashrag/retriever/encoder.py +0 -0
- {flashrag-dev-0.1.3.dev20241107 → flashrag-dev-0.1.3.dev20241108}/flashrag/retriever/index_builder.py +0 -0
- {flashrag-dev-0.1.3.dev20241107 → flashrag-dev-0.1.3.dev20241108}/flashrag/retriever/reranker.py +0 -0
- {flashrag-dev-0.1.3.dev20241107 → flashrag-dev-0.1.3.dev20241108}/flashrag/retriever/retriever.py +0 -0
- {flashrag-dev-0.1.3.dev20241107 → flashrag-dev-0.1.3.dev20241108}/flashrag/utils/__init__.py +0 -0
- {flashrag-dev-0.1.3.dev20241107 → flashrag-dev-0.1.3.dev20241108}/flashrag/utils/constants.py +0 -0
- {flashrag-dev-0.1.3.dev20241107 → flashrag-dev-0.1.3.dev20241108}/flashrag/utils/pred_parse.py +0 -0
- {flashrag-dev-0.1.3.dev20241107 → flashrag-dev-0.1.3.dev20241108}/flashrag/utils/utils.py +0 -0
- {flashrag-dev-0.1.3.dev20241107 → flashrag-dev-0.1.3.dev20241108}/flashrag_dev.egg-info/SOURCES.txt +0 -0
- {flashrag-dev-0.1.3.dev20241107 → flashrag-dev-0.1.3.dev20241108}/flashrag_dev.egg-info/dependency_links.txt +0 -0
- {flashrag-dev-0.1.3.dev20241107 → flashrag-dev-0.1.3.dev20241108}/flashrag_dev.egg-info/requires.txt +0 -0
- {flashrag-dev-0.1.3.dev20241107 → flashrag-dev-0.1.3.dev20241108}/flashrag_dev.egg-info/top_level.txt +0 -0
- {flashrag-dev-0.1.3.dev20241107 → flashrag-dev-0.1.3.dev20241108}/pyproject.toml +0 -0
- {flashrag-dev-0.1.3.dev20241107 → flashrag-dev-0.1.3.dev20241108}/setup.cfg +0 -0
- {flashrag-dev-0.1.3.dev20241107 → flashrag-dev-0.1.3.dev20241108}/setup.py +0 -0
{flashrag-dev-0.1.3.dev20241107/flashrag_dev.egg-info → flashrag-dev-0.1.3.dev20241108}/PKG-INFO
RENAMED
|
@@ -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.dev20241108
|
|
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
|
|
@@ -158,8 +158,8 @@ class Config:
|
|
|
158
158
|
refiner_model = self.final_config["refiner_name"]
|
|
159
159
|
if "refiner_model_path" not in self.final_config or self.final_config["refiner_model_path"] is None:
|
|
160
160
|
self.final_config["refiner_model_path"] = model2path.get(refiner_model, None)
|
|
161
|
-
if 'instruction' not in self.final_config
|
|
162
|
-
self.final_config['instruction'] =
|
|
161
|
+
if 'instruction' not in self.final_config:
|
|
162
|
+
self.final_config['instruction'] = None
|
|
163
163
|
|
|
164
164
|
# set model path in metric setting
|
|
165
165
|
metric_setting = self.final_config["metric_setting"]
|
{flashrag-dev-0.1.3.dev20241107 → flashrag-dev-0.1.3.dev20241108}/flashrag/retriever/utils.py
RENAMED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import json
|
|
2
|
+
import warnings
|
|
2
3
|
import datasets
|
|
3
4
|
from transformers import AutoTokenizer, AutoModel, AutoConfig
|
|
4
5
|
|
|
@@ -71,6 +72,7 @@ def parse_query(model_name, query_list, instruction=None):
|
|
|
71
72
|
instruction = instruction.strip() + " "
|
|
72
73
|
else:
|
|
73
74
|
instruction = set_default_instruction(model_name, is_query=True, is_zh=is_zh(query_list[0]))
|
|
75
|
+
print(f"Use `{instruction}` as retreival instruction")
|
|
74
76
|
|
|
75
77
|
query_list = [instruction + query for query in query_list]
|
|
76
78
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.1.3dev20241108"
|
{flashrag-dev-0.1.3.dev20241107 → flashrag-dev-0.1.3.dev20241108/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.3.
|
|
3
|
+
Version: 0.1.3.dev20241108
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.1.3dev20241107"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{flashrag-dev-0.1.3.dev20241107 → flashrag-dev-0.1.3.dev20241108}/flashrag/config/__init__.py
RENAMED
|
File without changes
|
{flashrag-dev-0.1.3.dev20241107 → flashrag-dev-0.1.3.dev20241108}/flashrag/config/basic_config.yaml
RENAMED
|
File without changes
|
{flashrag-dev-0.1.3.dev20241107 → flashrag-dev-0.1.3.dev20241108}/flashrag/dataset/__init__.py
RENAMED
|
File without changes
|
{flashrag-dev-0.1.3.dev20241107 → flashrag-dev-0.1.3.dev20241108}/flashrag/dataset/dataset.py
RENAMED
|
File without changes
|
|
File without changes
|
{flashrag-dev-0.1.3.dev20241107 → flashrag-dev-0.1.3.dev20241108}/flashrag/evaluator/__init__.py
RENAMED
|
File without changes
|
{flashrag-dev-0.1.3.dev20241107 → flashrag-dev-0.1.3.dev20241108}/flashrag/evaluator/_bleu.py
RENAMED
|
File without changes
|
{flashrag-dev-0.1.3.dev20241107 → flashrag-dev-0.1.3.dev20241108}/flashrag/evaluator/evaluator.py
RENAMED
|
File without changes
|
{flashrag-dev-0.1.3.dev20241107 → flashrag-dev-0.1.3.dev20241108}/flashrag/evaluator/metrics.py
RENAMED
|
File without changes
|
{flashrag-dev-0.1.3.dev20241107 → flashrag-dev-0.1.3.dev20241108}/flashrag/evaluator/utils.py
RENAMED
|
File without changes
|
{flashrag-dev-0.1.3.dev20241107 → flashrag-dev-0.1.3.dev20241108}/flashrag/generator/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{flashrag-dev-0.1.3.dev20241107 → flashrag-dev-0.1.3.dev20241108}/flashrag/generator/generator.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{flashrag-dev-0.1.3.dev20241107 → flashrag-dev-0.1.3.dev20241108}/flashrag/judger/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{flashrag-dev-0.1.3.dev20241107 → flashrag-dev-0.1.3.dev20241108}/flashrag/pipeline/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{flashrag-dev-0.1.3.dev20241107 → flashrag-dev-0.1.3.dev20241108}/flashrag/pipeline/pipeline.py
RENAMED
|
File without changes
|
{flashrag-dev-0.1.3.dev20241107 → flashrag-dev-0.1.3.dev20241108}/flashrag/pipeline/replug_utils.py
RENAMED
|
File without changes
|
{flashrag-dev-0.1.3.dev20241107 → flashrag-dev-0.1.3.dev20241108}/flashrag/prompt/__init__.py
RENAMED
|
File without changes
|
{flashrag-dev-0.1.3.dev20241107 → flashrag-dev-0.1.3.dev20241108}/flashrag/prompt/base_prompt.py
RENAMED
|
File without changes
|
|
File without changes
|
{flashrag-dev-0.1.3.dev20241107 → flashrag-dev-0.1.3.dev20241108}/flashrag/prompt/trace_examplars.py
RENAMED
|
File without changes
|
{flashrag-dev-0.1.3.dev20241107 → flashrag-dev-0.1.3.dev20241108}/flashrag/refiner/__init__.py
RENAMED
|
File without changes
|
{flashrag-dev-0.1.3.dev20241107 → flashrag-dev-0.1.3.dev20241108}/flashrag/refiner/kg_refiner.py
RENAMED
|
File without changes
|
|
File without changes
|
{flashrag-dev-0.1.3.dev20241107 → flashrag-dev-0.1.3.dev20241108}/flashrag/refiner/refiner.py
RENAMED
|
File without changes
|
|
File without changes
|
{flashrag-dev-0.1.3.dev20241107 → flashrag-dev-0.1.3.dev20241108}/flashrag/retriever/__init__.py
RENAMED
|
File without changes
|
{flashrag-dev-0.1.3.dev20241107 → flashrag-dev-0.1.3.dev20241108}/flashrag/retriever/__main__.py
RENAMED
|
File without changes
|
{flashrag-dev-0.1.3.dev20241107 → flashrag-dev-0.1.3.dev20241108}/flashrag/retriever/encoder.py
RENAMED
|
File without changes
|
|
File without changes
|
{flashrag-dev-0.1.3.dev20241107 → flashrag-dev-0.1.3.dev20241108}/flashrag/retriever/reranker.py
RENAMED
|
File without changes
|
{flashrag-dev-0.1.3.dev20241107 → flashrag-dev-0.1.3.dev20241108}/flashrag/retriever/retriever.py
RENAMED
|
File without changes
|
{flashrag-dev-0.1.3.dev20241107 → flashrag-dev-0.1.3.dev20241108}/flashrag/utils/__init__.py
RENAMED
|
File without changes
|
{flashrag-dev-0.1.3.dev20241107 → flashrag-dev-0.1.3.dev20241108}/flashrag/utils/constants.py
RENAMED
|
File without changes
|
{flashrag-dev-0.1.3.dev20241107 → flashrag-dev-0.1.3.dev20241108}/flashrag/utils/pred_parse.py
RENAMED
|
File without changes
|
|
File without changes
|
{flashrag-dev-0.1.3.dev20241107 → flashrag-dev-0.1.3.dev20241108}/flashrag_dev.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{flashrag-dev-0.1.3.dev20241107 → flashrag-dev-0.1.3.dev20241108}/flashrag_dev.egg-info/requires.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|