├── .gitignore ├── CyberFriend_LLM_core ├── ChromaRag.py ├── api_server.py ├── download.py ├── finetune │ ├── configs │ │ ├── ds_zero_2.json │ │ ├── ds_zero_3.json │ │ ├── lora.yaml │ │ ├── ptuning_v2.yaml │ │ └── sft.yaml │ ├── finetune_hf.py │ └── requirement.txt ├── requirements.txt └── utils.py ├── CyberFriend_bot_plugin ├── .env.prod ├── GetPathUtil.py ├── common │ ├── CustomChecker.py │ ├── MembersOptUtil.py │ ├── MessageBuilder.py │ └── __init__.py ├── plugins │ ├── __init__.py │ ├── add_image_to_db │ │ ├── __init__.py │ │ └── config.py │ ├── cyber_friend │ │ ├── __init__.py │ │ ├── config.py │ │ ├── prompt.txt │ │ └── utils.py │ ├── group_handle │ │ ├── __init__.py │ │ └── config.py │ ├── member_join │ │ ├── __init__.py │ │ └── config.py │ ├── member_leave │ │ ├── __init__.py │ │ └── config.py │ ├── message_record │ │ ├── ImageUtil.py │ │ ├── __init__.py │ │ ├── config.py │ │ ├── get_record.py │ │ └── util.py │ ├── scheduler │ │ ├── __init__.py │ │ └── config.py │ └── update_members │ │ ├── MembersUtil.py │ │ ├── __init__.py │ │ └── config.py ├── pyproject.toml ├── record_data │ ├── create_dataset.py │ ├── get_records.py │ └── query_number.py └── requirements.txt ├── LICENSE ├── finetune_and_restart.sh ├── readme.md ├── resources ├── code_structure.md └── proj_structure.png └── run.sh /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holk-h/CyberFriend/HEAD/.gitignore -------------------------------------------------------------------------------- /CyberFriend_LLM_core/ChromaRag.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holk-h/CyberFriend/HEAD/CyberFriend_LLM_core/ChromaRag.py -------------------------------------------------------------------------------- /CyberFriend_LLM_core/api_server.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holk-h/CyberFriend/HEAD/CyberFriend_LLM_core/api_server.py -------------------------------------------------------------------------------- /CyberFriend_LLM_core/download.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holk-h/CyberFriend/HEAD/CyberFriend_LLM_core/download.py -------------------------------------------------------------------------------- /CyberFriend_LLM_core/finetune/configs/ds_zero_2.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holk-h/CyberFriend/HEAD/CyberFriend_LLM_core/finetune/configs/ds_zero_2.json -------------------------------------------------------------------------------- /CyberFriend_LLM_core/finetune/configs/ds_zero_3.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holk-h/CyberFriend/HEAD/CyberFriend_LLM_core/finetune/configs/ds_zero_3.json -------------------------------------------------------------------------------- /CyberFriend_LLM_core/finetune/configs/lora.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holk-h/CyberFriend/HEAD/CyberFriend_LLM_core/finetune/configs/lora.yaml -------------------------------------------------------------------------------- /CyberFriend_LLM_core/finetune/configs/ptuning_v2.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holk-h/CyberFriend/HEAD/CyberFriend_LLM_core/finetune/configs/ptuning_v2.yaml -------------------------------------------------------------------------------- /CyberFriend_LLM_core/finetune/configs/sft.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holk-h/CyberFriend/HEAD/CyberFriend_LLM_core/finetune/configs/sft.yaml -------------------------------------------------------------------------------- /CyberFriend_LLM_core/finetune/finetune_hf.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holk-h/CyberFriend/HEAD/CyberFriend_LLM_core/finetune/finetune_hf.py -------------------------------------------------------------------------------- /CyberFriend_LLM_core/finetune/requirement.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holk-h/CyberFriend/HEAD/CyberFriend_LLM_core/finetune/requirement.txt -------------------------------------------------------------------------------- /CyberFriend_LLM_core/requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holk-h/CyberFriend/HEAD/CyberFriend_LLM_core/requirements.txt -------------------------------------------------------------------------------- /CyberFriend_LLM_core/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holk-h/CyberFriend/HEAD/CyberFriend_LLM_core/utils.py -------------------------------------------------------------------------------- /CyberFriend_bot_plugin/.env.prod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holk-h/CyberFriend/HEAD/CyberFriend_bot_plugin/.env.prod -------------------------------------------------------------------------------- /CyberFriend_bot_plugin/GetPathUtil.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holk-h/CyberFriend/HEAD/CyberFriend_bot_plugin/GetPathUtil.py -------------------------------------------------------------------------------- /CyberFriend_bot_plugin/common/CustomChecker.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holk-h/CyberFriend/HEAD/CyberFriend_bot_plugin/common/CustomChecker.py -------------------------------------------------------------------------------- /CyberFriend_bot_plugin/common/MembersOptUtil.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holk-h/CyberFriend/HEAD/CyberFriend_bot_plugin/common/MembersOptUtil.py -------------------------------------------------------------------------------- /CyberFriend_bot_plugin/common/MessageBuilder.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holk-h/CyberFriend/HEAD/CyberFriend_bot_plugin/common/MessageBuilder.py -------------------------------------------------------------------------------- /CyberFriend_bot_plugin/common/__init__.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | -------------------------------------------------------------------------------- /CyberFriend_bot_plugin/plugins/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /CyberFriend_bot_plugin/plugins/add_image_to_db/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holk-h/CyberFriend/HEAD/CyberFriend_bot_plugin/plugins/add_image_to_db/__init__.py -------------------------------------------------------------------------------- /CyberFriend_bot_plugin/plugins/add_image_to_db/config.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holk-h/CyberFriend/HEAD/CyberFriend_bot_plugin/plugins/add_image_to_db/config.py -------------------------------------------------------------------------------- /CyberFriend_bot_plugin/plugins/cyber_friend/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holk-h/CyberFriend/HEAD/CyberFriend_bot_plugin/plugins/cyber_friend/__init__.py -------------------------------------------------------------------------------- /CyberFriend_bot_plugin/plugins/cyber_friend/config.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holk-h/CyberFriend/HEAD/CyberFriend_bot_plugin/plugins/cyber_friend/config.py -------------------------------------------------------------------------------- /CyberFriend_bot_plugin/plugins/cyber_friend/prompt.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holk-h/CyberFriend/HEAD/CyberFriend_bot_plugin/plugins/cyber_friend/prompt.txt -------------------------------------------------------------------------------- /CyberFriend_bot_plugin/plugins/cyber_friend/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holk-h/CyberFriend/HEAD/CyberFriend_bot_plugin/plugins/cyber_friend/utils.py -------------------------------------------------------------------------------- /CyberFriend_bot_plugin/plugins/group_handle/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holk-h/CyberFriend/HEAD/CyberFriend_bot_plugin/plugins/group_handle/__init__.py -------------------------------------------------------------------------------- /CyberFriend_bot_plugin/plugins/group_handle/config.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holk-h/CyberFriend/HEAD/CyberFriend_bot_plugin/plugins/group_handle/config.py -------------------------------------------------------------------------------- /CyberFriend_bot_plugin/plugins/member_join/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holk-h/CyberFriend/HEAD/CyberFriend_bot_plugin/plugins/member_join/__init__.py -------------------------------------------------------------------------------- /CyberFriend_bot_plugin/plugins/member_join/config.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holk-h/CyberFriend/HEAD/CyberFriend_bot_plugin/plugins/member_join/config.py -------------------------------------------------------------------------------- /CyberFriend_bot_plugin/plugins/member_leave/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holk-h/CyberFriend/HEAD/CyberFriend_bot_plugin/plugins/member_leave/__init__.py -------------------------------------------------------------------------------- /CyberFriend_bot_plugin/plugins/member_leave/config.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holk-h/CyberFriend/HEAD/CyberFriend_bot_plugin/plugins/member_leave/config.py -------------------------------------------------------------------------------- /CyberFriend_bot_plugin/plugins/message_record/ImageUtil.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holk-h/CyberFriend/HEAD/CyberFriend_bot_plugin/plugins/message_record/ImageUtil.py -------------------------------------------------------------------------------- /CyberFriend_bot_plugin/plugins/message_record/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holk-h/CyberFriend/HEAD/CyberFriend_bot_plugin/plugins/message_record/__init__.py -------------------------------------------------------------------------------- /CyberFriend_bot_plugin/plugins/message_record/config.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holk-h/CyberFriend/HEAD/CyberFriend_bot_plugin/plugins/message_record/config.py -------------------------------------------------------------------------------- /CyberFriend_bot_plugin/plugins/message_record/get_record.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holk-h/CyberFriend/HEAD/CyberFriend_bot_plugin/plugins/message_record/get_record.py -------------------------------------------------------------------------------- /CyberFriend_bot_plugin/plugins/message_record/util.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holk-h/CyberFriend/HEAD/CyberFriend_bot_plugin/plugins/message_record/util.py -------------------------------------------------------------------------------- /CyberFriend_bot_plugin/plugins/scheduler/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holk-h/CyberFriend/HEAD/CyberFriend_bot_plugin/plugins/scheduler/__init__.py -------------------------------------------------------------------------------- /CyberFriend_bot_plugin/plugins/scheduler/config.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holk-h/CyberFriend/HEAD/CyberFriend_bot_plugin/plugins/scheduler/config.py -------------------------------------------------------------------------------- /CyberFriend_bot_plugin/plugins/update_members/MembersUtil.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holk-h/CyberFriend/HEAD/CyberFriend_bot_plugin/plugins/update_members/MembersUtil.py -------------------------------------------------------------------------------- /CyberFriend_bot_plugin/plugins/update_members/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holk-h/CyberFriend/HEAD/CyberFriend_bot_plugin/plugins/update_members/__init__.py -------------------------------------------------------------------------------- /CyberFriend_bot_plugin/plugins/update_members/config.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holk-h/CyberFriend/HEAD/CyberFriend_bot_plugin/plugins/update_members/config.py -------------------------------------------------------------------------------- /CyberFriend_bot_plugin/pyproject.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holk-h/CyberFriend/HEAD/CyberFriend_bot_plugin/pyproject.toml -------------------------------------------------------------------------------- /CyberFriend_bot_plugin/record_data/create_dataset.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holk-h/CyberFriend/HEAD/CyberFriend_bot_plugin/record_data/create_dataset.py -------------------------------------------------------------------------------- /CyberFriend_bot_plugin/record_data/get_records.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holk-h/CyberFriend/HEAD/CyberFriend_bot_plugin/record_data/get_records.py -------------------------------------------------------------------------------- /CyberFriend_bot_plugin/record_data/query_number.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holk-h/CyberFriend/HEAD/CyberFriend_bot_plugin/record_data/query_number.py -------------------------------------------------------------------------------- /CyberFriend_bot_plugin/requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holk-h/CyberFriend/HEAD/CyberFriend_bot_plugin/requirements.txt -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holk-h/CyberFriend/HEAD/LICENSE -------------------------------------------------------------------------------- /finetune_and_restart.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holk-h/CyberFriend/HEAD/finetune_and_restart.sh -------------------------------------------------------------------------------- /readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holk-h/CyberFriend/HEAD/readme.md -------------------------------------------------------------------------------- /resources/code_structure.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holk-h/CyberFriend/HEAD/resources/code_structure.md -------------------------------------------------------------------------------- /resources/proj_structure.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holk-h/CyberFriend/HEAD/resources/proj_structure.png -------------------------------------------------------------------------------- /run.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holk-h/CyberFriend/HEAD/run.sh --------------------------------------------------------------------------------