Improve docker builds for local hosting (#476)

* Remove GPT4All dependency in pyproject.toml and use multiplatform builds in the dockerization setup in GH actions
* Move configure_search method into indexer
* Add conditional installation for gpt4all
* Add hint to go to localhost:42110 in the docs. Addresses #477
This commit is contained in:
sabaimran
2023-09-08 17:07:26 -07:00
committed by GitHub
parent dccfae3853
commit 343854752c
10 changed files with 122 additions and 42 deletions

View File

@@ -13,7 +13,10 @@ pytestmark = pytest.mark.skipif(
import freezegun
from freezegun import freeze_time
from gpt4all import GPT4All
try:
from gpt4all import GPT4All
except ModuleNotFoundError as e:
print("There was an error importing GPT4All. Please run pip install gpt4all in order to install it.")
# Internal Packages
from khoj.processor.conversation.gpt4all.chat_model import converse_offline, extract_questions_offline, filter_questions