Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Yuan-Li-FNLP/R3-RAG
/ functions
Functions
1,737 in github.com/Yuan-Li-FNLP/R3-RAG
⨍
Functions
1,737
◇
Types & classes
293
↳
Endpoints
12
Method
__init__
( self, config: dict, prompt_template = None, retriever = None, genera
tool/FlashRAG/flashrag/pipeline/active_pipeline.py:1076
Method
__init__
(self, doc_scores: torch.FloatTensor)
tool/FlashRAG/flashrag/pipeline/replug_utils.py:211
Method
__init__
(self, config_file_path=None, config_dict={})
tool/FlashRAG/flashrag/config/config.py:10
Method
__init__
(self, config)
tool/FlashRAG/examples/methods/utils/get_lm_probs_dataset.py:23
Method
__init__
(self, queue, original_stream)
tool/FlashRAG/webui/utils.py:53
Method
__init__
( self, runner: "Runner", manager: "Manager" )
tool/FlashRAG/webui/chatter.py:8
Method
__init__
(self, manager: Manager)
tool/FlashRAG/webui/runner.py:19
Method
__init__
(self)
tool/FlashRAG/webui/engine.py:12
Method
__init__
(self)
tool/FlashRAG/webui/manager.py:7
Method
__init__
(self, *args, **kwargs)
tool/FlashRAG/webui/chat_pipelines/branching_pipeline.py:13
Method
__init__
(self, *args, **kwargs)
tool/FlashRAG/webui/chat_pipelines/sequential_pipeline.py:11
Method
__init__
inference stage: query -> judger -> sequential pipeline or naive generate
tool/FlashRAG/webui/chat_pipelines/conditional_pipeline.py:11
Method
__init__
( self, config, prompt_template=None, retriever=None, generator=None
tool/FlashRAG/webui/chat_pipelines/active_pipeline.py:8
Method
__init__
(self, config, prompt_template=None, retriever=None, generator=None)
tool/FlashRAG/webui/chat_pipelines/active_pipeline.py:59
Method
__init__
(self, config, prompt_template=None, retriever=None, generator=None)
tool/FlashRAG/webui/chat_pipelines/active_pipeline.py:195
Method
__init__
(self, config, prompt_template=None, retriever=None, generator=None)
tool/FlashRAG/webui/chat_pipelines/active_pipeline.py:285
Method
__init__
(self, config)
tool/FlashRAG/webui/chat_pipelines/base_chat_pipeline.py:2
Method
__iter__
(self)
train/R3RAG_OpenRLHF/openrlhf/utils/distributed_sampler.py:107
Method
__len__
(self)
train/R3RAG_OpenRLHF/openrlhf/utils/distributed_sampler.py:136
Method
__len__
(self)
train/R3RAG_OpenRLHF/openrlhf/datasets/sft_dataset.py:112
Method
__len__
(self)
train/R3RAG_OpenRLHF/openrlhf/datasets/process_reward_dataset.py:48
Method
__len__
(self)
train/R3RAG_OpenRLHF/openrlhf/datasets/prompts_dataset.py:57
Method
__len__
(self)
train/R3RAG_OpenRLHF/openrlhf/datasets/unpaired_preference_dataset.py:100
Method
__len__
(self)
train/R3RAG_OpenRLHF/openrlhf/datasets/reward_dataset.py:137
Method
__len__
(self)
tool/FlashRAG/flashrag/dataset/dataset.py:183
Method
__len__
(self)
tool/FlashRAG/flashrag/refiner/llmlingua_compressor.py:77
Method
__new__
(cls, name_or_path, **kwargs)
tool/FlashRAG/flashrag/pipeline/replug_utils.py:229
Method
__post_init__
(self)
train/LLaMA-Factory/src/llamafactory/data/collator.py:90
Method
__post_init__
(self)
train/LLaMA-Factory/src/llamafactory/data/formatter.py:50
Method
__post_init__
(self)
train/LLaMA-Factory/src/llamafactory/data/formatter.py:66
Method
__post_init__
(self)
train/LLaMA-Factory/src/llamafactory/data/formatter.py:96
Method
__post_init__
(self)
train/LLaMA-Factory/src/llamafactory/data/formatter.py:128
Method
__post_init__
(self)
train/LLaMA-Factory/src/llamafactory/hparams/finetuning_args.py:445
Method
__post_init__
(self)
train/LLaMA-Factory/src/llamafactory/hparams/model_args.py:313
Method
__post_init__
(self)
train/LLaMA-Factory/src/llamafactory/hparams/data_args.py:127
Method
__post_init__
(self)
train/LLaMA-Factory/src/llamafactory/hparams/training_args.py:46
Method
__post_init__
(self)
train/LLaMA-Factory/src/llamafactory/hparams/evaluation_args.py:60
Method
__post_init__
(self)
train/LLaMA-Factory/src/llamafactory/train/rm/metric.py:41
Method
__post_init__
(self)
train/LLaMA-Factory/src/llamafactory/train/sft/metric.py:77
Method
__post_init__
(self)
train/LLaMA-Factory/src/llamafactory/train/sft/metric.py:109
Method
__radd__
(self, other)
tool/FlashRAG/flashrag/refiner/selective_context_compressor.py:30
Method
__repr__
(self)
train/LLaMA-Factory/src/llamafactory/data/parser.py:67
Method
__repr__
(self)
tool/FlashRAG/flashrag/config/config.py:293
Method
__setitem__
(self, key, value)
tool/FlashRAG/flashrag/config/config.py:273
Method
__str__
Return a string representation of the dataset with a summary of items.
tool/FlashRAG/flashrag/dataset/dataset.py:194
Method
_batch_search
(self, query, num: int = None, return_score=False)
tool/FlashRAG/flashrag/retriever/retriever.py:313
Method
_batch_search
(self, query: List[str], num: int = None, return_score=False)
tool/FlashRAG/flashrag/retriever/retriever.py:447
Method
_batch_search
(self, query: List[str], target_modal: str = "text", num: int = None, return_score=False)
tool/FlashRAG/flashrag/retriever/retriever.py:542
Method
_chat
( model: "PreTrainedModel", tokenizer: "PreTrainedTokenizer", processor: Optional["Pro
train/LLaMA-Factory/src/llamafactory/chat/hf_engine.py:190
Method
_check_placeholder
(self)
tool/FlashRAG/flashrag/prompt/base_prompt.py:47
Function
_convert_images
r""" Optionally concatenates image path to dataset dir when loading from local disk.
train/LLaMA-Factory/src/llamafactory/data/aligner.py:35
Function
_convert_videos
r""" Optionally concatenates video path to dataset dir when loading from local disk.
train/LLaMA-Factory/src/llamafactory/data/aligner.py:58
Method
_encode
r""" Encodes formatted inputs to pairs of token ids. Turn 0: prefix + system + query resp Turn t: sep + query
train/LLaMA-Factory/src/llamafactory/data/template.py:165
Function
_fp32_forward_post_hook
( module: "torch.nn.Module", args: Tuple["torch.Tensor"], output: "torch.Tensor" )
train/LLaMA-Factory/src/llamafactory/model/model_utils/checkpointing.py:130
Method
_get_scores
( model: "PreTrainedModelWrapper", tokenizer: "PreTrainedTokenizer", batch_input: List
train/LLaMA-Factory/src/llamafactory/chat/hf_engine.py:284
Method
_get_self_info_via_curie
(self, text: str)
tool/FlashRAG/flashrag/refiner/selective_context_compressor.py:126
Method
_get_self_info_via_gpt2
(self, text: str)
tool/FlashRAG/flashrag/refiner/selective_context_compressor.py:105
Method
_get_train_sampler
(self)
train/LLaMA-Factory/src/llamafactory/train/rm/trainer.py:83
Method
_get_train_sampler
(self)
train/LLaMA-Factory/src/llamafactory/train/sft/trainer.py:85
Method
_get_train_sampler
(self)
train/LLaMA-Factory/src/llamafactory/train/pt/trainer.py:70
Method
_get_train_sampler
r""" Replaces the sequential sampler of KTO Trainer created by trl with the random sampler.
train/LLaMA-Factory/src/llamafactory/train/kto/trainer.py:122
Method
_get_train_sampler
(self)
train/LLaMA-Factory/src/llamafactory/train/dpo/trainer.py:124
Function
_gradient_checkpointing_enable
r""" Activates gradient checkpointing for the current model. Modification of the original method to enable gradient checkpointing for block-w
train/LLaMA-Factory/src/llamafactory/model/model_utils/checkpointing.py:98
Method
_load_model
(self)
tool/FlashRAG/flashrag/generator/multimodal_generator.py:79
Method
_load_model
(self)
tool/FlashRAG/flashrag/generator/multimodal_generator.py:119
Method
_load_model
(self)
tool/FlashRAG/flashrag/generator/multimodal_generator.py:307
Method
_load_model
r"""Load model and tokenizer for generator.
tool/FlashRAG/flashrag/generator/generator.py:529
Function
_mm_projector_forward_post_hook
( module: "torch.nn.Module", args: Tuple["torch.Tensor"], output: "torch.Tensor" )
train/LLaMA-Factory/src/llamafactory/model/model_utils/visual.py:123
Function
_mp_fn
(index)
train/LLaMA-Factory/src/train.py:22
Method
_noun_phrases
(sent)
tool/FlashRAG/flashrag/refiner/selective_context_compressor.py:217
Method
_preprocess_image
(self, image: "ImageObject", **kwargs)
train/LLaMA-Factory/src/llamafactory/data/mm_plugin.py:779
Method
_regularize_videos
(self, videos: Sequence["VideoInput"], **kwargs)
train/LLaMA-Factory/src/llamafactory/data/mm_plugin.py:796
Method
_remove_duplicate_doc
(self, docs)
tool/FlashRAG/flashrag/pipeline/active_pipeline.py:835
Method
_save_checkpoint
(self, args, tag, client_states)
train/R3RAG_OpenRLHF/openrlhf/trainer/ray/ppo_actor.py:161
Method
_search
(self, query: str, num: int = None, return_score=False)
tool/FlashRAG/flashrag/retriever/retriever.py:432
Method
_search
(self, query, target_modal: str = "text", num: int = None, return_score=False)
tool/FlashRAG/flashrag/retriever/retriever.py:513
Method
_search_with_rerank
(self, *args, **kwargs)
tool/FlashRAG/flashrag/retriever/retriever.py:213
Method
_set_abort
(self, signum, frame)
train/LLaMA-Factory/src/llamafactory/train/callbacks.py:203
Function
_start_background_loop
(loop: "asyncio.AbstractEventLoop")
train/LLaMA-Factory/src/llamafactory/chat/chat_model.py:34
Method
_unit_info
(tokens, self_info, units)
tool/FlashRAG/flashrag/refiner/selective_context_compressor.py:185
Method
_write_log
(self, log_entry: str)
train/LLaMA-Factory/src/llamafactory/extras/logging.py:53
Method
_write_log
(self, output_dir: str, logs: Dict[str, Any])
train/LLaMA-Factory/src/llamafactory/train/callbacks.py:222
Function
aar
Reference: Zichun Yu et al. "Augmentation-Adapted Retriever Improves Generalization of Language Models as Generic Plug-In" in ACL
tool/FlashRAG/examples/methods/run_exp.py:43
Function
adaptive
(args)
tool/FlashRAG/examples/methods/run_exp.py:541
Function
add_handler
r""" Adds a handler to the root logger.
train/LLaMA-Factory/src/llamafactory/extras/logging.py:139
Method
add_to_head
(self, token, self_info)
tool/FlashRAG/flashrag/refiner/selective_context_compressor.py:35
Method
add_to_tail
(self, token, self_info)
tool/FlashRAG/flashrag/refiner/selective_context_compressor.py:38
Method
apply
(self, **kwargs)
train/LLaMA-Factory/src/llamafactory/data/formatter.py:60
Method
apply
(self, **kwargs)
train/LLaMA-Factory/src/llamafactory/data/formatter.py:76
Method
apply
(self, **kwargs)
train/LLaMA-Factory/src/llamafactory/data/formatter.py:100
Method
apply
(self, **kwargs)
train/LLaMA-Factory/src/llamafactory/data/formatter.py:132
Method
async_run_method
(self, method_name, *args, **kwargs)
train/R3RAG_OpenRLHF/openrlhf/trainer/ray/launcher.py:311
Method
backward
(ctx: "torch.autograd.Function", grad_output: "torch.Tensor")
train/LLaMA-Factory/src/llamafactory/model/model_utils/checkpointing.py:66
Function
basic_pred_parse
(dataset)
tool/FlashRAG/flashrag/utils/pred_parse.py:34
Method
batch_run
(self, dataset, batch_size=None)
tool/FlashRAG/flashrag/refiner/refiner.py:30
Method
batch_run
(self, dataset)
tool/FlashRAG/flashrag/refiner/refiner.py:72
Method
batch_run
(self, dataset)
tool/FlashRAG/flashrag/refiner/refiner.py:125
Method
batch_run
(self, dataset, batch_size=16)
tool/FlashRAG/flashrag/refiner/refiner.py:160
Method
batch_run
(self, dataset, batch_size=2)
tool/FlashRAG/flashrag/refiner/refiner.py:226
Method
batch_run
(self, dataset)
tool/FlashRAG/flashrag/refiner/kg_refiner.py:556
← previous
next →
1,201–1,300 of 1,737, ranked by callers