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.
- {mb_rag-1.1.11 → mb_rag-1.1.13}/PKG-INFO +1 -1
- {mb_rag-1.1.11 → mb_rag-1.1.13}/mb_rag/chatbot/basic.py +6 -4
- {mb_rag-1.1.11 → mb_rag-1.1.13}/mb_rag/version.py +1 -1
- {mb_rag-1.1.11 → mb_rag-1.1.13}/mb_rag.egg-info/PKG-INFO +1 -1
- {mb_rag-1.1.11 → mb_rag-1.1.13}/README.md +0 -0
- {mb_rag-1.1.11 → mb_rag-1.1.13}/mb_rag/__init__.py +0 -0
- {mb_rag-1.1.11 → mb_rag-1.1.13}/mb_rag/chatbot/__init__.py +0 -0
- {mb_rag-1.1.11 → mb_rag-1.1.13}/mb_rag/chatbot/chains.py +0 -0
- {mb_rag-1.1.11 → mb_rag-1.1.13}/mb_rag/chatbot/prompts.py +0 -0
- {mb_rag-1.1.11 → mb_rag-1.1.13}/mb_rag/rag/__init__.py +0 -0
- {mb_rag-1.1.11 → mb_rag-1.1.13}/mb_rag/rag/embeddings.py +0 -0
- {mb_rag-1.1.11 → mb_rag-1.1.13}/mb_rag/utils/__init__.py +0 -0
- {mb_rag-1.1.11 → mb_rag-1.1.13}/mb_rag/utils/bounding_box.py +0 -0
- {mb_rag-1.1.11 → mb_rag-1.1.13}/mb_rag/utils/extra.py +0 -0
- {mb_rag-1.1.11 → mb_rag-1.1.13}/mb_rag.egg-info/SOURCES.txt +0 -0
- {mb_rag-1.1.11 → mb_rag-1.1.13}/mb_rag.egg-info/dependency_links.txt +0 -0
- {mb_rag-1.1.11 → mb_rag-1.1.13}/mb_rag.egg-info/requires.txt +0 -0
- {mb_rag-1.1.11 → mb_rag-1.1.13}/mb_rag.egg-info/top_level.txt +0 -0
- {mb_rag-1.1.11 → mb_rag-1.1.13}/pyproject.toml +0 -0
- {mb_rag-1.1.11 → mb_rag-1.1.13}/setup.cfg +0 -0
- {mb_rag-1.1.11 → mb_rag-1.1.13}/setup.py +0 -0
|
@@ -141,8 +141,8 @@ class ModelFactory:
|
|
|
141
141
|
Returns:
|
|
142
142
|
Ollama: Chatbot model
|
|
143
143
|
"""
|
|
144
|
-
if not check_package("
|
|
145
|
-
raise ImportError("Langchain Community package not found. Please install it using: pip install
|
|
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
|
-
|
|
268
|
-
|
|
267
|
+
try:
|
|
268
|
+
return response.content
|
|
269
|
+
except Exception:
|
|
270
|
+
return response
|
|
269
271
|
|
|
270
272
|
class ConversationModel:
|
|
271
273
|
"""
|
|
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
|