Skip to content

Commit

Permalink
fix: update text
Browse files Browse the repository at this point in the history
Using ULLM toreplace UOS AI Large Model.

Log:

Bug: bug#300257
  • Loading branch information
Clauszy committed Jan 14, 2025
1 parent 5c29d2b commit 800c824
Show file tree
Hide file tree
Showing 6 changed files with 320 additions and 68 deletions.
6 changes: 3 additions & 3 deletions src/grand-search/gui/exhibition/matchresult/groupwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -250,8 +250,8 @@ void GroupWidget::showLabel(bool bShow)

const QColor &color = DApplicationHelper::instance()->palette(m_resultLabel).color(DPalette::Normal, DPalette::Highlight);
if (!hasIdx && !isUpdateIdx && !hasModel) {
// 请先前往搜索配置安装UOS AI大模型,并开启自动更新索引 Please go to Search configration to install the UOS AI large model, and turn on Automatic index update.
m_resultLabel->setText(tr("Please go to %1 to install the UOS AI large model, and %2 Automatic index update.")
// 请先前往搜索配置安装UOS AI大模型,并开启自动更新索引 Please go to Search configration to install the ULLM, and turn on Automatic index update.
m_resultLabel->setText(tr("Please go to %1 to install the ULLM, and %2 Automatic index update.")
.arg(QString("<a href=\"config\" style=\"color:%1; text-decoration: none;\">%2</a>").arg(color.name()).arg(tr("Search configration")))
.arg(QString("<a href=\"update index\" style=\"color:%1; text-decoration: none;\">%2</a>").arg(color.name()).arg(tr("turn on"))));
} else if (!hasIdx && !isUpdateIdx) {
Expand All @@ -260,7 +260,7 @@ void GroupWidget::showLabel(bool bShow)
.arg(QString("<a href=\"update index\" style=\"color:%1; text-decoration: none;\">%2</a>").arg(color.name()).arg(tr("turn on"))));
} else if (!hasModel) {
// 请先前往搜索配置安装UOS AI大模型 Please go to Search configration to install the UOS AI large model.
m_resultLabel->setText(tr("Please go to %1 to install the UOS AI large model.")
m_resultLabel->setText(tr("Please go to %1 to install the ULLM.")
.arg(QString("<a href=\"config\" style=\"color:%1; text-decoration: none;\">%2</a>").arg(color.name()).arg(tr("Search configration"))));
} else {
m_resultLabel->setText(tr("No search results"));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ IntelligentRetrievalWidget::IntelligentRetrievalWidget(QWidget *parent)
bkg->setLayout(vl);
vl->setContentsMargins(0, 2, 0, 5);
m_llmWidget = new LLMWidget(bkg);
m_llmWidget->setText(tr("UOS AI LLM"),tr("After installing the UOS AI large model, you can use the AI intelligent search function without an internet connection."));
m_llmWidget->setText(tr("ULLM"),tr("After installing the ULLM, you can use the AI intelligent search function without an internet connection."));
m_llmWidget->checkInstallStatus();
vl->addWidget(m_llmWidget);
m_indexLayout->addSpacing(10);
Expand Down Expand Up @@ -326,7 +326,7 @@ void IntelligentRetrievalWidget::checkChanged()
warningDlg.setWindowFlags((warningDlg.windowFlags() | Qt::WindowType::WindowStaysOnTopHint));
warningDlg.setFixedWidth(380);
warningDlg.setIcon(QIcon(":icons/dde-grand-search-setting.svg"));
warningDlg.setMessage(QString(tr("To use AI Smart Search, you need to install the Embedding Plugins and UOS AI LLM first.")));
warningDlg.setMessage(QString(tr("To use AI Smart Search, you need to install the Embedding Plugins and ULLM first.")));
warningDlg.addButton(tr("OK"), true, DDialog::ButtonNormal);
warningDlg.moveToCenter();
warningDlg.exec();
Expand Down
2 changes: 1 addition & 1 deletion src/grand-search/gui/searchconfig/llmwidget/llmwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ bool LLMWidget::onCloseEvent()
DDialog dlg(this);
dlg.setIcon(QIcon(":icons/dde-grand-search-setting.svg"));
dlg.setMaximumWidth(380);
dlg.setTitle(tr("Installing the UOS AI Large Language Model"));
dlg.setTitle(tr("Installing the ULLM"));
dlg.setMessage(tr("Exiting will cause the installation to fail, do you still want to exit?"));
dlg.addButton(tr("Exit", "button"), false, DDialog::ButtonNormal);
dlg.addButton(tr("Continue", "button"), true, DDialog::ButtonRecommend);
Expand Down
1 change: 0 additions & 1 deletion src/tools/semanticparser/semanticparser.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ class SemanticParser : public QObject
~SemanticParser();
bool connectToVector(const QString &service);
bool connectToQueryLang(const QString &service);
QString analyze(const QString &text);
QString vectorSearch(const QString &prompt);
QString query(const QString &text);
bool isVectorSupported();
Expand Down
Loading

0 comments on commit 800c824

Please sign in to comment.