# The Llama Cloud API key. # LLAMA_CLOUD_API_KEY= SQL_DATABASE_URL=mysql+pymysql://zjinfo1:Dy2Bcr53Hm5xRkba@110.42.234.166:3306/zjinfo1 #SQL_DATABASE_URL=mysql+pymysql://zjinfo2:GSKcziSdBixDXwcd@110.42.234.166:3306/zjinfo2 SQLITE_DATABASE_URL=sqlite:///./source.db # The number of similar embeddings to return when retrieving documents. TOP_K=10 #-------------------------- # 是否启用混合检索 HYBRID_ENABLED = true # 混合检索阈值 HYBRID_ALPHA = 0.6 # 是否启用检索重排功能 RERANK_ENABLED=true #---------- rerank- Xinference ---------------- #RERANK_PROVIDER=xinference #RERANK_MODEL=bge-reranker-v2-m3 #RERANK_BASE_URL=http://10.1.16.39:9995 #RERANK_TOP_N=5 #RERANK_THRESHOLD=0.3 #---------- rerank- ollama ---------------- RERANK_PROVIDER=ollama RERANK_MODEL= /models/bge-reranker-base RERANK_TOP_N=5 RERANK_THRESHOLD=0.3 #---------- model - Xinference ---------------- #MODEL_PROVIDER=xinference #OPENAI_API_KEY=xinference #BASE_URL=http://172.20.0.145:9995 #MODEL=Qwen2-72B-Instruct-GPTQ-Int8 ## Temperature for sampling from the model. #LLM_TEMPERATURE=0.1 #---------- model - dashscope ---------------- MODEL_PROVIDER=dashscope DASHSCOPE_API_KEY=sk-221d2d202e104618a56002ce2e7dc0d0 MODEL=qwen2-math-72b-instruct # #---------- model - openai ---------------- MODEL_PROVIDER=openai OPENAI_API_KEY= BASE_URL=https://api.siliconflow.cn/v1 MODEL=alibaba/Qwen1.5-110B-Chat LLM_TEMPERATURE=0.1 CONTEXT_WINDOW = 8192 IS_CHAT_MODEL = true IS_FUN_CALL_MODEL = false #---------- embedding - openai ---------------- EMBEDDING_PROVIDER=openai OPENAI_API_KEY= EMBEDDING_MODEL=BAAI/bge-m3 EMBEDDING_BASE_URL=https://api.siliconflow.cn/v1 EMBEDDING_DIM=1024 RERANK_PROVIDER=openai OPENAI_API_KEY=sk-hhoqttvhibirwheyponjifsqwssgxotoqlcjufkidytwxngi RERANK_MODEL=BAAI/bge-reranker-v2-m3 RERANK_BASE_URL=https://api.siliconflow.cn/v1 RERANK_TOP_N=5 #---------- embedding - Xinference ---------------- #EMBEDDING_PROVIDER=xinference #EMBEDDING_MODEL=bge-m3 #EMBEDDING_BASE_URL=http://10.1.16.39:9995 #EMBEDDING_DIM=1024 ---------- embedding - dashscope ---------------- EMBEDDING_PROVIDER=dashscope EMBEDDING_MODEL=text-embedding-v1 # The questions to help users get started (multi-line). CONVERSATION_STARTERS=本工程指什么?\n总算表有哪些费用?\n项目划分哪些内容构成?\n其他费用表有哪些内容? # The time in milliseconds to wait for the stream to return a response. STREAM_TIMEOUT=60000 # 向量存储数据库类型,目前可选:chroma、qdrant VECTOR_STORE_TYPE=chroma # The name of the collection in your vector database VECTOR_STORE_COLLECTION=default #模型查询方式:graph、rag LLM_QUERY_WAY = graph #属性图存储类型:本地属性图库(默认),neo4j GRAPH_STORE_TYPE = #---------- neo4j - PropertyGraph ---------------- NEO4J_USERNAME = neo4j NEO4J_PASSWORD = neo4j NEO4J_URL = bolt://10.1.6.40:7687 # The API endpoint for your vector database # VECTOR_STORE_HOST= # The port for your vector database # VECTOR_STORE_PORT= # The local path to the vector database. # Specify this if you are using a local vector database. # Otherwise, use VECTOR_STORE__HOST and VECTOR_STORE__PORT config above VECTOR_STORE_PATH=./storage_vector BM_RETRIEVER_PATH =./storage_bm GRAPH_STORAGE_PATH =./storage_graph PHOENIX_API_KEY=123456 PHOENIX_URL=http://localhost:6006/v1/traces PHOENIX_PROJECT_NAME=ly_zjapp #OTEL_SERVICE_NAME=ly_zjapp #OTEL_RESOURCE_ATTRIBUTES=openinference.project.name=ly_zjapp # The address to start the backend app. APP_HOST=0.0.0.0 # The port to start the backend app. APP_PORT=8000 FILESERVER_URL_PREFIX=/api/files # E2B_API_KEY key is required to run code interpreter tool. Get it here: https://e2b.dev/docs/getting-started/api-key # E2B_API_KEY= # The system prompt for the AI model. SYSTEM_PROMPT="You are a weather forecast agent. You help users to get the weather forecast for a given location. -You are a Python interpreter that can run any python code in a secure environment. - The python code runs in a Jupyter notebook. Every time you call the 'interpreter' tool, the python code is executed in a separate cell. - You are given tasks to complete and you run python code to solve them. - It's okay to make multiple calls to interpreter tool. If you get an error or the result is not what you expected, you can call the tool again. Don't give up too soon! - Plot visualizations using matplotlib or any other visualization library directly in the notebook. - You can install any pip package (if it exists) by running a cell with pip install. " PRJTOJSON_URL = 'http://10.1.6.60:8092' PROJECT_TITLE = "您好,我是博微工程理解小助手,您可以问我有关[线路工程]工程数据的相关问题!" CHAT_UPLOAD_FILECACHE = "./output/uploaded" JIEBA_DATA=./nltk_data NLTK_DATA=./nltk_data #IO流默认的编码格式 PYTHONUTF8=1