-
Environment management options
poetry shell
-
Install package
poetry install
- Create private environment file (this will/should not be committed!)
cp .env-template .env
Add the OPENAI_API_KEY
& YDC_API_KEY
API keys to .env
.
- Check installation worked by running
poetry run pytest .
Note: To pass all tests, an OPENAI_API_KEY
& YDC_API_KEY
must be added to .env
.
Run make demo
to see the main demo interface.
You should see something like:
poetry run streamlit run interfaces/Home.py
You can now view your Streamlit app in your browser.
Local URL: http://localhost:8000
Network URL: http://XXX.XXX.X.XX:8000
And after clicking the link above, should see something like this:
To easily share this demo with others, you can use streamlit-cloud. Here is a host example of the default app created by this repo.
This demo allows you to upload various forms of private data to be used in conjunction with the YOU API to answer user questions. You also have control over the bot system prompt.
This demo allows you to chat with the YOU API documentation, answer questions and even write sample code that uses the YOU API.
We use poetry as our dependency manager. The link above has great documentation but there is a TL;DR.
- Install the package:
poetry install
- Add a dependency:
poetry add <python-lib>
- Where are dependencies specified?
pyproject.toml
include the high level requirements. The latests exact versions installed are inpoetry.lock
.
We use streamlit for the interface.
Streamlit is an open-source Python library that makes it easy to create and share custom web apps for machine learning and data science.
Here are the docs.