mj_bale_chat/core/static.py
2025-12-31 11:15:03 +00:00

27 lines
1.2 KiB
Python
Executable File
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

################# modularity
### import from external-package
# from fastapi import FastAPI, Request, HTTPException
# import requests, logging, asyncio, httpx, os, uuid, traceback, orjson, copy, uvicorn, time, re
# from dotenv import load_dotenv
# from pathlib import Path
# from time import sleep
# from enum import Enum
# from typing import Dict
# from utils.base_model import RuleRelation
#################################################
# پارامتر های کلی
#################################################
EFFORT = "low"
MAX_LIMIT_RAG = 100 # بیشینه تعدادی که rag برمی گرداند
STEP_RAG = 10 # مقداری که هر مرحله rag اضافه میکند با فشردن نمایش بیشتر more
TIME_OUT = 600 # هر درخواست با این مقدار time-out ارسال می شود
MAX_LEN = 4000 # کمی کمتر از حد پایه امن‌تر است برای بیشینه پیام در بله
QS_WEB_LINK = "https://majles.tavasi.ir/entity/detail/view/qsection/" # آدرس صفحه qs ها
QQ_WEB_LINK = (
"https://majles.tavasi.ir/entity/navigation/view/qasection/" # آدرس صفحه qq ها
)
REF_TEXT = "«منبع»" # برای نمایش منبع