fix: update setup instructions (#144) #none
* activate directory to gitignore * add my custom env to gitignore, will have to change that * add unstructured to kotaemon pyproject.toml * add .env to gitignore * remove .env from tracking * make changes to the run_macos script, update readme with more detailed instructions * remove my personal changes from gitignore * remove line from run_macos script * remove option for not installing miniconda for non technical users, mark docker dependency as optional * docs: update demo URL * gitignore changes * merge .env.example * revert changes to run_macos.sh * unstructured to advanced dependencies * add link to unstructured system dependencies * remove api key * fix: skip tests when unstructured pdf not installed * chore: loosen unstructured package version in pyproject.toml * chore: correct syntax --------- Co-authored-by: Tadashi <tadashi@cinnamon.is> Co-authored-by: cin-albert <albert@cinnamon.is>
This commit is contained in:
16
README.md
16
README.md
@@ -85,6 +85,15 @@ Use the most recent release `.zip` to include latest features and bug-fixes.
|
||||
|
||||
### For developers
|
||||
|
||||
#### System requirements
|
||||
|
||||
1. Python >=3.10
|
||||
2. (optional) [Docker](https://www.docker.com/)
|
||||
|
||||
#### If you would like to process files other than .pdf, .html, .mhtml, and .xlsx documents:
|
||||
|
||||
You will need to install the system dependencies of [unstructured](https://docs.unstructured.io/open-source/installation/full-installation#full-installation). The installations vary by operating system, so please go to the link and follow the instructions there.
|
||||
|
||||
#### With Docker (recommended)
|
||||
|
||||
We support `lite` & `full` version of Docker images. With `full`, the extra packages of `unstructured` will be installed as
|
||||
@@ -141,9 +150,12 @@ cd kotaemon
|
||||
|
||||
pip install -e "libs/kotaemon[all]"
|
||||
pip install -e "libs/ktem"
|
||||
|
||||
```
|
||||
|
||||
- View and edit your environment variables (API keys, end-points) in `.env`.
|
||||
- Create a .env file in the root of this project. Use .env.example as a template
|
||||
|
||||
The .env file is there to serve use cases where users want to pre-config the models before starting up the app (e.g. deploy the app on HF hub). The file will only be used to populate the db once upon the first run, it will no longer be used in consequent runs.
|
||||
|
||||
- (Optional) To enable in-browser PDF_JS viewer, download [PDF_JS_DIST](https://github.com/mozilla/pdf.js/releases/download/v4.0.379/pdfjs-4.0.379-dist.zip) and extract it to `libs/ktem/ktem/assets/prebuilt`
|
||||
|
||||
@@ -161,6 +173,8 @@ Default username / password are: `admin` / `admin`. You can setup additional use
|
||||
|
||||

|
||||
|
||||
- Check the Resources tab and LLMs and Embeddings and ensure that your `api_key` value is set correctly from your `.env`. file. If it is not set, you can set it here.
|
||||
|
||||
## Setup local models (for local / private RAG)
|
||||
|
||||
See [Local model setup](docs/local_model.md).
|
||||
|
Reference in New Issue
Block a user