- Introduction of dynamic Retrievers & Specialists

- Introduction of dynamic Processors
- Introduction of caching system
- Introduction of a better template manager
- Adaptation of ModelVariables to support dynamic Processors / Retrievers / Specialists
- Start adaptation of chat client
This commit is contained in:
Josako
2024-11-15 10:00:53 +01:00
parent 55a8a95f79
commit 1807435339
101 changed files with 4181 additions and 1764 deletions

View File

@@ -3,11 +3,14 @@ import logging.config
from flask import Flask
import os
from common.langchain.templates.template_manager import TemplateManager
from common.utils.celery_utils import make_celery, init_celery
from common.extensions import db
from common.extensions import db, template_manager, cache_manager
from config.logging_config import LOGGING
from config.config import get_config
from . import specialists, retrievers
def create_app(config_file=None):
app = Flask(__name__)
@@ -24,14 +27,12 @@ def create_app(config_file=None):
logging.config.dictConfig(LOGGING)
app.logger.debug('Starting up eveai_chat_workers...')
app.logger.info('Starting up eveai_chat_workers...')
register_extensions(app)
celery = make_celery(app.name, app.config)
init_celery(celery, app)
app.rag_tuning_logger = logging.getLogger('rag_tuning')
from eveai_chat_workers import tasks
print(tasks.tasks_ping())
@@ -40,6 +41,9 @@ def create_app(config_file=None):
def register_extensions(app):
db.init_app(app)
cache_manager.init_app(app)
template_manager.init_app(app)
app, celery = create_app()