Requirements
- git
- Docker with compose (docker version >= 1.13.0)
- System requirements found here
Setup
- Clone the Danswer repo:
- Navigate to danswer/deployment/docker_compose
- (Optional) configure Danswer
-
Bring up your docker engine and run:
- To pull images from DockerHub and run Danswer:
- Alternatively, to build the containers from source and start Danswer, run:
- This may take 15+ minutes depending on your internet speed.
- Additionally, once the images have been pulled / built, the initial startup of the
api_servermay take some time (we download embedding models from HuggingFace to power the search). If you seeThis site can’t be reachedin your browser despite all containers being up and running, check theapi_serverlogs and make sure you seeApplication startup complete. - If you see
Killedin the logs, you may need to increase the amount of memory given to Docker. For recommendations, check the system requirements here.
- Additionally, once the images have been pulled / built, the initial startup of the
These commands are also used to redeploy if any .env variables are updated
- Danswer will now be running on http://localhost:3000.
Generative AI API Key
Note: On the initial visit, Danswer will prompt for an OpenAI API key. You can get an OpenAI API key at: https://platform.openai.com/account/api-keysYou can also replace OpenAI with a model provider of your choice, see
here for more info
Indexing Documents
This quickstart guide will index a publicly accessible website as this requires no additional authorization setup-
Navigate to the top right of Danswer’s home screen and select Admin Panel
-
In the Web Connector dashboard, pick any base URL to index.
- This will index all pages under that base URL that is reachable from hyperlinks.
- You can check the indexing status page to monitor the progress.
- After the pages are indexed, you can now navigate back to the homepage and start asking questions and getting answers! 🥳
Shutting Down
add
-v at the end to additionally delete the volumes (containing users and indexed
documents)
