mb-rag 1.1.61__tar.gz → 1.1.62__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.61 → mb_rag-1.1.62}/PKG-INFO +1 -1
- {mb_rag-1.1.61 → mb_rag-1.1.62}/mb_rag/basic.py +2 -0
- {mb_rag-1.1.61 → mb_rag-1.1.62}/mb_rag/version.py +1 -1
- {mb_rag-1.1.61 → mb_rag-1.1.62}/mb_rag.egg-info/PKG-INFO +1 -1
- {mb_rag-1.1.61 → mb_rag-1.1.62}/README.md +0 -0
- {mb_rag-1.1.61 → mb_rag-1.1.62}/mb_rag/__init__.py +0 -0
- {mb_rag-1.1.61 → mb_rag-1.1.62}/mb_rag/chatbot/__init__.py +0 -0
- {mb_rag-1.1.61 → mb_rag-1.1.62}/mb_rag/chatbot/chains.py +0 -0
- {mb_rag-1.1.61 → mb_rag-1.1.62}/mb_rag/chatbot/conversation.py +0 -0
- {mb_rag-1.1.61 → mb_rag-1.1.62}/mb_rag/chatbot/prompts.py +0 -0
- {mb_rag-1.1.61 → mb_rag-1.1.62}/mb_rag/rag/__init__.py +0 -0
- {mb_rag-1.1.61 → mb_rag-1.1.62}/mb_rag/rag/embeddings.py +0 -0
- {mb_rag-1.1.61 → mb_rag-1.1.62}/mb_rag/utils/__init__.py +0 -0
- {mb_rag-1.1.61 → mb_rag-1.1.62}/mb_rag/utils/all_data_extract.py +0 -0
- {mb_rag-1.1.61 → mb_rag-1.1.62}/mb_rag/utils/bounding_box.py +0 -0
- {mb_rag-1.1.61 → mb_rag-1.1.62}/mb_rag/utils/document_extract.py +0 -0
- {mb_rag-1.1.61 → mb_rag-1.1.62}/mb_rag/utils/extra.py +0 -0
- {mb_rag-1.1.61 → mb_rag-1.1.62}/mb_rag/utils/pdf_extract.py +0 -0
- {mb_rag-1.1.61 → mb_rag-1.1.62}/mb_rag.egg-info/SOURCES.txt +0 -0
- {mb_rag-1.1.61 → mb_rag-1.1.62}/mb_rag.egg-info/dependency_links.txt +0 -0
- {mb_rag-1.1.61 → mb_rag-1.1.62}/mb_rag.egg-info/requires.txt +0 -0
- {mb_rag-1.1.61 → mb_rag-1.1.62}/mb_rag.egg-info/top_level.txt +0 -0
- {mb_rag-1.1.61 → mb_rag-1.1.62}/pyproject.toml +0 -0
- {mb_rag-1.1.61 → mb_rag-1.1.62}/setup.cfg +0 -0
- {mb_rag-1.1.61 → mb_rag-1.1.62}/setup.py +0 -0
|
@@ -357,6 +357,8 @@ class ModelFactory:
|
|
|
357
357
|
Returns:
|
|
358
358
|
str: Output from the model
|
|
359
359
|
"""
|
|
360
|
+
if not isinstance(images, list):
|
|
361
|
+
images = [images]
|
|
360
362
|
base64_images = [self._image_to_base64(image) for image in images]
|
|
361
363
|
image_prompt_create = [{"type": "image_url", "image_url": {"url": f"data:image/jpeg;base64,{base64_images[i]}"}} for i in range(len(images))]
|
|
362
364
|
prompt_new = [{"type": "text", "text": prompt}, *image_prompt_create]
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|