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.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: mb_rag
3
- Version: 1.0.123
3
+ Version: 1.0.124
4
4
  Summary: RAG function file
5
5
  Author: ['Malav Bateriwala']
6
6
  Requires-Python: >=3.8
@@ -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
- file_path: Optional[str],
224
- question: Optional[str],
225
- context: Optional[str]) -> None:
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()
@@ -1,5 +1,5 @@
1
1
  MAJOR_VERSION = 1
2
2
  MINOR_VERSION = 0
3
- PATCH_VERSION = 123
3
+ PATCH_VERSION = 124
4
4
  version = '{}.{}.{}'.format(MAJOR_VERSION, MINOR_VERSION, PATCH_VERSION)
5
5
  __all__ = ['MAJOR_VERSION', 'MINOR_VERSION', 'PATCH_VERSION', 'version']
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: mb_rag
3
- Version: 1.0.123
3
+ Version: 1.0.124
4
4
  Summary: RAG function file
5
5
  Author: ['Malav Bateriwala']
6
6
  Requires-Python: >=3.8
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes