Added OpenAI large embedding / improve migration and upgrade handling for containers
This commit is contained in:
@@ -71,6 +71,8 @@ class Config(object):
|
||||
# Chunk Definition, Embedding dependent
|
||||
OAI_TE3S_MIN_CHUNK_SIZE = 2000
|
||||
OAI_TE3S_MAX_CHUNK_SIZE = 3000
|
||||
OAI_TE3L_MIN_CHUNK_SIZE = 3000
|
||||
OAI_TE3L_MAX_CHUNK_SIZE = 4000
|
||||
|
||||
# LLM TEMPLATES
|
||||
GPT4_SUMMARY_TEMPLATE = """Write a concise summary of the text in {language}. The text is delimited between triple backquotes.
|
||||
@@ -182,8 +184,13 @@ class DevConfig(Config):
|
||||
DEBUG = True
|
||||
FLASK_DEBUG = True
|
||||
PYCHARM_DEBUG = False
|
||||
SQLALCHEMY_DATABASE_URI = 'postgresql+pg8000://luke:Skywalker!@db:5432/eveai'
|
||||
SQLALCHEMY_BINDS = {'public': 'postgresql+pg8000://luke:Skywalker!@db:5432/eveai'}
|
||||
DB_HOST = environ.get('DB_HOST', 'localhost')
|
||||
DB_USER = environ.get('DB_USER', 'luke')
|
||||
DB_PASS = environ.get('DB_PASS', 'Skywalker!')
|
||||
DB_NAME = environ.get('DB_NAME', 'eveai')
|
||||
|
||||
SQLALCHEMY_DATABASE_URI = f'postgresql+pg8000://{DB_USER}:{DB_PASS}@{DB_HOST}:5432/{DB_NAME}'
|
||||
SQLALCHEMY_BINDS = {'public': SQLALCHEMY_DATABASE_URI}
|
||||
EXPLAIN_TEMPLATE_LOADING = False
|
||||
|
||||
# Define the nginx prefix used for the specific apps
|
||||
|
||||
Reference in New Issue
Block a user