From 2f8fb0bcbcd49b17758a454e37f843c745bde56b Mon Sep 17 00:00:00 2001 From: Kostas Stathoulopoulos Date: Wed, 27 Sep 2023 15:06:47 +0100 Subject: [PATCH] chore: Update docs --- .env.example | 8 ++++---- README.md | 15 ++++++--------- 2 files changed, 10 insertions(+), 13 deletions(-) diff --git a/.env.example b/.env.example index 48994fa..50d8a2d 100644 --- a/.env.example +++ b/.env.example @@ -3,7 +3,7 @@ PINECONE_API_KEY= PINECONE_REGION= AWS_ACCESS_KEY_ID= AWS_SECRET_ACCESS_KEY= -S3_BUCKET= -PATH_TO_NHS_DATA= -PATH_TO_BBC_ACTIVITIES_DATA= -PATH_TO_LABELLED_BBC_DATA= +S3_BUCKET= +PATH_TO_NHS_DATA= +PATH_TO_BBC_ACTIVITIES_DATA= +PATH_TO_LABELLED_BBC_DATA= diff --git a/README.md b/README.md index 1dca583..167f06d 100644 --- a/README.md +++ b/README.md @@ -328,9 +328,12 @@ source .venv/bin/activate Three of the prototypes use the pinecone database to store and retrieve data. To rebuild the database: 1. Create a `.env` file in the root of the project and add all keys listed in the `.env.examples`. -2. Run `make build-pinecone`. This will delete the index if it exists and rebuild it from scratch. +2. Run `make build-pinecone`. This will delete the index if it exists (this happens as part of the first python script it calls) and rebuild it from scratch. -**Note:** We are using a free Pinecone database which is deleted after seven days of inactivity. If you get any errors like "this index does not exist", you might need to rebuild it. +**Notes** + +- We are using a free Pinecone database which is deleted after seven days of inactivity. If you get any errors like "this index does not exist", you might need to rebuild it. +- The Pinecone database indexes the docs for all prototypes and distinguishes them using the `source` metadata field. ### Running the prototypes locally with Docker @@ -366,13 +369,7 @@ Assuming you are not an admin of this repo, you would need to fork it and deploy 3. **Main file path**: `app.py`. 4. Click on **Advanced settings** and: 1. Set **Python version** to 3.9. - 2. Add your **Secrets** using TOML format: - - ```toml - OPENAI_API_KEY='' - PINECONE_API_KEY='' - password='' - ``` + 2. Add your **Secrets** using TOML format. You can find the required secrets in the section above, basically all the variables in `.env.example` as well as the password in `.streamlit/secrets.toml`. 5. Click on **Deploy!**.