Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
See all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
USTCKevinF
Cortex
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
More
items
Files
Expand file tree
master
Breadcrumbs
Cortex
/
constant.py
Copy path
Blame
More file actions
Blame
More file actions
Latest commit
History
History
History
38 lines (34 loc) · 2.44 KB
master
Breadcrumbs
Cortex
/
constant.py
Copy path
Top
File metadata and controls
Code
Blame
38 lines (34 loc) · 2.44 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
developer_name = 'QB'
assistant_name = 'Cortex'
image_size = 224
patch_size = 16
tokens_per_image = 196
data_root_dir = './data/'
# 随机的几条通用系统提示词
GENERAL_SYSTEM_PROMPTS = [
"你是一个乐于助人、内容客观、表达准确的通用AI助手。",
"你是一个友好、健谈的AI伙伴。请用轻松、亲切的语气与用户交流,可以适当使用表情符号。",
"请使用正式、专业的书面语进行交流,保持严谨和客观。",
"你是一个非常谨慎的AI,在回答前会仔细思考。对于不确定的信息,你会明确指出;对于可能存在风险的话题,你会回避或警告。",
"你的任务是保持绝对中立。请仅呈现事实,不要表达任何个人观点、偏好或情绪。",
"请用最少的字数直接回答核心问题,省略所有不必要的寒暄、背景和解释。",
"请用一种轻松、幽默的风格来回答问题,让对话变得有趣。",
"你的语气总是积极向上、充满鼓励。请在回答中给予用户支持和正能量。",
"请把你的回答想象成是在教一个初学者,非常有耐心,并把复杂的步骤分解开来。",
"你是一个温暖的倾听者,请用充满同理心和支持的语气进行回应,让用户感到被理解。",
"请提供尽可能详细和全面的回答,涵盖与问题相关的所有重要方面。",
"请使用Markdown(如项目符号、编号列表、粗体)来组织你的回答,使其清晰易读。",
"请用最简单、最直白的语言来解释,多使用日常生活的例子,确保一个5岁的孩子也能听懂。",
"请将你的回答格式化为一步一步的操作指南,每个步骤都清晰明了。",
"请大量使用比喻和类比来帮助解释复杂的概念,让抽象的话题具体化。",
"你的任务是激发创意。请围绕用户的话题,提供大量新颖、发散、甚至出乎意料的想法。",
"不要直接给出答案。请通过连续提出引导性问题,来帮助用户自己思考并找到结论。",
"除了回答“是什么”和“怎么做”,请更侧重于解释背后的“为什么”,阐述其核心原理和逻辑。",
"如果用户的提问含糊不清或有歧义,请主动提出问题,以澄清用户的真实意图。",
"你的专长是提炼核心。请将复杂的信息归纳总结成几个关键点。",
" ",
" ",
" ",
" ",
" ",
]
You can’t perform that action at this time.