2023-05-10 13:55:45 +00:00
|
|
|
from pathlib import Path
|
|
|
|
|
|
|
|
APP_NAME = "DataChad"
|
|
|
|
MODEL = "gpt-3.5-turbo"
|
|
|
|
PAGE_ICON = "🤖"
|
|
|
|
|
2023-05-15 16:00:13 +00:00
|
|
|
K = 10
|
|
|
|
FETCH_K = 20
|
|
|
|
CHUNK_SIZE = 1000
|
|
|
|
TEMPERATURE = 0.7
|
|
|
|
MAX_TOKENS = 3357
|
|
|
|
ENABLE_ADVANCED_OPTIONS = True
|
|
|
|
|
2023-05-10 13:55:45 +00:00
|
|
|
DATA_PATH = Path.cwd() / "data"
|
|
|
|
DEFAULT_DATA_SOURCE = "git@github.com:gustavz/DataChad.git"
|
2023-05-12 07:28:54 +00:00
|
|
|
|
2023-05-15 08:00:32 +00:00
|
|
|
REPO_URL = "https://github.com/gustavz/DataChad"
|
|
|
|
|
|
|
|
AUTHENTICATION_HELP = f"""
|
2023-05-12 10:01:27 +00:00
|
|
|
Your credentials are only stored in your session state.\n
|
|
|
|
The keys are neither exposed nor made visible or stored permanently in any way.\n
|
2023-05-15 08:00:32 +00:00
|
|
|
Feel free to check out [the code base]({REPO_URL}) to validate how things work.
|
2023-05-12 10:01:27 +00:00
|
|
|
"""
|
|
|
|
|
2023-05-12 07:28:54 +00:00
|
|
|
OPENAI_HELP = """
|
|
|
|
You can sign-up for OpenAI's API [here](https://openai.com/blog/openai-api).\n
|
|
|
|
Once you are logged in, you find the API keys [here](https://platform.openai.com/account/api-keys)
|
|
|
|
"""
|
|
|
|
|
|
|
|
ACTIVELOOP_HELP = """
|
|
|
|
You can create an ActiveLoops account (including 500GB of free database storage) [here](https://www.activeloop.ai/).\n
|
|
|
|
Once you are logged in, you find the API token [here](https://app.activeloop.ai/profile/gustavz/apitoken).\n
|
|
|
|
The organisation name is your username, or you can create new organisations [here](https://app.activeloop.ai/organization/new/create)
|
|
|
|
"""
|
2023-05-12 13:44:26 +00:00
|
|
|
|
|
|
|
USAGE_HELP = f"""
|
|
|
|
These are the accumulated OpenAI API usage metrics.\n
|
|
|
|
The app uses '{MODEL}' for chat and 'text-embedding-ada-002' for embeddings.\n
|
|
|
|
Learn more about OpenAI's pricing [here](https://openai.com/pricing#language-models)
|
|
|
|
"""
|