| 76 | } |
| 77 | |
| 78 | void ChatReceiver::processOpenProjectEvent(const dpf::Event &event) |
| 79 | { |
| 80 | QtConcurrent::run([=](){ |
| 81 | auto projectPath = event.property("workspace").toString(); |
| 82 | QJsonObject results = ChatManager::instance()->query(projectPath, "", 1); |
| 83 | if (results["Chunks"].toArray().size() != 0) // project has generated, update it |
| 84 | ChatManager::instance()->generateRag(projectPath); |
| 85 | }); |
| 86 | } |
| 87 | |
| 88 | void ChatReceiver::processSwitchToWidget(const dpf::Event &event) |
| 89 | { |