Public Slots | |
| virtual void | slotCancel () |
| virtual void | slotRunInference (const QString &prompt)=0 |
| Run inference asynchronously. | |
Public Member Functions | |
| SearchLanguageBackend (QObject *const parent=nullptr) | |
| virtual QString | backendName () const =0 |
| Human-readable backend identifier ("llama.cpp", "onnx", "mock"). | |
| virtual bool | isModelLoaded () const =0 |
| virtual bool | loadModel (const QString &modelPath)=0 |
| Load the model from a local path (resolved by SearchNlModelManager). | |
| virtual QString | modelPath () const =0 |
| virtual void | unloadModel ()=0 |
|
pure virtual |
Implemented in Digikam::SearchLlamaBackend, and Digikam::SearchMockBackend.
|
pure virtual |
Implementations should perform heavy loading off the GUI thread and report completion through signalModelLoaded(). Returns false immediately if the path is invalid.
Implemented in Digikam::SearchLlamaBackend, and Digikam::SearchMockBackend.
|
pure virtualslot |
Result is delivered via signalRawOutputReady() or signalInferenceError(). Implementations must be safe to call from the GUI thread and must not block it.