mb-rag 1.1.60__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.

Files changed (25) hide show
  1. {mb_rag-1.1.60 → mb_rag-1.1.62}/PKG-INFO +1 -1
  2. {mb_rag-1.1.60 → mb_rag-1.1.62}/README.md +3 -0
  3. {mb_rag-1.1.60 → mb_rag-1.1.62}/mb_rag/basic.py +2 -0
  4. {mb_rag-1.1.60 → mb_rag-1.1.62}/mb_rag/version.py +1 -1
  5. {mb_rag-1.1.60 → mb_rag-1.1.62}/mb_rag.egg-info/PKG-INFO +1 -1
  6. {mb_rag-1.1.60 → mb_rag-1.1.62}/mb_rag/__init__.py +0 -0
  7. {mb_rag-1.1.60 → mb_rag-1.1.62}/mb_rag/chatbot/__init__.py +0 -0
  8. {mb_rag-1.1.60 → mb_rag-1.1.62}/mb_rag/chatbot/chains.py +0 -0
  9. {mb_rag-1.1.60 → mb_rag-1.1.62}/mb_rag/chatbot/conversation.py +0 -0
  10. {mb_rag-1.1.60 → mb_rag-1.1.62}/mb_rag/chatbot/prompts.py +0 -0
  11. {mb_rag-1.1.60 → mb_rag-1.1.62}/mb_rag/rag/__init__.py +0 -0
  12. {mb_rag-1.1.60 → mb_rag-1.1.62}/mb_rag/rag/embeddings.py +0 -0
  13. {mb_rag-1.1.60 → mb_rag-1.1.62}/mb_rag/utils/__init__.py +0 -0
  14. {mb_rag-1.1.60 → mb_rag-1.1.62}/mb_rag/utils/all_data_extract.py +0 -0
  15. {mb_rag-1.1.60 → mb_rag-1.1.62}/mb_rag/utils/bounding_box.py +0 -0
  16. {mb_rag-1.1.60 → mb_rag-1.1.62}/mb_rag/utils/document_extract.py +0 -0
  17. {mb_rag-1.1.60 → mb_rag-1.1.62}/mb_rag/utils/extra.py +0 -0
  18. {mb_rag-1.1.60 → mb_rag-1.1.62}/mb_rag/utils/pdf_extract.py +0 -0
  19. {mb_rag-1.1.60 → mb_rag-1.1.62}/mb_rag.egg-info/SOURCES.txt +0 -0
  20. {mb_rag-1.1.60 → mb_rag-1.1.62}/mb_rag.egg-info/dependency_links.txt +0 -0
  21. {mb_rag-1.1.60 → mb_rag-1.1.62}/mb_rag.egg-info/requires.txt +0 -0
  22. {mb_rag-1.1.60 → mb_rag-1.1.62}/mb_rag.egg-info/top_level.txt +0 -0
  23. {mb_rag-1.1.60 → mb_rag-1.1.62}/pyproject.toml +0 -0
  24. {mb_rag-1.1.60 → mb_rag-1.1.62}/setup.cfg +0 -0
  25. {mb_rag-1.1.60 → mb_rag-1.1.62}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mb_rag
3
- Version: 1.1.60
3
+ Version: 1.1.62
4
4
  Summary: RAG function file
5
5
  Author: ['Malav Bateriwala']
6
6
  Requires-Python: >=3.8
@@ -73,6 +73,9 @@ ollama_model = ModelFactory(
73
73
  )
74
74
  response = ollama_model.invoke_query("What is the meaning of life?")
75
75
 
76
+ ## Running in threads
77
+ response = model.invoke_query_threads(query_list=['q1','q2'],input_data=[[images_data],[images_data]],n_workers=4)
78
+
76
79
 
77
80
  ## check example_conversation.ipynb for more details
78
81
 
@@ -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]
@@ -1,5 +1,5 @@
1
1
  MAJOR_VERSION = 1
2
2
  MINOR_VERSION = 1
3
- PATCH_VERSION = 60
3
+ PATCH_VERSION = 62
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.4
2
2
  Name: mb_rag
3
- Version: 1.1.60
3
+ Version: 1.1.62
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