chore(prep): shared groundwork for the Sprint-2 parallel batch
第二批(T6~T11)协调提交: - 迁移 0005:kb 七表(entity/relation/rule/chunk vector1024+tsv 生成列/ asset/color/gap),HNSW+GIN 索引,FK 级联 - ORM:七个 Kb* 模型(pgvector Vector/TSVECTOR/Computed) - 配置:检索与 embedding、华为 JWKS、短信全参数组 - 错误码:40110/40111/42910/42911/61000 - 骨架路由:kb.py + auth_sms.py(已注册);依赖:tencentcloud-sdk-python-sms + spike extra(onnxruntime/opencv);gitignore:models/ 与 spike 输出
This commit is contained in:
@@ -112,3 +112,34 @@ COS_PRESIGN_EXPIRE_SECONDS=600
|
||||
UPLOAD_MAX_BYTES=20971520
|
||||
UPLOAD_ALLOWED_TYPES=image/jpeg,image/png,image/webp
|
||||
UPLOAD_SCENES_JSON={"report_photo":{"bucket":"temp"},"avatar":{"bucket":"temp"}}
|
||||
|
||||
# ── 知识库与检索(架构 §8.3,TD-08)────────────────────────────────────────
|
||||
# 当前 embedding 为确定性假实现(dev/test);真实 BGE-M3 ONNX 接入时只换这里。
|
||||
KB_VECTOR_DIMENSIONS=1024
|
||||
KB_EMBEDDING_MODEL=deterministic-v1
|
||||
KB_EMBEDDING_DEVICE=cpu
|
||||
RETRIEVAL_TOP_K=50
|
||||
RETRIEVAL_RERANK_WEIGHTS_JSON={"vector":0.45,"keyword":0.2,"rule":0.25,"freshness":0.1}
|
||||
|
||||
# ── 华为账号登录(FR-ACC-01;真实联调待 AGC 配置,见《前置开通清单》§3)────
|
||||
HUAWEI_JWKS_URL=https://oauth-login.cloud.huawei.com/oauth2/v3/certs
|
||||
HUAWEI_AUDIENCE=
|
||||
HUAWEI_ISSUER=https://accounts.huawei.com
|
||||
HUAWEI_JWKS_CACHE_SECONDS=86400
|
||||
|
||||
# ── 手机号验证码登录(FR-ACC-04/14,TD-32)─────────────────────────────────
|
||||
# fake = 验证码打日志(dev);tencent = 真实发送(签名审核通过后切换并填下方凭证)
|
||||
SMS_PROVIDER=fake
|
||||
TENCENT_SMS_SECRET_ID=
|
||||
TENCENT_SMS_SECRET_KEY=
|
||||
TENCENT_SMS_SDK_APP_ID=
|
||||
TENCENT_SMS_SIGN_NAME=
|
||||
TENCENT_SMS_TEMPLATE_ID=
|
||||
SMS_CODE_TTL_SECONDS=300
|
||||
SMS_CODE_LENGTH=6
|
||||
SMS_VERIFY_MAX_ATTEMPTS=5
|
||||
SMS_RESEND_COOLDOWN_SECONDS=60
|
||||
SMS_HOURLY_LIMIT=5
|
||||
SMS_DAILY_LIMIT=10
|
||||
SMS_IP_DAILY_LIMIT=20
|
||||
SMS_DEVICE_DAILY_LIMIT=10
|
||||
|
||||
Reference in New Issue
Block a user