Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
LAE
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
文靖昊
LAE
Commits
2f250e63
Commit
2f250e63
authored
Jun 04, 2024
by
陈正乐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
容器配置修改
parent
09208038
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
13 deletions
+16
-13
consts.py
src/config/consts.py
+13
-12
chat_table_test.py
test/chat_table_test.py
+2
-0
k_store_test.py
test/k_store_test.py
+1
-1
No files found.
src/config/consts.py
View file @
2f250e63
# =============================
# 资料存储数据库配置
# =============================
VEC_DB_HOST
=
'
localhost
'
VEC_DB_HOST
=
'
192.168.10.93
'
VEC_DB_DBNAME
=
'lae'
VEC_DB_USER
=
'postgres'
VEC_DB_PASSWORD
=
'
chenzl
'
VEC_DB_PORT
=
'543
2
'
VEC_DB_PASSWORD
=
'
111111
'
VEC_DB_PORT
=
'543
3
'
# =============================
# 聊天相关数据库配置
# =============================
CHAT_DB_HOST
=
'
localhost
'
CHAT_DB_DBNAME
=
'laechat'
CHAT_DB_HOST
=
'
192.168.10.93
'
CHAT_DB_DBNAME
=
'lae
_
chat'
CHAT_DB_USER
=
'postgres'
CHAT_DB_PASSWORD
=
'
chenzl
'
CHAT_DB_PORT
=
'543
2
'
CHAT_DB_PASSWORD
=
'
111111
'
CHAT_DB_PORT
=
'543
3
'
# =============================
# 向量化模型路径配置
# =============================
EMBEEDING_MODEL_PATH
=
'
C:
\\
Users
\\
15663
\\
AI
\\
models
\\
bge-large-zh-v1.5'
EMBEEDING_MODEL_PATH
=
'
/app/
bge-large-zh-v1.5'
# =============================
# 模型服务URL配置
...
...
@@ -35,19 +35,19 @@ SIMILARITY_THRESHOLD = 0.8
# =============================
# FAISS向量库文件存储路径配置
# =============================
FAISS_STORE_PATH
=
'
C:
\\
Users
\\
15663
\\
code
\\
dkjj-llm
\\
LAE
\\
faiss'
FAISS_STORE_PATH
=
'
/app/
faiss'
INDEX_NAME
=
'know'
# =============================
# 知识相关资料配置
# =============================
KNOWLEDGE_PATH
=
'
C:
\\
Users
\\
15663
\\
Desktop
\\
低空经济数据库
'
KNOWLEDGE_PATH
=
'
/app/lae_data
'
# =============================
# gradio服务相关配置
# =============================
GR_SERVER_NAME
=
'localhost'
GR_PORT
=
8
888
GR_PORT
=
8
003
# =============================
# prompt 配置
...
...
@@ -66,4 +66,4 @@ NLP_BERT_PATH = 'C:\\Users\\15663\\AI\\models\\nlp_bert_document-segmentation_ch
# =============================
# ICON配置
# =============================
ICON_PATH
=
'
C:
\\
Users
\\
15663
\\
code
\\
dkjj-llm
\\
LAE
\\
LAE
\\
test
\\
icon'
ICON_PATH
=
'
/app/test/
icon'
\ No newline at end of file
test/chat_table_test.py
View file @
2f250e63
import
sys
sys
.
path
.
append
(
'../'
)
from
src.pgdb.chat.c_db
import
UPostgresDB
from
src.pgdb.chat.crud
import
CRUD
from
src.config.consts
import
(
...
...
test/k_store_test.py
View file @
2f250e63
import
sys
sys
.
path
.
append
(
'../'
)
from
src.loader.load
import
loads_path
from
src.pgdb.knowledge.similarity
import
VectorStore_FAISS
from
src.config.consts
import
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment