From 4c5fc6ab0161fa255fa15c403371e65b12829ee5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=94=90=E5=9B=BD=E6=A2=81?= Date: Thu, 14 Sep 2023 12:38:37 +0800 Subject: [PATCH] edit model_config.py.example --- .gitignore | 5 ++++- configs/model_config.py.example | 9 ++++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index f5bd3e4..5475aab 100644 --- a/.gitignore +++ b/.gitignore @@ -6,4 +6,7 @@ __pycache__/ /knowledge_base/ /configs/*.py .vscode/ -.pytest_cache/ +.pytest_cache +.DS_Store + + diff --git a/configs/model_config.py.example b/configs/model_config.py.example index 39c51ca..e59d0af 100644 --- a/configs/model_config.py.example +++ b/configs/model_config.py.example @@ -123,7 +123,14 @@ kbs_config = { }, "pg": { "connection_uri": "postgresql://postgres:postgres@127.0.0.1:5432/langchain_chatchat", - } + }, + "es": { + "host": "127.0.0.1", + "port": "9200", + "index_name": "test_index", + "user": "", + "password": "" + } } # 默认向量库类型。可选:faiss, milvus, pg.