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
Function
print_pretrain_dataset_example
(example: Dict[str, List[int]], tokenizer: "PreTrainedTokenizer")
train/LLaMA-Factory/src/llamafactory/data/processors/pretrain.py:57
Function
print_supervised_dataset_example
(example: Dict[str, List[int]], tokenizer: "PreTrainedTokenizer")
train/LLaMA-Factory/src/llamafactory/data/processors/supervised.py:214
Method
print_trainable_parameters
(self)
train/R3RAG_OpenRLHF/openrlhf/models/actor.py:241
Function
print_unsupervised_dataset_example
(example: Dict[str, List[int]], tokenizer: "PreTrainedTokenizer")
train/LLaMA-Factory/src/llamafactory/data/processors/unsupervised.py:100
Method
process_data
(self, data)
train/R3RAG_OpenRLHF/openrlhf/datasets/sft_dataset.py:85
Method
process_data
(self, data)
train/R3RAG_OpenRLHF/openrlhf/datasets/unpaired_preference_dataset.py:80
Method
process_data
(self, data)
train/R3RAG_OpenRLHF/openrlhf/datasets/reward_dataset.py:104
Function
process_image
(content_dict)
tool/FlashRAG/flashrag/generator/utils.py:91
Method
process_messages
( self, messages: Sequence[Dict[str, str]], images: Sequence["ImageInput"], vi
train/LLaMA-Factory/src/llamafactory/data/mm_plugin.py:259
Method
process_messages
( self, messages: Sequence[Dict[str, str]], images: Sequence["ImageInput"], vi
train/LLaMA-Factory/src/llamafactory/data/mm_plugin.py:299
Method
process_messages
( self, messages: Sequence[Dict[str, str]], images: Sequence["ImageInput"], vi
train/LLaMA-Factory/src/llamafactory/data/mm_plugin.py:353
Method
process_messages
( self, messages: Sequence[Dict[str, str]], images: Sequence["ImageInput"], vi
train/LLaMA-Factory/src/llamafactory/data/mm_plugin.py:422
Method
process_messages
( self, messages: Sequence[Dict[str, str]], images: Sequence["ImageInput"], vi
train/LLaMA-Factory/src/llamafactory/data/mm_plugin.py:572
Method
process_messages
( self, messages: Sequence[Dict[str, str]], images: Sequence["ImageInput"], vi
train/LLaMA-Factory/src/llamafactory/data/mm_plugin.py:651
Method
process_messages
( self, messages: Sequence[Dict[str, str]], images: Sequence["ImageInput"], vi
train/LLaMA-Factory/src/llamafactory/data/mm_plugin.py:713
Method
process_messages
( self, messages: Sequence[Dict[str, str]], images: Sequence["ImageInput"], vi
train/LLaMA-Factory/src/llamafactory/data/mm_plugin.py:819
Method
process_messages
( self, messages: Sequence[Dict[str, str]], images: Sequence["ImageInput"], vi
train/LLaMA-Factory/src/llamafactory/data/mm_plugin.py:883
Method
process_question
处理问题并返回可视化结果
startup/R3-RAG.py:367
Method
process_retriever
(retriever)
tool/FlashRAG/flashrag/retriever/retriever.py:666
Method
process_token_ids
( self, input_ids: List[int], labels: Optional[List[int]], images: Sequence["I
train/LLaMA-Factory/src/llamafactory/data/mm_plugin.py:675
Function
prompt_question
(previous_steps, question)
data/construct/02sample_from_dataset/prompt_template.py:122
Function
prompt_question_end
(previous_steps, question)
data/construct/02sample_from_dataset/prompt_template.py:505
Function
prompt_question_endv2
(previous_steps, question)
data/construct/02sample_from_dataset/prompt_template.py:624
Function
prompt_question_endv3
(previous_steps, question)
data/construct/02sample_from_dataset/prompt_template.py:706
Function
prompt_question_init
(question)
data/construct/02sample_from_dataset/prompt_template.py:1
Function
prompt_question_new
(previous_steps, question)
data/construct/02sample_from_dataset/prompt_template.py:233
Method
question
(self)
tool/FlashRAG/flashrag/dataset/dataset.py:150
Function
re_init_no_answer_records
(records)
benchmark/R3-RAG/src/inference_4gpu.py:291
Function
re_init_no_answer_records
(records)
benchmark/R3-RAG/src/inference_new.py:293
Function
re_init_no_answer_records
(records)
benchmark/R3-RAG/src/inference.py:291
Function
read_jsonl
(file_path)
tool/FlashRAG/flashrag/retriever/utils.py:137
Function
read_jsonl_file
(file_path)
tool/FlashRAG/scripts/preprocess_wiki_old.py:27
Function
read_jsonl_file
(file_path)
tool/FlashRAG/scripts/preprocess_wiki.py:28
Function
recomp
Reference: Fangyuan Xu et al. "RECOMP: Improving Retrieval-Augmented LMs with Compression and Selective Augmentation" in ICLR 202
tool/FlashRAG/examples/methods/run_exp.py:127
Method
recover
( self, original_prompt: str, compressed_prompt: str, response: str, )
tool/FlashRAG/flashrag/refiner/llmlingua_compressor.py:1743
Function
rejection_sampling_processor
(args, objs)
train/R3RAG_OpenRLHF/openrlhf/utils/processor.py:40
Function
remote_rm_fn_ray
(api_url, queries, score_key="rewards")
train/R3RAG_OpenRLHF/openrlhf/utils/remote_rm_utils.py:44
Function
remove_handler
r""" Removes a handler to the root logger.
train/LLaMA-Factory/src/llamafactory/extras/logging.py:147
Function
replug
Reference: Weijia Shi et al. "REPLUG: Retrieval-Augmented Black-Box Language Models".
tool/FlashRAG/examples/methods/run_exp.py:274
Function
rerank_manager
Decorator used for reranking retrieved documents.
tool/FlashRAG/flashrag/retriever/retriever.py:92
Method
resume
(self)
train/LLaMA-Factory/src/llamafactory/webui/engine.py:50
Method
resume
(self)
tool/FlashRAG/webui/engine.py:34
Function
retrobust
Reference: Ori Yoran et al. "Making Retrieval-Augmented Language Models Robust to Irrelevant Context" in ICLR 2024. Offic
tool/FlashRAG/examples/methods/run_exp.py:215
Function
reward_fn
(rewards: List[torch.Tensor])
train/R3RAG_OpenRLHF/openrlhf/cli/train_ppo_ray.py:21
Method
ring_attn_group
(self)
train/R3RAG_OpenRLHF/openrlhf/utils/deepspeed/deepspeed.py:114
Function
rqrag
Function to run the RQRAGPipeline.
tool/FlashRAG/examples/methods/run_exp.py:563
Method
run
The overall inference process of a RAG framework.
tool/FlashRAG/flashrag/pipeline/mm_pipeline.py:19
Method
run
(self, dataset, do_eval=True, perform_modality_dict=PERFORM_MODALITY_DICT, pred_process_func=None)
tool/FlashRAG/flashrag/pipeline/mm_pipeline.py:61
Method
run_batch_pred
(self, dataset)
tool/FlashRAG/flashrag/pipeline/active_pipeline.py:632
Method
run_batch_pred_long_form
(self, dataset)
tool/FlashRAG/flashrag/pipeline/active_pipeline.py:587
Method
run_eval
(self, data)
train/LLaMA-Factory/src/llamafactory/webui/runner.py:366
Method
run_evaluate
(self, data: Dict["Component", Any], progress=gr.Progress())
tool/FlashRAG/webui/runner.py:485
Method
run_task
(queue)
tool/FlashRAG/webui/runner.py:492
Method
run_train
(self, data)
train/LLaMA-Factory/src/llamafactory/webui/runner.py:363
Method
save_args
(self, data)
train/LLaMA-Factory/src/llamafactory/webui/runner.py:423
Function
save_config
r""" Saves user config.
train/LLaMA-Factory/src/llamafactory/webui/common.py:84
Method
save_configs
Used in preview modulde to save the configs and write them to a file.
tool/FlashRAG/webui/runner.py:336
Function
save_model
( lang: str, model_name: str, model_path: str, finetuning_type: str, checkpoint_path: Unio
train/LLaMA-Factory/src/llamafactory/webui/components/export.py:42
Method
save_model
(self, model: nn.Module, tokenizer, output_dir, **kwargs)
train/R3RAG_OpenRLHF/openrlhf/utils/deepspeed/deepspeed.py:299
Method
save_model
(self)
train/R3RAG_OpenRLHF/openrlhf/trainer/ray/ppo_critic.py:183
Function
sc
Reference: Yucheng Li et al. "Compressing Context to Enhance Inference Efficiency of Large Language Models" in EMNLP 2023.
tool/FlashRAG/examples/methods/run_exp.py:175
Function
scheduler_hook
(param: "torch.nn.Parameter")
train/LLaMA-Factory/src/llamafactory/train/trainer_utils.py:536
Function
search
(query_request: QueryRequest)
startup/retriever_service.py:43
Function
search
(query_request: QueryRequest)
benchmark/retriever/src/retrive_server.py:47
Function
search
(query_request: QueryRequest)
benchmark/retriever/src/retrive_server_bm25.py:33
Function
search
(query_request: QueryRequest)
benchmark/retriever/src/retrive_server_bge.py:47
Function
search
(query_request: QueryRequest)
tool/utils/retriever/retriever_service.py:45
Function
search
(query_request: QueryRequest)
tool/utils/retriever/retriever_service_bge.py:45
Function
search
(query_request: QueryRequest)
tool/utils/retriever/retriever_service_bm25.py:45
Method
search
(self, *args, **kwargs)
tool/FlashRAG/flashrag/retriever/retriever.py:200
Method
search
(self, query, target_modal="text", num: Union[list, int, None] = None, return_score=False)
tool/FlashRAG/flashrag/retriever/retriever.py:832
Function
selfask_pred_parse
Parsing the prediction results of self-ask format.
tool/FlashRAG/flashrag/utils/pred_parse.py:3
Function
selfrag
Reference: Akari Asai et al. " SELF-RAG: Learning to Retrieve, Generate and Critique through self-reflection" in ICLR 2024.
tool/FlashRAG/examples/methods/run_exp.py:345
Method
set_abort
(self)
train/LLaMA-Factory/src/llamafactory/webui/runner.py:54
Method
set_checkpoint
Enable or disable checkpointing in the encoder. See https://pytorch.org/docs/stable/checkpoint.html
tool/FlashRAG/flashrag/generator/fid.py:80
Method
set_pooling_method
(method, model2pooling)
tool/FlashRAG/flashrag/config/config.py:122
Method
set_retrieval_keys
(model2path, model2pooling, method2index, config)
tool/FlashRAG/flashrag/config/config.py:128
Method
signature
Returns a signature for the tokenizer. :return: signature string
tool/FlashRAG/flashrag/evaluator/_bleu.py:23
Method
signature
(self)
tool/FlashRAG/flashrag/evaluator/_bleu.py:40
Function
single_worker
(docs)
tool/FlashRAG/scripts/preprocess_wiki_old.py:153
Function
single_worker
(docs)
tool/FlashRAG/scripts/preprocess_wiki.py:139
Function
skr
Reference: Yile Wang et al. "Self-Knowledge Guided Retrieval Augmentation for Large Language Models" in EMNLP Findings 2023.
tool/FlashRAG/examples/methods/run_exp.py:294
Function
split_answer
(response_text)
benchmark/R3-RAG/src/inference_4gpu.py:79
Function
split_answer
(response_text)
benchmark/R3-RAG/src/split_server.py:19
Function
split_answer
(response_text)
benchmark/R3-RAG/src/inference_new.py:79
Function
split_answer
(response_text)
benchmark/R3-RAG/src/inference.py:79
Method
split_arg
(arg)
train/LLaMA-Factory/src/llamafactory/hparams/finetuning_args.py:446
Method
split_arg
(arg)
train/LLaMA-Factory/src/llamafactory/hparams/data_args.py:128
Function
split_by_question_mark
(text)
startup/RRAG.py:43
Function
split_query_endpoint
(request: SplitRequest)
benchmark/R3-RAG/src/split_server.py:68
Method
split_string_to_words
(input_string)
tool/FlashRAG/flashrag/refiner/llmlingua_compressor.py:2237
Function
spring
Reference: Yutao Zhu et al. "One Token Can Help! Learning Scalable and Pluggable Virtual Tokens for Retrieval-Augmented Large Language Mo
tool/FlashRAG/examples/methods/run_exp.py:498
Method
stream
()
train/LLaMA-Factory/src/llamafactory/chat/hf_engine.py:274
Method
stream
( self, chatbot: List[List[Optional[str]]], messages: Sequence[Dict[str, str]],
train/LLaMA-Factory/src/llamafactory/webui/chatter.py:130
Method
stream_chat
( self, messages: Sequence[Dict[str, str]], system: Optional[str] = None, tool
train/LLaMA-Factory/src/llamafactory/chat/vllm_engine.py:226
Method
stream_chat
r""" Gets the response token-by-token of the chat model.
train/LLaMA-Factory/src/llamafactory/chat/base_engine.py:79
Method
stream_chat
( self, messages: Sequence[Dict[str, str]], system: Optional[str] = None, tool
train/LLaMA-Factory/src/llamafactory/chat/hf_engine.py:336
Function
sure
Reference: Jaehyung Kim et al. "SuRe: Summarizing Retrievals using Answer Candidates for Open-domain QA of LLMs" in ICLR 2024
tool/FlashRAG/examples/methods/run_exp.py:255
Method
sync_sentence
(sentences, text)
tool/FlashRAG/flashrag/refiner/llmlingua_compressor.py:1309
Function
task_to_execute
在这里实现你需要定时执行的任务
benchmark/retriever/call_retriever_in_time.py:32
← previous
next →
1,601–1,700 of 1,737, ranked by callers