MCPcopy Create free account

hub / github.com/SmartFlowAI/TheGodOfCookery / functions

Functions56 in github.com/SmartFlowAI/TheGodOfCookery

↓ 51 callersFunctionload_config
(domain, key)
config/__init__.py:4
↓ 3 callersFunctionload_retriever
()
eval/interface.py:47
↓ 3 callersFunctionreturn_final_md
(cur_response)
parse_cur_response.py:60
↓ 2 callersFunctionconvert_t2s
(prompt)
convert_t2s.py:9
↓ 2 callersFunctionde_punct
(output: str)
eval/evaluate.py:8
↓ 2 callersFunctionf1_score
(output, gt)
eval/evaluate.py:14
↓ 2 callersFunctionload_chain
(llm, verbose=False)
rag_langchain/interface.py:95
↓ 2 callersFunctionload_retriever
()
rag_langchain/interface.py:46
↓ 2 callersFunctionload_vector_db
()
eval/interface.py:31
↓ 2 callersFunctionprocess_user_input
处理用户输入,根据用户输入内容调用相应的模型生成回复。 Args: prompt (str): 用户输入的内容。 model (str): 使用的模型名称。 tokenizer (object): 分词器对象。 ll
app.py:244
↓ 1 callersFunctionadd_file_root_path
(model_or_path: str, file_path_metas: dict, cfg={})
speech/utils.py:6
↓ 1 callersFunctionbuild_dataset
()
eval/build_eval_dataset.py:38
↓ 1 callersFunctioncombine_history
根据用户输入的提示信息,组合出一段完整的对话历史,用于机器人进行对话。 Args: prompt (str): 用户输入的提示信息。 Returns: str: 组合好的对话历史。
app.py:109
↓ 1 callersFunctioncombine_history
(prompt)
web_demo.py:218
↓ 1 callersMethodcreate_img
(self, prompt)
gen_image/sd_gen_image.py:28
↓ 1 callersFunctionevaluate_retriever
()
eval/evaluate.py:33
↓ 1 callersFunctionfilter
(texts: List[str])
eval/build_eval_dataset.py:23
↓ 1 callersFunctionformat_data
(texts: List[str])
eval/build_eval_dataset.py:16
↓ 1 callersFunctiongenerate_interactive
( model, tokenizer, prompt, generation_config: Optional[GenerationConfig] = No
web_demo.py:50
↓ 1 callersFunctiongenerate_interactive
( model, tokenizer, prompt, generation_config: Optional[GenerationConfig] = No
rag_langchain/interface.py:180
↓ 1 callersFunctiongenerate_interactive_rag
( llm, question, verbose=False )
rag_langchain/interface.py:309
↓ 1 callersFunctionget_local_model
(model_path)
speech/utils.py:21
↓ 1 callersFunctioninit_image_model
()
app.py:136
↓ 1 callersFunctionload_chain
(llm, verbose=False)
eval/interface.py:75
↓ 1 callersFunctionload_model
加载预训练模型和分词器。 Args: generation_config:模型配置参数。 Returns: model (Transformers模型): 预训练模型。 tokenizer (Transformers分词器
app.py:63
↓ 1 callersFunctionload_model
()
web_demo.py:186
↓ 1 callersFunctionload_model
()
eval/interface.py:100
↓ 1 callersFunctionload_speech_model
()
app.py:159
↓ 1 callersFunctionload_vector_db
()
rag_langchain/interface.py:30
↓ 1 callersFunctionmain
()
app.py:344
↓ 1 callersFunctionmain
()
web_demo.py:237
↓ 1 callersFunctionnumber_F2H
Full-width number to half-width number
eval/build_eval_dataset.py:5
↓ 1 callersFunctionprepare_generation_config
准备生成配置。 Args: 无 Returns: Tuple[GenerationConfig, Optional[str]]: 包含生成配置和语音字符串的元组。 - GenerationConfig: 生成配置。
app.py:193
↓ 1 callersFunctionprepare_generation_config
()
web_demo.py:195
↓ 1 callersFunctionread_data
()
eval/build_eval_dataset.py:32
↓ 1 callersFunctionspeech_rec
(speech_model)
app.py:165
↓ 1 callersFunctionsplit_ingredients
(ingredient)
parse_cur_response.py:10
↓ 1 callersMethodstream_chat
(self, query)
rag_langchain/CookMasterLLM.py:43
↓ 1 callersFunctiontest_retriever
()
eval/test_rag.py:19
↓ 1 callersFunctiontext_to_image
(prompt, image_model)
app.py:143
Method__init__
(self, model, tokenizer)
rag_langchain/CookMasterLLM.py:14
Method__init__
(self, model_path, lora_path=None, lora_scale=1.0)
gen_image/sd_gen_image.py:9
Method__init__
(self, api_key, model='cogview-3', image_create_size='256x256')
gen_image/zhipu_ai_image.py:8
Method_aget_relevant_documents
Get documents relevant for a query. Args: query: string to find relevant documents for Returns: List of rele
rag_langchain/HyQEContextualCompressionRetriever.py:68
Method_call
(self, prompt: str, stop: Optional[List[str]] = None, run_manager: Optional[CallbackManagerForLL
rag_langchain/CookMasterLLM.py:19
Method_get_relevant_documents
Get documents relevant for a query. Args: query: string to find relevant documents for Returns: Sequence of
rag_langchain/HyQEContextualCompressionRetriever.py:31
Method_llm_type
(self)
rag_langchain/CookMasterLLM.py:51
Method_stream
(self, prompt: str, stop: List[str] = None, run_manager: Callb
rag_langchain/CookMasterLLM.py:27
Methodcreate_img
(self, prompt, retry_count=0, api_key=None, api_base=None)
gen_image/zhipu_ai_image.py:14
Functionevaluate_model
()
eval/evaluate.py:56
Functiongenerate_interactive_rag_stream
( llm, question, verbose=False )
rag_langchain/interface.py:295
Functionload_chain_with_memory
(llm, verbose=False)
rag_langchain/interface.py:120
Functionon_btn_click
()
web_demo.py:181
Functionon_clear_btn_click
点击按钮时执行的函数,用于删除session_state中存储的消息。
app.py:186
Functionsplit_ingredients_old
(ingredient)
parse_cur_response.py:36
Functiontest_vector_db
()
eval/test_rag.py:4