├── .github └── workflows │ └── docs.yml ├── .gitignore ├── .pre-commit-config.yaml ├── LICENSE ├── README.md ├── assets └── rag_fit.png ├── configs ├── evaluation.yaml ├── external │ └── haystack │ │ └── qdrant.yaml ├── inference-vllm.yaml ├── inference.yaml ├── paper │ ├── evaluation-asqa-long.yaml │ ├── evaluation-asqa-short.yaml │ ├── evaluation-pubmed.yaml │ ├── inference-asqa.yaml │ ├── inference-pubmed.yaml │ ├── processing-asqa-baseline.yaml │ ├── processing-asqa-context.yaml │ ├── processing-asqa-cot-dev.yaml │ ├── processing-asqa-cot-train.yaml │ ├── processing-asqa-retrieval.yaml │ ├── processing-pubmed-context.yaml │ ├── training-asqa.yaml │ ├── training-pubmed-alternative.yaml │ └── training-pubmed.yaml ├── processing-nq.yaml ├── processing.yaml └── training.yaml ├── docs ├── README.md ├── assets │ ├── rag_fit.png │ └── rag_fit_white.png ├── evaluation.md ├── index.md ├── inference.md ├── processing.md ├── pubmed.md ├── reference │ ├── evaluation │ │ ├── base.md │ │ ├── deep.md │ │ └── metrics.md │ ├── models │ │ ├── hf.md │ │ ├── openai_executor.md │ │ └── vllm.md │ ├── processing │ │ ├── answer_processors │ │ │ └── regex.md │ │ ├── dataset_loaders │ │ │ └── loaders.md │ │ ├── global_steps │ │ │ ├── aggregation.md │ │ │ ├── filters.md │ │ │ ├── output.md │ │ │ └── sampling.md │ │ ├── local_steps │ │ │ ├── api │ │ │ │ └── openai.md │ │ │ ├── common_datasets.md │ │ │ ├── context.md │ │ │ ├── formatting.md │ │ │ ├── inference.md │ │ │ ├── prompter.md │ │ │ ├── raft.md │ │ │ └── retrievers │ │ │ │ └── haystack.md │ │ ├── pipeline.md │ │ ├── step.md │ │ └── utils.md │ └── utils.md ├── requirements.txt ├── scripts │ └── generate_docstrings.py ├── stylesheets │ └── extra.css └── training.md ├── evaluation.py ├── inference.py ├── mkdocs.yml ├── processing.py ├── pyproject.toml ├── ragfit ├── __init__.py ├── evaluation │ ├── __init__.py │ ├── base.py │ ├── deep.py │ └── metrics.py ├── models │ ├── __init__.py │ ├── hf.py │ ├── openai_executor.py │ └── vllm.py ├── processing │ ├── __init__.py │ ├── answer_processors │ │ ├── __init__.py │ │ └── regex.py │ ├── dataset_loaders │ │ ├── __init__.py │ │ └── loaders.py │ ├── global_steps │ │ ├── __init__.py │ │ ├── aggregation.py │ │ ├── filters.py │ │ ├── output.py │ │ └── sampling.py │ ├── local_steps │ │ ├── __init__.py │ │ ├── api │ │ │ ├── __init__.py │ │ │ └── openai.py │ │ ├── common_datasets.py │ │ ├── context.py │ │ ├── formatting.py │ │ ├── inference.py │ │ ├── prompter.py │ │ ├── raft.py │ │ └── retrievers │ │ │ ├── __init__.py │ │ │ └── haystack.py │ ├── pipeline.py │ ├── prompts │ │ ├── cot-fewshot.txt │ │ ├── cot.txt │ │ ├── fact_statement.txt │ │ ├── prompt_instructions │ │ │ ├── qa-short.txt │ │ │ ├── qa-yes-no-maybe.txt │ │ │ ├── qa-yes-no.txt │ │ │ └── qa.txt │ │ ├── qa-fewshot.txt │ │ ├── qa-short.txt │ │ ├── qa-with-answer.txt │ │ ├── qa.txt │ │ └── reason_before_answer.txt │ ├── step.py │ └── utils.py └── utils.py ├── ruff.toml └── training.py /.github/workflows/docs.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntelLabs/RAG-FiT/HEAD/.github/workflows/docs.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntelLabs/RAG-FiT/HEAD/.gitignore -------------------------------------------------------------------------------- /.pre-commit-config.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntelLabs/RAG-FiT/HEAD/.pre-commit-config.yaml -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntelLabs/RAG-FiT/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntelLabs/RAG-FiT/HEAD/README.md -------------------------------------------------------------------------------- /assets/rag_fit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntelLabs/RAG-FiT/HEAD/assets/rag_fit.png -------------------------------------------------------------------------------- /configs/evaluation.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntelLabs/RAG-FiT/HEAD/configs/evaluation.yaml -------------------------------------------------------------------------------- /configs/external/haystack/qdrant.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntelLabs/RAG-FiT/HEAD/configs/external/haystack/qdrant.yaml -------------------------------------------------------------------------------- /configs/inference-vllm.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntelLabs/RAG-FiT/HEAD/configs/inference-vllm.yaml -------------------------------------------------------------------------------- /configs/inference.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntelLabs/RAG-FiT/HEAD/configs/inference.yaml -------------------------------------------------------------------------------- /configs/paper/evaluation-asqa-long.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntelLabs/RAG-FiT/HEAD/configs/paper/evaluation-asqa-long.yaml -------------------------------------------------------------------------------- /configs/paper/evaluation-asqa-short.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntelLabs/RAG-FiT/HEAD/configs/paper/evaluation-asqa-short.yaml -------------------------------------------------------------------------------- /configs/paper/evaluation-pubmed.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntelLabs/RAG-FiT/HEAD/configs/paper/evaluation-pubmed.yaml -------------------------------------------------------------------------------- /configs/paper/inference-asqa.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntelLabs/RAG-FiT/HEAD/configs/paper/inference-asqa.yaml -------------------------------------------------------------------------------- /configs/paper/inference-pubmed.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntelLabs/RAG-FiT/HEAD/configs/paper/inference-pubmed.yaml -------------------------------------------------------------------------------- /configs/paper/processing-asqa-baseline.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntelLabs/RAG-FiT/HEAD/configs/paper/processing-asqa-baseline.yaml -------------------------------------------------------------------------------- /configs/paper/processing-asqa-context.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntelLabs/RAG-FiT/HEAD/configs/paper/processing-asqa-context.yaml -------------------------------------------------------------------------------- /configs/paper/processing-asqa-cot-dev.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntelLabs/RAG-FiT/HEAD/configs/paper/processing-asqa-cot-dev.yaml -------------------------------------------------------------------------------- /configs/paper/processing-asqa-cot-train.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntelLabs/RAG-FiT/HEAD/configs/paper/processing-asqa-cot-train.yaml -------------------------------------------------------------------------------- /configs/paper/processing-asqa-retrieval.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntelLabs/RAG-FiT/HEAD/configs/paper/processing-asqa-retrieval.yaml -------------------------------------------------------------------------------- /configs/paper/processing-pubmed-context.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntelLabs/RAG-FiT/HEAD/configs/paper/processing-pubmed-context.yaml -------------------------------------------------------------------------------- /configs/paper/training-asqa.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntelLabs/RAG-FiT/HEAD/configs/paper/training-asqa.yaml -------------------------------------------------------------------------------- /configs/paper/training-pubmed-alternative.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntelLabs/RAG-FiT/HEAD/configs/paper/training-pubmed-alternative.yaml -------------------------------------------------------------------------------- /configs/paper/training-pubmed.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntelLabs/RAG-FiT/HEAD/configs/paper/training-pubmed.yaml -------------------------------------------------------------------------------- /configs/processing-nq.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntelLabs/RAG-FiT/HEAD/configs/processing-nq.yaml -------------------------------------------------------------------------------- /configs/processing.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntelLabs/RAG-FiT/HEAD/configs/processing.yaml -------------------------------------------------------------------------------- /configs/training.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntelLabs/RAG-FiT/HEAD/configs/training.yaml -------------------------------------------------------------------------------- /docs/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntelLabs/RAG-FiT/HEAD/docs/README.md -------------------------------------------------------------------------------- /docs/assets/rag_fit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntelLabs/RAG-FiT/HEAD/docs/assets/rag_fit.png -------------------------------------------------------------------------------- /docs/assets/rag_fit_white.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntelLabs/RAG-FiT/HEAD/docs/assets/rag_fit_white.png -------------------------------------------------------------------------------- /docs/evaluation.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntelLabs/RAG-FiT/HEAD/docs/evaluation.md -------------------------------------------------------------------------------- /docs/index.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntelLabs/RAG-FiT/HEAD/docs/index.md -------------------------------------------------------------------------------- /docs/inference.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntelLabs/RAG-FiT/HEAD/docs/inference.md -------------------------------------------------------------------------------- /docs/processing.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntelLabs/RAG-FiT/HEAD/docs/processing.md -------------------------------------------------------------------------------- /docs/pubmed.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntelLabs/RAG-FiT/HEAD/docs/pubmed.md -------------------------------------------------------------------------------- /docs/reference/evaluation/base.md: -------------------------------------------------------------------------------- 1 | ::: ragfit.evaluation.base -------------------------------------------------------------------------------- /docs/reference/evaluation/deep.md: -------------------------------------------------------------------------------- 1 | ::: ragfit.evaluation.deep -------------------------------------------------------------------------------- /docs/reference/evaluation/metrics.md: -------------------------------------------------------------------------------- 1 | ::: ragfit.evaluation.metrics -------------------------------------------------------------------------------- /docs/reference/models/hf.md: -------------------------------------------------------------------------------- 1 | ::: ragfit.models.hf -------------------------------------------------------------------------------- /docs/reference/models/openai_executor.md: -------------------------------------------------------------------------------- 1 | ::: ragfit.models.openai_executor -------------------------------------------------------------------------------- /docs/reference/models/vllm.md: -------------------------------------------------------------------------------- 1 | ::: ragfit.models.vllm -------------------------------------------------------------------------------- /docs/reference/processing/answer_processors/regex.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntelLabs/RAG-FiT/HEAD/docs/reference/processing/answer_processors/regex.md -------------------------------------------------------------------------------- /docs/reference/processing/dataset_loaders/loaders.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntelLabs/RAG-FiT/HEAD/docs/reference/processing/dataset_loaders/loaders.md -------------------------------------------------------------------------------- /docs/reference/processing/global_steps/aggregation.md: -------------------------------------------------------------------------------- 1 | ::: ragfit.processing.global_steps.aggregation -------------------------------------------------------------------------------- /docs/reference/processing/global_steps/filters.md: -------------------------------------------------------------------------------- 1 | ::: ragfit.processing.global_steps.filters -------------------------------------------------------------------------------- /docs/reference/processing/global_steps/output.md: -------------------------------------------------------------------------------- 1 | ::: ragfit.processing.global_steps.output -------------------------------------------------------------------------------- /docs/reference/processing/global_steps/sampling.md: -------------------------------------------------------------------------------- 1 | ::: ragfit.processing.global_steps.sampling -------------------------------------------------------------------------------- /docs/reference/processing/local_steps/api/openai.md: -------------------------------------------------------------------------------- 1 | ::: ragfit.processing.local_steps.api.openai -------------------------------------------------------------------------------- /docs/reference/processing/local_steps/common_datasets.md: -------------------------------------------------------------------------------- 1 | ::: ragfit.processing.local_steps.common_datasets -------------------------------------------------------------------------------- /docs/reference/processing/local_steps/context.md: -------------------------------------------------------------------------------- 1 | ::: ragfit.processing.local_steps.context -------------------------------------------------------------------------------- /docs/reference/processing/local_steps/formatting.md: -------------------------------------------------------------------------------- 1 | ::: ragfit.processing.local_steps.formatting -------------------------------------------------------------------------------- /docs/reference/processing/local_steps/inference.md: -------------------------------------------------------------------------------- 1 | ::: ragfit.processing.local_steps.inference -------------------------------------------------------------------------------- /docs/reference/processing/local_steps/prompter.md: -------------------------------------------------------------------------------- 1 | ::: ragfit.processing.local_steps.prompter -------------------------------------------------------------------------------- /docs/reference/processing/local_steps/raft.md: -------------------------------------------------------------------------------- 1 | ::: ragfit.processing.local_steps.raft -------------------------------------------------------------------------------- /docs/reference/processing/local_steps/retrievers/haystack.md: -------------------------------------------------------------------------------- 1 | ::: ragfit.processing.local_steps.retrievers.haystack -------------------------------------------------------------------------------- /docs/reference/processing/pipeline.md: -------------------------------------------------------------------------------- 1 | ::: ragfit.processing.pipeline -------------------------------------------------------------------------------- /docs/reference/processing/step.md: -------------------------------------------------------------------------------- 1 | ::: ragfit.processing.step -------------------------------------------------------------------------------- /docs/reference/processing/utils.md: -------------------------------------------------------------------------------- 1 | ::: ragfit.processing.utils -------------------------------------------------------------------------------- /docs/reference/utils.md: -------------------------------------------------------------------------------- 1 | ::: ragfit.utils -------------------------------------------------------------------------------- /docs/requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntelLabs/RAG-FiT/HEAD/docs/requirements.txt -------------------------------------------------------------------------------- /docs/scripts/generate_docstrings.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntelLabs/RAG-FiT/HEAD/docs/scripts/generate_docstrings.py -------------------------------------------------------------------------------- /docs/stylesheets/extra.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntelLabs/RAG-FiT/HEAD/docs/stylesheets/extra.css -------------------------------------------------------------------------------- /docs/training.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntelLabs/RAG-FiT/HEAD/docs/training.md -------------------------------------------------------------------------------- /evaluation.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntelLabs/RAG-FiT/HEAD/evaluation.py -------------------------------------------------------------------------------- /inference.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntelLabs/RAG-FiT/HEAD/inference.py -------------------------------------------------------------------------------- /mkdocs.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntelLabs/RAG-FiT/HEAD/mkdocs.yml -------------------------------------------------------------------------------- /processing.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntelLabs/RAG-FiT/HEAD/processing.py -------------------------------------------------------------------------------- /pyproject.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntelLabs/RAG-FiT/HEAD/pyproject.toml -------------------------------------------------------------------------------- /ragfit/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /ragfit/evaluation/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /ragfit/evaluation/base.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntelLabs/RAG-FiT/HEAD/ragfit/evaluation/base.py -------------------------------------------------------------------------------- /ragfit/evaluation/deep.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntelLabs/RAG-FiT/HEAD/ragfit/evaluation/deep.py -------------------------------------------------------------------------------- /ragfit/evaluation/metrics.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntelLabs/RAG-FiT/HEAD/ragfit/evaluation/metrics.py -------------------------------------------------------------------------------- /ragfit/models/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /ragfit/models/hf.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntelLabs/RAG-FiT/HEAD/ragfit/models/hf.py -------------------------------------------------------------------------------- /ragfit/models/openai_executor.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntelLabs/RAG-FiT/HEAD/ragfit/models/openai_executor.py -------------------------------------------------------------------------------- /ragfit/models/vllm.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntelLabs/RAG-FiT/HEAD/ragfit/models/vllm.py -------------------------------------------------------------------------------- /ragfit/processing/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /ragfit/processing/answer_processors/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /ragfit/processing/answer_processors/regex.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntelLabs/RAG-FiT/HEAD/ragfit/processing/answer_processors/regex.py -------------------------------------------------------------------------------- /ragfit/processing/dataset_loaders/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /ragfit/processing/dataset_loaders/loaders.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntelLabs/RAG-FiT/HEAD/ragfit/processing/dataset_loaders/loaders.py -------------------------------------------------------------------------------- /ragfit/processing/global_steps/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /ragfit/processing/global_steps/aggregation.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntelLabs/RAG-FiT/HEAD/ragfit/processing/global_steps/aggregation.py -------------------------------------------------------------------------------- /ragfit/processing/global_steps/filters.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntelLabs/RAG-FiT/HEAD/ragfit/processing/global_steps/filters.py -------------------------------------------------------------------------------- /ragfit/processing/global_steps/output.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntelLabs/RAG-FiT/HEAD/ragfit/processing/global_steps/output.py -------------------------------------------------------------------------------- /ragfit/processing/global_steps/sampling.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntelLabs/RAG-FiT/HEAD/ragfit/processing/global_steps/sampling.py -------------------------------------------------------------------------------- /ragfit/processing/local_steps/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /ragfit/processing/local_steps/api/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /ragfit/processing/local_steps/api/openai.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntelLabs/RAG-FiT/HEAD/ragfit/processing/local_steps/api/openai.py -------------------------------------------------------------------------------- /ragfit/processing/local_steps/common_datasets.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntelLabs/RAG-FiT/HEAD/ragfit/processing/local_steps/common_datasets.py -------------------------------------------------------------------------------- /ragfit/processing/local_steps/context.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntelLabs/RAG-FiT/HEAD/ragfit/processing/local_steps/context.py -------------------------------------------------------------------------------- /ragfit/processing/local_steps/formatting.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntelLabs/RAG-FiT/HEAD/ragfit/processing/local_steps/formatting.py -------------------------------------------------------------------------------- /ragfit/processing/local_steps/inference.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntelLabs/RAG-FiT/HEAD/ragfit/processing/local_steps/inference.py -------------------------------------------------------------------------------- /ragfit/processing/local_steps/prompter.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntelLabs/RAG-FiT/HEAD/ragfit/processing/local_steps/prompter.py -------------------------------------------------------------------------------- /ragfit/processing/local_steps/raft.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntelLabs/RAG-FiT/HEAD/ragfit/processing/local_steps/raft.py -------------------------------------------------------------------------------- /ragfit/processing/local_steps/retrievers/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /ragfit/processing/local_steps/retrievers/haystack.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntelLabs/RAG-FiT/HEAD/ragfit/processing/local_steps/retrievers/haystack.py -------------------------------------------------------------------------------- /ragfit/processing/pipeline.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntelLabs/RAG-FiT/HEAD/ragfit/processing/pipeline.py -------------------------------------------------------------------------------- /ragfit/processing/prompts/cot-fewshot.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntelLabs/RAG-FiT/HEAD/ragfit/processing/prompts/cot-fewshot.txt -------------------------------------------------------------------------------- /ragfit/processing/prompts/cot.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntelLabs/RAG-FiT/HEAD/ragfit/processing/prompts/cot.txt -------------------------------------------------------------------------------- /ragfit/processing/prompts/fact_statement.txt: -------------------------------------------------------------------------------- 1 | From [{i}], we know that: {content} -------------------------------------------------------------------------------- /ragfit/processing/prompts/prompt_instructions/qa-short.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntelLabs/RAG-FiT/HEAD/ragfit/processing/prompts/prompt_instructions/qa-short.txt -------------------------------------------------------------------------------- /ragfit/processing/prompts/prompt_instructions/qa-yes-no-maybe.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntelLabs/RAG-FiT/HEAD/ragfit/processing/prompts/prompt_instructions/qa-yes-no-maybe.txt -------------------------------------------------------------------------------- /ragfit/processing/prompts/prompt_instructions/qa-yes-no.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntelLabs/RAG-FiT/HEAD/ragfit/processing/prompts/prompt_instructions/qa-yes-no.txt -------------------------------------------------------------------------------- /ragfit/processing/prompts/prompt_instructions/qa.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntelLabs/RAG-FiT/HEAD/ragfit/processing/prompts/prompt_instructions/qa.txt -------------------------------------------------------------------------------- /ragfit/processing/prompts/qa-fewshot.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntelLabs/RAG-FiT/HEAD/ragfit/processing/prompts/qa-fewshot.txt -------------------------------------------------------------------------------- /ragfit/processing/prompts/qa-short.txt: -------------------------------------------------------------------------------- 1 | Question: {query} -------------------------------------------------------------------------------- /ragfit/processing/prompts/qa-with-answer.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntelLabs/RAG-FiT/HEAD/ragfit/processing/prompts/qa-with-answer.txt -------------------------------------------------------------------------------- /ragfit/processing/prompts/qa.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntelLabs/RAG-FiT/HEAD/ragfit/processing/prompts/qa.txt -------------------------------------------------------------------------------- /ragfit/processing/prompts/reason_before_answer.txt: -------------------------------------------------------------------------------- 1 | {reasoning} 2 | Thus, the final answer is: -------------------------------------------------------------------------------- /ragfit/processing/step.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntelLabs/RAG-FiT/HEAD/ragfit/processing/step.py -------------------------------------------------------------------------------- /ragfit/processing/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntelLabs/RAG-FiT/HEAD/ragfit/processing/utils.py -------------------------------------------------------------------------------- /ragfit/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntelLabs/RAG-FiT/HEAD/ragfit/utils.py -------------------------------------------------------------------------------- /ruff.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntelLabs/RAG-FiT/HEAD/ruff.toml -------------------------------------------------------------------------------- /training.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntelLabs/RAG-FiT/HEAD/training.py --------------------------------------------------------------------------------