Commit 2f250e63 by 陈正乐

容器配置修改

parent 09208038
# ============================= # =============================
# 资料存储数据库配置 # 资料存储数据库配置
# ============================= # =============================
VEC_DB_HOST = 'localhost' VEC_DB_HOST = '192.168.10.93'
VEC_DB_DBNAME = 'lae' VEC_DB_DBNAME = 'lae'
VEC_DB_USER = 'postgres' VEC_DB_USER = 'postgres'
VEC_DB_PASSWORD = 'chenzl' VEC_DB_PASSWORD = '111111'
VEC_DB_PORT = '5432' VEC_DB_PORT = '5433'
# ============================= # =============================
# 聊天相关数据库配置 # 聊天相关数据库配置
# ============================= # =============================
CHAT_DB_HOST = 'localhost' CHAT_DB_HOST = '192.168.10.93'
CHAT_DB_DBNAME = 'laechat' CHAT_DB_DBNAME = 'lae_chat'
CHAT_DB_USER = 'postgres' CHAT_DB_USER = 'postgres'
CHAT_DB_PASSWORD = 'chenzl' CHAT_DB_PASSWORD = '111111'
CHAT_DB_PORT = '5432' CHAT_DB_PORT = '5433'
# ============================= # =============================
# 向量化模型路径配置 # 向量化模型路径配置
# ============================= # =============================
EMBEEDING_MODEL_PATH = 'C:\\Users\\15663\\AI\\models\\bge-large-zh-v1.5' EMBEEDING_MODEL_PATH = '/app/bge-large-zh-v1.5'
# ============================= # =============================
# 模型服务URL配置 # 模型服务URL配置
...@@ -35,19 +35,19 @@ SIMILARITY_THRESHOLD = 0.8 ...@@ -35,19 +35,19 @@ SIMILARITY_THRESHOLD = 0.8
# ============================= # =============================
# FAISS向量库文件存储路径配置 # FAISS向量库文件存储路径配置
# ============================= # =============================
FAISS_STORE_PATH = 'C:\\Users\\15663\\code\\dkjj-llm\\LAE\\faiss' FAISS_STORE_PATH = '/app/faiss'
INDEX_NAME = 'know' INDEX_NAME = 'know'
# ============================= # =============================
# 知识相关资料配置 # 知识相关资料配置
# ============================= # =============================
KNOWLEDGE_PATH = 'C:\\Users\\15663\\Desktop\\低空经济数据库' KNOWLEDGE_PATH = '/app/lae_data'
# ============================= # =============================
# gradio服务相关配置 # gradio服务相关配置
# ============================= # =============================
GR_SERVER_NAME = 'localhost' GR_SERVER_NAME = 'localhost'
GR_PORT = 8888 GR_PORT = 8003
# ============================= # =============================
# prompt 配置 # prompt 配置
...@@ -66,4 +66,4 @@ NLP_BERT_PATH = 'C:\\Users\\15663\\AI\\models\\nlp_bert_document-segmentation_ch ...@@ -66,4 +66,4 @@ NLP_BERT_PATH = 'C:\\Users\\15663\\AI\\models\\nlp_bert_document-segmentation_ch
# ============================= # =============================
# ICON配置 # ICON配置
# ============================= # =============================
ICON_PATH = 'C:\\Users\\15663\\code\\dkjj-llm\\LAE\\LAE\\test\\icon' ICON_PATH = '/app/test/icon'
\ No newline at end of file
import sys
sys.path.append('../')
from src.pgdb.chat.c_db import UPostgresDB from src.pgdb.chat.c_db import UPostgresDB
from src.pgdb.chat.crud import CRUD from src.pgdb.chat.crud import CRUD
from src.config.consts import ( from src.config.consts import (
......
import sys import sys
sys.path.append('../')
from src.loader.load import loads_path from src.loader.load import loads_path
from src.pgdb.knowledge.similarity import VectorStore_FAISS from src.pgdb.knowledge.similarity import VectorStore_FAISS
from src.config.consts import ( from src.config.consts import (
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment