mb-rag 1.1.64__tar.gz → 1.1.65__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 (26) hide show
  1. {mb_rag-1.1.64 → mb_rag-1.1.65}/PKG-INFO +1 -1
  2. mb_rag-1.1.65/mb_rag/utils/llm_wrapper.py +22 -0
  3. {mb_rag-1.1.64 → mb_rag-1.1.65}/mb_rag/version.py +1 -1
  4. {mb_rag-1.1.64 → mb_rag-1.1.65}/mb_rag.egg-info/PKG-INFO +1 -1
  5. {mb_rag-1.1.64 → mb_rag-1.1.65}/mb_rag.egg-info/SOURCES.txt +1 -0
  6. {mb_rag-1.1.64 → mb_rag-1.1.65}/README.md +0 -0
  7. {mb_rag-1.1.64 → mb_rag-1.1.65}/mb_rag/__init__.py +0 -0
  8. {mb_rag-1.1.64 → mb_rag-1.1.65}/mb_rag/basic.py +0 -0
  9. {mb_rag-1.1.64 → mb_rag-1.1.65}/mb_rag/chatbot/__init__.py +0 -0
  10. {mb_rag-1.1.64 → mb_rag-1.1.65}/mb_rag/chatbot/chains.py +0 -0
  11. {mb_rag-1.1.64 → mb_rag-1.1.65}/mb_rag/chatbot/conversation.py +0 -0
  12. {mb_rag-1.1.64 → mb_rag-1.1.65}/mb_rag/prompts_bank.py +0 -0
  13. {mb_rag-1.1.64 → mb_rag-1.1.65}/mb_rag/rag/__init__.py +0 -0
  14. {mb_rag-1.1.64 → mb_rag-1.1.65}/mb_rag/rag/embeddings.py +0 -0
  15. {mb_rag-1.1.64 → mb_rag-1.1.65}/mb_rag/utils/__init__.py +0 -0
  16. {mb_rag-1.1.64 → mb_rag-1.1.65}/mb_rag/utils/all_data_extract.py +0 -0
  17. {mb_rag-1.1.64 → mb_rag-1.1.65}/mb_rag/utils/bounding_box.py +0 -0
  18. {mb_rag-1.1.64 → mb_rag-1.1.65}/mb_rag/utils/document_extract.py +0 -0
  19. {mb_rag-1.1.64 → mb_rag-1.1.65}/mb_rag/utils/extra.py +0 -0
  20. {mb_rag-1.1.64 → mb_rag-1.1.65}/mb_rag/utils/pdf_extract.py +0 -0
  21. {mb_rag-1.1.64 → mb_rag-1.1.65}/mb_rag.egg-info/dependency_links.txt +0 -0
  22. {mb_rag-1.1.64 → mb_rag-1.1.65}/mb_rag.egg-info/requires.txt +0 -0
  23. {mb_rag-1.1.64 → mb_rag-1.1.65}/mb_rag.egg-info/top_level.txt +0 -0
  24. {mb_rag-1.1.64 → mb_rag-1.1.65}/pyproject.toml +0 -0
  25. {mb_rag-1.1.64 → mb_rag-1.1.65}/setup.cfg +0 -0
  26. {mb_rag-1.1.64 → mb_rag-1.1.65}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mb_rag
3
- Version: 1.1.64
3
+ Version: 1.1.65
4
4
  Summary: RAG function file
5
5
  Author: ['Malav Bateriwala']
6
6
  Requires-Python: >=3.8
@@ -0,0 +1,22 @@
1
+ ## simple llm wrapper to replace invoke with invoke_query/own model query
2
+
3
+ __all__ = ["LLMWrapper"]
4
+
5
+ class LLMWrapper:
6
+ """A simple wrapper for the language model to standardize the invoke method.
7
+ """
8
+
9
+ def __init__(self, llm):
10
+ self.llm = llm
11
+
12
+ def invoke_query(self, prompt: str) -> str:
13
+ """
14
+ Invoke the language model with the given prompt.
15
+
16
+ Args:
17
+ prompt (str): The prompt to send to the language model.
18
+
19
+ Returns:
20
+ str: The generated response.
21
+ """
22
+ return self.llm.invoke(prompt)
@@ -1,5 +1,5 @@
1
1
  MAJOR_VERSION = 1
2
2
  MINOR_VERSION = 1
3
- PATCH_VERSION = 64
3
+ PATCH_VERSION = 65
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.64
3
+ Version: 1.1.65
4
4
  Summary: RAG function file
5
5
  Author: ['Malav Bateriwala']
6
6
  Requires-Python: >=3.8
@@ -20,4 +20,5 @@ mb_rag/utils/all_data_extract.py
20
20
  mb_rag/utils/bounding_box.py
21
21
  mb_rag/utils/document_extract.py
22
22
  mb_rag/utils/extra.py
23
+ mb_rag/utils/llm_wrapper.py
23
24
  mb_rag/utils/pdf_extract.py
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