mb-rag 1.0.123__tar.gz → 1.0.124__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of mb-rag might be problematic. Click here for more details.
- {mb_rag-1.0.123 → mb_rag-1.0.124}/PKG-INFO +1 -1
- {mb_rag-1.0.123 → mb_rag-1.0.124}/mb_rag/chatbot/basic.py +6 -5
- {mb_rag-1.0.123 → mb_rag-1.0.124}/mb_rag/version.py +1 -1
- {mb_rag-1.0.123 → mb_rag-1.0.124}/mb_rag.egg-info/PKG-INFO +1 -1
- {mb_rag-1.0.123 → mb_rag-1.0.124}/README.md +0 -0
- {mb_rag-1.0.123 → mb_rag-1.0.124}/mb_rag/__init__.py +0 -0
- {mb_rag-1.0.123 → mb_rag-1.0.124}/mb_rag/chatbot/__init__.py +0 -0
- {mb_rag-1.0.123 → mb_rag-1.0.124}/mb_rag/chatbot/chains.py +0 -0
- {mb_rag-1.0.123 → mb_rag-1.0.124}/mb_rag/chatbot/prompts.py +0 -0
- {mb_rag-1.0.123 → mb_rag-1.0.124}/mb_rag/rag/__init__.py +0 -0
- {mb_rag-1.0.123 → mb_rag-1.0.124}/mb_rag/rag/embeddings.py +0 -0
- {mb_rag-1.0.123 → mb_rag-1.0.124}/mb_rag/utils/__init__.py +0 -0
- {mb_rag-1.0.123 → mb_rag-1.0.124}/mb_rag/utils/bounding_box.py +0 -0
- {mb_rag-1.0.123 → mb_rag-1.0.124}/mb_rag/utils/extra.py +0 -0
- {mb_rag-1.0.123 → mb_rag-1.0.124}/mb_rag.egg-info/SOURCES.txt +0 -0
- {mb_rag-1.0.123 → mb_rag-1.0.124}/mb_rag.egg-info/dependency_links.txt +0 -0
- {mb_rag-1.0.123 → mb_rag-1.0.124}/mb_rag.egg-info/requires.txt +0 -0
- {mb_rag-1.0.123 → mb_rag-1.0.124}/mb_rag.egg-info/top_level.txt +0 -0
- {mb_rag-1.0.123 → mb_rag-1.0.124}/pyproject.toml +0 -0
- {mb_rag-1.0.123 → mb_rag-1.0.124}/setup.cfg +0 -0
- {mb_rag-1.0.123 → mb_rag-1.0.124}/setup.py +0 -0
|
@@ -220,13 +220,14 @@ class ConversationModel:
|
|
|
220
220
|
self.chatbot = ModelFactory(model_type, model_name, **kwargs)
|
|
221
221
|
|
|
222
222
|
def initialize_conversation(self,
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
223
|
+
question: Optional[str],
|
|
224
|
+
context: Optional[str] = None,
|
|
225
|
+
file_path: Optional[str]=None) -> None:
|
|
226
226
|
"""Initialize conversation state"""
|
|
227
227
|
if file_path:
|
|
228
|
-
self.file_path = file_path
|
|
228
|
+
self.file_path = file_path
|
|
229
229
|
self.load_conversation(file_path)
|
|
230
|
+
|
|
230
231
|
else:
|
|
231
232
|
if not question:
|
|
232
233
|
raise ValueError("Question is required.")
|
|
@@ -371,7 +372,7 @@ class ConversationModel:
|
|
|
371
372
|
raise ValueError(f"Error loading conversation from s3: {e}")
|
|
372
373
|
|
|
373
374
|
def _load_from_file(self, file_path: str) -> List[Any]:
|
|
374
|
-
"""Load conversation from file"""
|
|
375
|
+
"""Load conversation from file"""
|
|
375
376
|
try:
|
|
376
377
|
with open(file_path, 'r') as f:
|
|
377
378
|
lines = f.readlines()
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|