Spaces:
Sleeping
Sleeping
Upload appConfig.py
Browse files- config/appConfig.py +2 -0
config/appConfig.py
CHANGED
|
@@ -1,6 +1,7 @@
|
|
| 1 |
import logging
|
| 2 |
from retriever.llm_manager import LLMManager
|
| 3 |
from retriever.document_manager import DocumentManager
|
|
|
|
| 4 |
|
| 5 |
class AppConfig:
|
| 6 |
def __init__(self):
|
|
@@ -8,4 +9,5 @@ class AppConfig:
|
|
| 8 |
self.gen_llm = LLMManager() # This will initialize the default model ("gemma2-9b-it")
|
| 9 |
# Initialize DocumentManager (it will be a singleton instance shared across the app)
|
| 10 |
self.doc_manager = DocumentManager()
|
|
|
|
| 11 |
logging.info("AppConfig initialized with LLMManager")
|
|
|
|
| 1 |
import logging
|
| 2 |
from retriever.llm_manager import LLMManager
|
| 3 |
from retriever.document_manager import DocumentManager
|
| 4 |
+
from retriever.chat_manager import ChatManager
|
| 5 |
|
| 6 |
class AppConfig:
|
| 7 |
def __init__(self):
|
|
|
|
| 9 |
self.gen_llm = LLMManager() # This will initialize the default model ("gemma2-9b-it")
|
| 10 |
# Initialize DocumentManager (it will be a singleton instance shared across the app)
|
| 11 |
self.doc_manager = DocumentManager()
|
| 12 |
+
self.chat_manager = ChatManager(documentManager = self.doc_manager, llmManager = self.gen_llm)
|
| 13 |
logging.info("AppConfig initialized with LLMManager")
|