mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2025-09-07 11:30:05 +00:00
This completes the work of consolidating all settings that can be changed by the user on new settings object.
This commit is contained in:
@@ -10,8 +10,6 @@ class LocalDocs : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_PROPERTY(LocalDocsModel *localDocsModel READ localDocsModel NOTIFY localDocsModelChanged)
|
||||
Q_PROPERTY(int chunkSize READ chunkSize WRITE setChunkSize NOTIFY chunkSizeChanged)
|
||||
Q_PROPERTY(int retrievalSize READ retrievalSize WRITE setRetrievalSize NOTIFY retrievalSizeChanged)
|
||||
|
||||
public:
|
||||
static LocalDocs *globalInstance();
|
||||
@@ -23,23 +21,16 @@ public:
|
||||
|
||||
Database *database() const { return m_database; }
|
||||
|
||||
int chunkSize() const;
|
||||
void setChunkSize(int chunkSize);
|
||||
|
||||
int retrievalSize() const;
|
||||
void setRetrievalSize(int retrievalSize);
|
||||
public Q_SLOTS:
|
||||
void handleChunkSizeChanged();
|
||||
|
||||
Q_SIGNALS:
|
||||
void requestAddFolder(const QString &collection, const QString &path);
|
||||
void requestRemoveFolder(const QString &collection, const QString &path);
|
||||
void requestChunkSizeChange(int chunkSize);
|
||||
void localDocsModelChanged();
|
||||
void chunkSizeChanged();
|
||||
void retrievalSizeChanged();
|
||||
|
||||
private:
|
||||
int m_chunkSize;
|
||||
int m_retrievalSize;
|
||||
LocalDocsModel *m_localDocsModel;
|
||||
Database *m_database;
|
||||
|
||||
|
Reference in New Issue
Block a user