mb-rag 1.1.11__tar.gz → 1.1.13__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.2
2
2
  Name: mb_rag
3
- Version: 1.1.11
3
+ Version: 1.1.13
4
4
  Summary: RAG function file
5
5
  Author: ['Malav Bateriwala']
6
6
  Requires-Python: >=3.8
@@ -141,8 +141,8 @@ class ModelFactory:
141
141
  Returns:
142
142
  Ollama: Chatbot model
143
143
  """
144
- if not check_package("langchain-ollama"):
145
- raise ImportError("Langchain Community package not found. Please install it using: pip install langchain-community")
144
+ if not check_package("langchain_ollama"):
145
+ raise ImportError("Langchain Community package not found. Please install it using: pip install langchain_ollama")
146
146
 
147
147
  from langchain_ollama import ChatOllama
148
148
  kwargs["model"] = model_name
@@ -264,8 +264,10 @@ class ModelFactory:
264
264
  print("Continuing without structured output")
265
265
  message= HumanMessage(content=prompt_new,)
266
266
  response = self.model.invoke([message])
267
- return response.content
268
-
267
+ try:
268
+ return response.content
269
+ except Exception:
270
+ return response
269
271
 
270
272
  class ConversationModel:
271
273
  """
@@ -1,5 +1,5 @@
1
1
  MAJOR_VERSION = 1
2
2
  MINOR_VERSION = 1
3
- PATCH_VERSION = 11
3
+ PATCH_VERSION = 13
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.2
2
2
  Name: mb_rag
3
- Version: 1.1.11
3
+ Version: 1.1.13
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
File without changes