danswer-ai / danswer

Gen-AI Chat for Teams - Think ChatGPT if it had access to your team's unique knowledge.
https://danswer.ai
Other
10.79k stars 1.35k forks source link

Danswer GPT4ALL #1637

Open dpierson0721 opened 5 months ago

dpierson0721 commented 5 months ago

I have enabled gpt4all using env variables but I still get the window to configure an OpenAI API key (or custom).

I'm using the dev version because I want it running on the localhost only.

Is there something else I need to do other than go into the docker-compose.dev.yml file and input all of the suggested settings from the docs?

bscameheorn commented 4 months ago

I am also experiencing the same issue.

I have uncommented the line gpt4all==2.0.2 in default.txt and copied the same settings that are indicated for gpt4all. i.e. -

GEN_AI_MODEL_PROVIDER=gpt4all GEN_AI_MODEL_VERSION=mistral-7b-openorca.gguf2.Q4_0.gguf

Let's also make some changes to accommodate the weaker locally hosted LLM

QA_TIMEOUT=120 # Set a longer timeout, running models on CPU can be slow

Always run search, never skip

DISABLE_LLM_CHOOSE_SEARCH=True

Don't use LLM for reranking, the prompts aren't properly tuned for these models

DISABLE_LLM_CHUNK_FILTER=True

Don't try to rephrase the user query, the prompts aren't properly tuned for these models

DISABLE_LLM_QUERY_REPHRASE=True

Don't use LLM to automatically discover time/source filters

DISABLE_LLM_FILTER_EXTRACTION=True

Use only 1 section from the documents and do not require quotes

QA_PROMPT_OVERRIDE=weak

I have installed gpt4all on ubuntu 22.04 and it is fully upgraded. I installed docker and downloaded mistral-7b-openorca.gguf2.Q4_0.gguf to directory /home/aiadmin/.local/share/nomic.ai/GPT4All/

I am not sure what I am missing to run this model locally. Any assistance would be appreciated.

Drewster87 commented 4 months ago

I will say this, I gave up on gpt4all and started using Ollama, it's the same thing really but has official LLM support. I've been pleased with the performance so far using Ollama instead.

github-actions[bot] commented 1 week ago

This issue is stale because it has been open 75 days with no activity. Remove stale label or comment or this will be closed in 15 days.