From f0fc85c34997877fd976ece59d5ec3d27bb79eb7 Mon Sep 17 00:00:00 2001 From: Yue Fei Date: Tue, 30 Jul 2024 14:51:37 +0800 Subject: [PATCH] Fix a few ui bugs (#133) --- src/pai_rag/app/web/tabs/vector_db_panel.py | 2 +- src/pai_rag/app/web/ui_constants.py | 2 +- src/pai_rag/app/web/view_model.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pai_rag/app/web/tabs/vector_db_panel.py b/src/pai_rag/app/web/tabs/vector_db_panel.py index e6cd5631..d8b77bf2 100644 --- a/src/pai_rag/app/web/tabs/vector_db_panel.py +++ b/src/pai_rag/app/web/tabs/vector_db_panel.py @@ -229,7 +229,7 @@ def create_vector_db_panel( label="UserName", elem_id="opensearch_username" ) opensearch_password = gr.Textbox( - label="Password", elem_id="opensearch_password" + label="Password", type="password", elem_id="opensearch_password" ) opensearch_table_name = gr.Textbox( label="TableName", elem_id="opensearch_table_name" diff --git a/src/pai_rag/app/web/ui_constants.py b/src/pai_rag/app/web/ui_constants.py index ebe4454c..1ff2fa66 100644 --- a/src/pai_rag/app/web/ui_constants.py +++ b/src/pai_rag/app/web/ui_constants.py @@ -14,7 +14,7 @@ # \N{fire} Chatbot with RAG on PAI ! ### \N{rocket} Build your own personalized knowledge base question-answering chatbot. - #### \N{fire} Platform: [PAI](https://help.aliyun.com/zh/pai) / [PAI-EAS](https://www.aliyun.com/product/bigdata/learn/eas) / [PAI-DSW](https://pai.console.aliyun.com/notebook)   \N{rocket} Supported VectorStores: [Milvus](https://www.aliyun.com/product/bigdata/emapreduce/milvus) / [Hologres](https://www.aliyun.com/product/bigdata/hologram) / [ElasticSearch](https://www.aliyun.com/product/bigdata/elasticsearch) / [AnalyticDB](https://www.aliyun.com/product/apsaradb/gpdb) / [FAISS](https://python.langchain.com/docs/integrations/vectorstores/faiss) + #### \N{fire} Platform: [PAI](https://help.aliyun.com/zh/pai) / [PAI-EAS](https://www.aliyun.com/product/bigdata/learn/eas) / [PAI-DSW](https://pai.console.aliyun.com/notebook)   \N{rocket} Supported VectorStores: [Milvus](https://www.aliyun.com/product/bigdata/emapreduce/milvus) / [Hologres](https://www.aliyun.com/product/bigdata/hologram) / [ElasticSearch](https://www.aliyun.com/product/bigdata/elasticsearch) / [AnalyticDB](https://www.aliyun.com/product/apsaradb/gpdb) / [FAISS](https://python.langchain.com/docs/integrations/vectorstores/faiss) / [OpenSearch](https://help.aliyun.com/zh/open-search/vector-search-edition/product-overview/) #### \N{fire} API Docs   \N{rocket} \N{fire} 欢迎加入【PAI】RAG答疑群 27370042974 """ diff --git a/src/pai_rag/app/web/view_model.py b/src/pai_rag/app/web/view_model.py index d349ed11..8868db96 100644 --- a/src/pai_rag/app/web/view_model.py +++ b/src/pai_rag/app/web/view_model.py @@ -91,7 +91,7 @@ class ViewModel(BaseModel): milvus_port: int = None milvus_user: str = None milvus_password: str = None - milvus_database: str = "pairag" + milvus_database: str = "default" milvus_collection_name: str = "pairagcollection" # open search