From a9623ef85a60f5ac365f3a988211d41e06bc7b0f Mon Sep 17 00:00:00 2001 From: sabaimran Date: Mon, 20 Nov 2023 15:27:42 -0800 Subject: [PATCH] Add requisite imports in order to instantiate offline model in adapters file --- src/database/adapters/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/database/adapters/__init__.py b/src/database/adapters/__init__.py index 7fae4ac7..4cbf2d8b 100644 --- a/src/database/adapters/__init__.py +++ b/src/database/adapters/__init__.py @@ -4,7 +4,6 @@ from datetime import date, datetime import secrets from typing import Type, List from datetime import date, timezone -import random from django.db import models from django.contrib.sessions.backends.db import SessionStore @@ -35,6 +34,8 @@ from database.models import ( OfflineChatProcessorConversationConfig, ) from khoj.utils.helpers import generate_random_name +from khoj.utils import state +from khoj.utils.config import GPT4AllProcessorModel from khoj.search_filter.word_filter import WordFilter from khoj.search_filter.file_filter import FileFilter from khoj.search_filter.date_filter import DateFilter