MCPcopy Create free account

hub / github.com/SocialAI-tianji/Tianji / functions

Functions293 in github.com/SocialAI-tianji/Tianji

↓ 23 callersMethodget_instance
(cls)
tianji/agents/metagpt_agents/utils/json_from.py:27
↓ 11 callersFunctionload_json
(file_name)
tianji/agents/metagpt_agents/utils/helper_func.py:20
↓ 10 callersMethod_aask
异步调用智谱AI接口 参数: prompt (str): 提示文本 stream (bool): 是否使用流式输出 model (str): 模型名称 top_p (fl
tianji/agents/metagpt_agents/utils/agent_llm.py:35
↓ 10 callersFunctionextract_single_type_attributes_and_examples
(json_data, type_number)
tianji/agents/metagpt_agents/utils/helper_func.py:38
↓ 10 callersMethodrun
(self, instruction: str)
tianji/agents/metagpt_agents/searcher/action.py:92
↓ 10 callersMethodsearch
(query)
tianji/agents/metagpt_agents/searcher/action.py:97
↓ 9 callersMethodrun
执行简单的加法运算 Args: instruction: 格式为"数字1 + 数字2"的字符串 Returns: 计算结果的字符串
test/agents/metagpt/test_metagpt_dummy.py:18
↓ 8 callersFunctiontimestamp_str
()
tianji/agents/metagpt_agents/utils/helper_func.py:7
↓ 7 callersFunctionextract_all_types
(json_data)
tianji/agents/metagpt_agents/utils/helper_func.py:31
↓ 7 callersFunctionload_examples
(json_path)
tools/finetune/data_maker/get_wish_datav2.py:49
↓ 5 callersMethodembed_query
(self, text: str)
tianji/knowledges/langchain_onlinellm/models.py:134
↓ 5 callersFunctionremaining_files_count
()
tools/finetune/everything2data/video2json/3-data_check_gradio.py:88
↓ 5 callersFunctionrun_example
运行单个计算示例
test/agents/metagpt/test_metagpt_dummy.py:64
↓ 4 callersFunctionget_names_by_id
(id)
run/demo_prompt.py:27
↓ 4 callersFunctionread_md_file
(index)
tools/finetune/everything2data/video2json/3-data_check_gradio.py:29
↓ 4 callersFunctionshow_one_message
(role, method="write", showdata="", is_add=False)
test/agents/metagpt/sceneRefine_test_case.py:45
↓ 4 callersFunctionshow_one_message
(role, method="write", showdata="", is_add=False)
test/agents/metagpt/intentReg_test_case.py:45
↓ 3 callersMethod__init__
(self)
tianji/knowledges/llamaindex_onlinellm/models.py:24
↓ 3 callersMethod_get_embedding
(self, text: str)
tianji/knowledges/llamaindex_onlinellm/models.py:221
↓ 3 callersFunction_get_id_json_id
(idx)
run/demo_prompt.py:87
↓ 3 callersFunctionextract_attribute_descriptions
(json_data, attributes)
tianji/agents/metagpt_agents/utils/helper_func.py:56
↓ 3 callersFunctionlog_error
Logs the error URL, title, and error info to a log file in the output directory. Parameters: output_dir (str): The directory to save the
tools/finetune/everything2data/bilibili2download/get_url2video.py:159
↓ 3 callersMethodrun
主运行流程,使用默认输入自动执行所有步骤。
test/agents/metagpt/unittest_searcher_test_case .py:213
↓ 2 callersMethod_call
Run the LLM on the given input.
tianji/knowledges/langchain_onlinellm/models.py:22
↓ 2 callersMethod_new_init
(cls)
tianji/agents/metagpt_agents/utils/json_from.py:46
↓ 2 callersFunctiondownload_file
Downloads a file from the specified URL using the lux executable and optionally converts it to audio. Parameters: url (str): The URL of
tools/finetune/everything2data/bilibili2download/get_url2video.py:35
↓ 2 callersMethodembed_documents
(self, texts: List[str])
tianji/knowledges/langchain_onlinellm/models.py:142
↓ 2 callersMethodembed_documents
(self, texts: List[str])
tianji/knowledges/langchain_onlinellm/models.py:190
↓ 2 callersMethodembed_query
(self, text: str)
tianji/knowledges/langchain_onlinellm/models.py:186
↓ 2 callersFunctionget_answerBot_ans
(sharedData, add_chat_history=True)
test/agents/metagpt/searcher_test_case.py:114
↓ 2 callersMethodget_answerBot_ans
获取 AnswerBot 的回答。
test/agents/metagpt/unittest_searcher_test_case .py:107
↓ 2 callersMethodget_embedding
(self, text: Union[str, List[str]])
test/llm/embedding/test_local_llm.py:19
↓ 2 callersFunctionget_llm_response
(prompt, model_type="zhipu", debug=False)
tools/rag/1-get_rag_knowledges.py:59
↓ 2 callersFunctionhas_empty_values
(dict)
tianji/agents/metagpt_agents/utils/helper_func.py:63
↓ 2 callersFunctionis_number_in_types
(json_data, number)
tianji/agents/metagpt_agents/utils/helper_func.py:71
↓ 2 callersFunctionprocess_file
(file_path, model_type, debug=False)
tools/rag/1-get_rag_knowledges.py:121
↓ 2 callersFunctionprocess_file
(file_path, model_type)
tools/finetune/everything2data/video2json/4-fullmd2datajson.py:99
↓ 2 callersFunctionrun_async_code
(async_function, *args, **kwargs)
test/agents/metagpt/searcher_test_case.py:20
↓ 2 callersFunctionrun_async_code
执行异步函数并返回结果。
test/agents/metagpt/unittest_searcher_test_case .py:16
↓ 2 callersMethodshow_history_messages
显示聊天历史。
test/agents/metagpt/unittest_searcher_test_case .py:88
↓ 2 callersFunctionshow_one_message
(role, method="write", showdata="", is_add=False)
test/agents/metagpt/searcher_test_case.py:50
↓ 1 callersMethod__init__
(self)
tianji/knowledges/langchain_onlinellm/models.py:16
↓ 1 callersMethod_act
(self)
tianji/agents/metagpt_agents/sceneRefinement/role.py:33
↓ 1 callersMethod_call
Run the LLM on the given input.
tianji/knowledges/langchain_onlinellm/models.py:71
↓ 1 callersMethod_embed
(self, texts: str)
tianji/knowledges/langchain_onlinellm/models.py:122
↓ 1 callersMethod_embed
(self, texts: str)
tianji/knowledges/langchain_onlinellm/models.py:175
↓ 1 callersMethod_get_query_embedding
(self, query: str)
tianji/knowledges/llamaindex_onlinellm/models.py:165
↓ 1 callersMethod_get_query_embedding
(self, query: str)
tianji/knowledges/llamaindex_onlinellm/models.py:215
↓ 1 callersMethod_get_search_results
获取指定关键字和页码的搜索结果页面的HTML内容。 :param keyword: 搜索关键字 :param page: 页码 :return: 搜索结果页面的HTML内容
tools/finetune/everything2data/bilibili2download/get_bilibli_url.py:35
↓ 1 callersMethod_get_text_embedding
(self, text: str)
tianji/knowledges/llamaindex_onlinellm/models.py:172
↓ 1 callersMethod_get_text_embedding
(self, text: str)
tianji/knowledges/llamaindex_onlinellm/models.py:218
↓ 1 callersMethod_get_video_details
获取指定URL的视频详情页面的点击量信息。 :param url: 视频详情页面的URL :return: 点击量信息(如果存在)
tools/finetune/everything2data/bilibili2download/get_bilibli_url.py:66
↓ 1 callersMethod_parse_video_cards
解析搜索结果页面的HTML内容,提取视频卡片信息。 :param html_content: 搜索结果页面的HTML内容 :return: 包含视频卡片的列表
tools/finetune/everything2data/bilibili2download/get_bilibli_url.py:55
↓ 1 callersMethod_think
(self)
tianji/agents/metagpt_agents/sceneRefinement/role.py:48
↓ 1 callersFunctionadd_holiday_greetings_to_input
(json_file)
tools/finetune/datajson_refiner/rebuild_input.py:5
↓ 1 callersFunctioncall_with_messages
()
test/llm/chat/test_siliconflow.py:9
↓ 1 callersFunctioncall_with_messages
()
test/llm/chat/test_qwen.py:13
↓ 1 callersFunctioncall_with_messages
(message)
test/llm/chat/test_yiyan.py:32
↓ 1 callersFunctioncheck_internet_connection
(url='http://www.google.com/', timeout=5)
run/demo_rag_langchain_all.py:47
↓ 1 callersFunctioncheck_theme
(processor, summary, theme, debug=False)
tools/rag/0-data_llm_filter.py:106
↓ 1 callersFunctioncheck_theme
(processor, summary, theme, debug=False)
tools/rag/0-data_llm_filter_negative.py:87
↓ 1 callersFunctioncheck_theme
(processor, summary, theme, debug=False)
tools/finetune/everything2data/video2json/3-data_llm_filter.py:106
↓ 1 callersFunctionclean_short_len_data
(json_file)
tools/finetune/datajson_refiner/remove_shot_len.py:4
↓ 1 callersFunctioncombine_history
(prompt)
run/xlab/tianji_etiquette.py:208
↓ 1 callersFunctioncombine_history
(prompt)
run/xlab/tianji_wish.py:208
↓ 1 callersFunctioncombine_message_and_history
(message, chat_history)
run/demo_prompt.py:108
↓ 1 callersFunctionconvert_conversation_to_instruct
(input_path, output_path)
tianji/finetune/transformers/Qwen2_5/conversation2instruct_dataset.py:48
↓ 1 callersFunctionconvert_docs_to_txt
(source_folder, destination_folder)
tools/finetune/everything2data/everything2txt/doc2txt.py:19
↓ 1 callersFunctionconvert_to_audio
Converts a video file to an audio file using ffmpeg and deletes the original video file. Parameters: video_file (str): The path to the v
tools/finetune/everything2data/bilibili2download/get_url2video.py:123
↓ 1 callersFunctionconvert_to_txt
(file_path)
tools/finetune/everything2data/everything2txt/everything_to_txt.py:66
↓ 1 callersFunctioncount_chinese_chars
(text)
tools/rag/0-data_llm_filter_lesswords.py:8
↓ 1 callersFunctioncreate_embeddings
根据选择创建嵌入模型 :param embedding_choice: 嵌入模型选择 ('huggingface' 或 'zhipuai') :param cache_folder: 缓存文件夹路径 :return: 嵌入模型实例
run/demo_rag_langchain_onlinellm.py:22
↓ 1 callersFunctioncreate_vectordb
( folder_path: str, persist_directory: str, embedding_func: Embeddings, chunk_size: int, f
test/knowledges/langchain/test_build_vectordb.py:32
↓ 1 callersFunctioncreate_vectordb
创建或加载向量数据库 :param data_type: 数据类型 ('folder' 或 'web') :param data_path: 数据路径 :param persist_directory: 持久化目录 :param embedding_func
run/demo_rag_langchain_onlinellm.py:39
↓ 1 callersFunctioncreate_vectordb
( data_path: str, persist_directory: str, embedding_func, chunk_size: int, force: bool = F
run/demo_rag_langchain_etiquette.py:27
↓ 1 callersFunctioncreate_vectordb
( data_path: str, persist_directory: str, embedding_func, chunk_size: int, force: bool = F
run/demo_rag_langchain_all.py:74
↓ 1 callersFunctiondocx_to_txt
(docx_path)
tools/finetune/everything2data/everything2txt/everything_to_txt.py:93
↓ 1 callersFunctiondownload_from_csv
Downloads files from URLs listed in a CSV file using the lux executable. Parameters: csv_file (str): The path to the CSV file containing
tools/finetune/everything2data/bilibili2download/get_url2video.py:176
↓ 1 callersFunctiondownload_reranker_model
()
test/knowledges/llamaindex/test_RAG_zhipuai_advanced.py:51
↓ 1 callersFunctionepub_to_txt
(epub_path)
tools/finetune/everything2data/everything2txt/everything_to_txt.py:99
↓ 1 callersFunctionexecute_command
()
tools/finetune/everything2data/bilibili2download/get_url2video.py:74
↓ 1 callersFunctionextract_all_types_and_examples
(json_data)
tianji/agents/metagpt_agents/utils/helper_func.py:47
↓ 1 callersFunctionextract_and_merge_conversations
(folder_path, output_file)
tools/finetune/data_maker/merge_data_json.py:18
↓ 1 callersFunctionextract_clean_text
(file_path)
tools/finetune/everything2data/video2json/2-timemd2fullmd.py:19
↓ 1 callersFunctionfb2_to_txt
(fb2_path)
tools/finetune/everything2data/everything2txt/everything_to_txt.py:122
↓ 1 callersFunctionfind_best_k
使用轮廓系数选择最佳的聚类数 k
tools/rag/2-jsonknowledges_kmeans.py:25
↓ 1 callersFunctionfind_first_heading
(md_file_path)
tools/prompt_maker/prompt_to_json_in_bulk.py:167
↓ 1 callersFunctionfind_first_heading
(md_file_path)
tools/prompt_maker/prompt_to_json.py:168
↓ 1 callersMethodflip
切换 answerBot 的启用状态。
test/agents/metagpt/unittest_searcher_test_case .py:70
↓ 1 callersFunctionformatBytes
(bytes)
tools/rag/article2chunk..js:121
↓ 1 callersMethodgenerate_forms_with_default_input
生成输入框和多选框,并使用默认输入。
test/agents/metagpt/unittest_searcher_test_case .py:140
↓ 1 callersFunctiongenerate_interactive
( model, tokenizer, prompt, generation_config: Optional[GenerationConfig] = None, logits_p
run/xlab/tianji_etiquette.py:43
↓ 1 callersFunctiongenerate_interactive
( model, tokenizer, prompt, generation_config: Optional[GenerationConfig] = None, logits_p
run/xlab/tianji_wish.py:43
↓ 1 callersFunctiongenerate_response
(prompt)
test/prompt/webui_test/streamlit_test.py:10
↓ 1 callersFunctionget_answerBot_ans
(sharedData)
test/agents/metagpt/answerBot_test_case.py:95
↓ 1 callersFunctionget_chunks_from_db
( query_str: str, persist_directory: str, embedding_func: Embeddings, k_num: int )
test/knowledges/langchain/test_build_vectordb.py:24
↓ 1 callersFunctionget_completion
prompt: 对应的提示词 model: 调用的模型,默认为 glm-4-flash
tools/prompt_maker/web_demo.py:17
↓ 1 callersFunctionget_data_ds
(content, model_type="zhipu")
tools/finetune/everything2data/video2json/4-fullmd2datajson.py:39
↓ 1 callersFunctionget_data_ds
(content)
tools/finetune/data_maker/get_wish_datav1.py:42
↓ 1 callersFunctionget_data_openai
(content)
tools/finetune/data_maker/get_wish_datav2.py:30
next →1–100 of 293, ranked by callers