beekeeper-ai 0.6.6__tar.gz → 1.0.1__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.
Files changed (43) hide show
  1. beekeeper_ai-1.0.1/.gitignore +86 -0
  2. beekeeper_ai-1.0.1/LICENSE +176 -0
  3. beekeeper_ai-1.0.1/PKG-INFO +46 -0
  4. beekeeper_ai-1.0.1/README.md +19 -0
  5. beekeeper_ai-1.0.1/_beekeeper/beekeeper/_bundle/__init__.py +0 -0
  6. beekeeper_ai-1.0.1/pyproject.toml +128 -0
  7. beekeeper_ai-0.6.6/LICENSE +0 -7
  8. beekeeper_ai-0.6.6/PKG-INFO +0 -49
  9. beekeeper_ai-0.6.6/README.md +0 -18
  10. beekeeper_ai-0.6.6/beekeeper/__init__.py +0 -1
  11. beekeeper_ai-0.6.6/beekeeper/core/document/__init__.py +0 -6
  12. beekeeper_ai-0.6.6/beekeeper/core/document/schema.py +0 -97
  13. beekeeper_ai-0.6.6/beekeeper/core/document_loaders/__init__.py +0 -5
  14. beekeeper_ai-0.6.6/beekeeper/core/document_loaders/base.py +0 -24
  15. beekeeper_ai-0.6.6/beekeeper/core/embeddings/__init__.py +0 -6
  16. beekeeper_ai-0.6.6/beekeeper/core/embeddings/base.py +0 -44
  17. beekeeper_ai-0.6.6/beekeeper/core/text_splitters/utils.py +0 -142
  18. beekeeper_ai-0.6.6/beekeeper/core/utils/pairwise.py +0 -20
  19. beekeeper_ai-0.6.6/beekeeper/document_loaders/__init__.py +0 -17
  20. beekeeper_ai-0.6.6/beekeeper/document_loaders/directory.py +0 -65
  21. beekeeper_ai-0.6.6/beekeeper/document_loaders/docx.py +0 -31
  22. beekeeper_ai-0.6.6/beekeeper/document_loaders/html.py +0 -77
  23. beekeeper_ai-0.6.6/beekeeper/document_loaders/json.py +0 -53
  24. beekeeper_ai-0.6.6/beekeeper/document_loaders/pdf.py +0 -38
  25. beekeeper_ai-0.6.6/beekeeper/document_loaders/s3.py +0 -72
  26. beekeeper_ai-0.6.6/beekeeper/document_loaders/watson_discovery.py +0 -121
  27. beekeeper_ai-0.6.6/beekeeper/embeddings/__init__.py +0 -7
  28. beekeeper_ai-0.6.6/beekeeper/embeddings/huggingface.py +0 -66
  29. beekeeper_ai-0.6.6/beekeeper/embeddings/watsonx.py +0 -100
  30. beekeeper_ai-0.6.6/beekeeper/evaluation/__init__.py +0 -5
  31. beekeeper_ai-0.6.6/beekeeper/evaluation/knowledge_base_coverage.py +0 -62
  32. beekeeper_ai-0.6.6/beekeeper/monitor/__init__.py +0 -11
  33. beekeeper_ai-0.6.6/beekeeper/monitor/watsonx.py +0 -843
  34. beekeeper_ai-0.6.6/beekeeper/retrievers/__init__.py +0 -5
  35. beekeeper_ai-0.6.6/beekeeper/retrievers/watson_discovery.py +0 -121
  36. beekeeper_ai-0.6.6/beekeeper/text_splitters/__init__.py +0 -9
  37. beekeeper_ai-0.6.6/beekeeper/text_splitters/semantic.py +0 -139
  38. beekeeper_ai-0.6.6/beekeeper/text_splitters/sentence.py +0 -107
  39. beekeeper_ai-0.6.6/beekeeper/text_splitters/token.py +0 -101
  40. beekeeper_ai-0.6.6/beekeeper/vector_stores/__init__.py +0 -7
  41. beekeeper_ai-0.6.6/beekeeper/vector_stores/chroma.py +0 -115
  42. beekeeper_ai-0.6.6/beekeeper/vector_stores/elasticsearch.py +0 -183
  43. beekeeper_ai-0.6.6/pyproject.toml +0 -91
@@ -0,0 +1,86 @@
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[cod]
4
+ *$py.class
5
+
6
+ # C extensions
7
+ *.so
8
+
9
+ #IDE
10
+ .DS_Store
11
+ .idea
12
+ .vscode
13
+
14
+ # Distribution / packaging
15
+ .Python
16
+ build/
17
+ develop-eggs/
18
+ dist/
19
+ downloads/
20
+ eggs/
21
+ .eggs/
22
+ lib/
23
+ lib64/
24
+ parts/
25
+ sdist/
26
+ var/
27
+ wheels/
28
+ share/python-wheels/
29
+ *.egg-info/
30
+ .installed.cfg
31
+ *.egg
32
+ MANIFEST
33
+
34
+ # PyInstaller
35
+ # Usually these files are written by a python script from a template
36
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
37
+ *.manifest
38
+ *.spec
39
+
40
+ # Installer logs
41
+ pip-log.txt
42
+ pip-delete-this-directory.txt
43
+
44
+ # Unit test / coverage reports
45
+ htmlcov/
46
+ .tox/
47
+ .nox/
48
+ .coverage
49
+ .coverage.*
50
+ .cache
51
+ nosetests.xml
52
+ coverage.xml
53
+ *.cover
54
+ *.py,cover
55
+ .hypothesis/
56
+ .pytest_cache/
57
+ cover/
58
+
59
+ # Sphinx documentation
60
+ docs/_build/
61
+ docs/sphinx-pages/
62
+ sphinx-pages/
63
+
64
+ # Ruff
65
+ .ruff_cache/
66
+
67
+ # PyBuilder
68
+ .pybuilder/
69
+ target/
70
+
71
+ # Jupyter Notebook
72
+ .ipynb_checkpoints
73
+
74
+ # pyenv
75
+ # For a library or package, you might want to ignore these files since the code is
76
+ # intended to run in multiple environments; otherwise, check them in:
77
+ # .python-version
78
+
79
+ # Environments
80
+ .env
81
+ .venv
82
+ env/
83
+ venv/
84
+ ENV/
85
+ env.bak/
86
+ venv.bak/
@@ -0,0 +1,176 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
@@ -0,0 +1,46 @@
1
+ Metadata-Version: 2.4
2
+ Name: beekeeper-ai
3
+ Version: 1.0.1
4
+ Summary: Load any data in one line of code and connect with AI applications
5
+ Project-URL: Documentation, https://beekeeper-ai.github.io/beekeeper
6
+ Project-URL: Repository, https://github.com/beekeeper-ai/beekeeper
7
+ Author-email: Leonardo Furnielis <leonardofurnielis@outlook.com>
8
+ License: Apache-2.0
9
+ License-File: LICENSE
10
+ Keywords: AI,LLM,QA,RAG,data,observability,retrieval,semantic-search
11
+ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
12
+ Classifier: Topic :: Software Development :: Libraries :: Application Frameworks
13
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
14
+ Requires-Python: <4.0,>=3.10
15
+ Requires-Dist: beekeeper-core<2.0.0,>=1.0.1
16
+ Requires-Dist: beekeeper-embeddings-huggingface<2.0.0,>=1.0.0
17
+ Requires-Dist: beekeeper-llms-litellm<2.0.0,>=1.0.0
18
+ Requires-Dist: beekeeper-readers-file<2.0.0,>=1.0.0
19
+ Provides-Extra: dev
20
+ Requires-Dist: ruff>=0.11.13; extra == 'dev'
21
+ Provides-Extra: docs
22
+ Requires-Dist: furo>=2024.8.6; extra == 'docs'
23
+ Requires-Dist: sphinx-copybutton>=0.5.2; extra == 'docs'
24
+ Requires-Dist: sphinx-favicon>=1.0.1; extra == 'docs'
25
+ Requires-Dist: sphinx>=8.1.3; extra == 'docs'
26
+ Description-Content-Type: text/markdown
27
+
28
+ # 🗂️ Beekeeper 🐝
29
+
30
+ ![PyPI - Version](https://img.shields.io/pypi/v/beekeeper-ai)
31
+ [![Hatch project](https://img.shields.io/badge/%F0%9F%A5%9A-Hatch-4051b5.svg)](https://github.com/pypa/hatch)
32
+ ![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)
33
+ ![Pepy Total Downloads](https://img.shields.io/pepy/dt/beekeeper-ai)
34
+ ![PyPI - License](https://img.shields.io/pypi/l/beekeeper-ai)
35
+
36
+ ## Installation
37
+
38
+ ```bash
39
+ pip install beekeeper-ai
40
+ ```
41
+
42
+ ## 📄 Documentation
43
+
44
+ The documentation can be found Click [here](https://beekeeper-ai.github.io/beekeeper/)!
45
+
46
+ Please check it out for overview of the interfaces, components, integrations and other resources!
@@ -0,0 +1,19 @@
1
+ # 🗂️ Beekeeper 🐝
2
+
3
+ ![PyPI - Version](https://img.shields.io/pypi/v/beekeeper-ai)
4
+ [![Hatch project](https://img.shields.io/badge/%F0%9F%A5%9A-Hatch-4051b5.svg)](https://github.com/pypa/hatch)
5
+ ![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)
6
+ ![Pepy Total Downloads](https://img.shields.io/pepy/dt/beekeeper-ai)
7
+ ![PyPI - License](https://img.shields.io/pypi/l/beekeeper-ai)
8
+
9
+ ## Installation
10
+
11
+ ```bash
12
+ pip install beekeeper-ai
13
+ ```
14
+
15
+ ## 📄 Documentation
16
+
17
+ The documentation can be found Click [here](https://beekeeper-ai.github.io/beekeeper/)!
18
+
19
+ Please check it out for overview of the interfaces, components, integrations and other resources!
@@ -0,0 +1,128 @@
1
+ [build-system]
2
+ requires = ["hatchling"]
3
+ build-backend = "hatchling.build"
4
+
5
+ [project]
6
+ name = "beekeeper-ai"
7
+ version = "1.0.1"
8
+ description = "Load any data in one line of code and connect with AI applications"
9
+ authors = [{ name = "Leonardo Furnielis", email = "leonardofurnielis@outlook.com" }]
10
+ license = { text = "Apache-2.0" }
11
+ readme = "README.md"
12
+ requires-python = ">=3.10,<4.0"
13
+ keywords = ["AI", "LLM", "QA", "RAG", "data", "observability", "retrieval", "semantic-search"]
14
+ classifiers = [
15
+ "Topic :: Scientific/Engineering :: Artificial Intelligence",
16
+ "Topic :: Software Development :: Libraries :: Python Modules",
17
+ "Topic :: Software Development :: Libraries :: Application Frameworks",
18
+ ]
19
+ dependencies = [
20
+ "beekeeper-core>=1.0.1,<2.0.0",
21
+ "beekeeper-embeddings-huggingface>=1.0.0,<2.0.0",
22
+ "beekeeper-llms-litellm>=1.0.0,<2.0.0",
23
+ "beekeeper-readers-file>=1.0.0,<2.0.0",
24
+ ]
25
+
26
+ [project.optional-dependencies]
27
+ dev = [
28
+ "ruff>=0.11.13",
29
+ ]
30
+ docs = [
31
+ "furo>=2024.8.6",
32
+ "sphinx>=8.1.3",
33
+ "sphinx-copybutton>=0.5.2",
34
+ "sphinx-favicon>=1.0.1",
35
+ ]
36
+
37
+ [project.urls]
38
+ Documentation = "https://beekeeper-ai.github.io/beekeeper"
39
+ Repository = "https://github.com/beekeeper-ai/beekeeper"
40
+
41
+ [tool.hatch.build.targets.sdist]
42
+ include = ["_beekeeper/beekeeper"]
43
+
44
+ [tool.hatch.build.targets.wheel]
45
+ include = ["_beekeeper/beekeeper"]
46
+
47
+ [tool.hatch.build.targets.wheel.sources]
48
+ "_beekeeper/beekeeper" = "beekeeper"
49
+
50
+ [tool.ruff]
51
+ extend-exclude = ["docs"]
52
+ target-version = "py310"
53
+
54
+ [tool.ruff.lint]
55
+ ignore = ["D417", "COM812", "E501"]
56
+ select = [
57
+ "B009",
58
+ "B010",
59
+ "B011",
60
+ "B013",
61
+ "B014",
62
+ "C4",
63
+ "COM819",
64
+ "D201",
65
+ "D202",
66
+ "D204",
67
+ "D207",
68
+ "D208",
69
+ "D209",
70
+ "D211",
71
+ "D213",
72
+ "D214",
73
+ "D215",
74
+ "D3",
75
+ "D4",
76
+ "E",
77
+ "F504",
78
+ "F541",
79
+ "F632",
80
+ "FLY",
81
+ "G010",
82
+ "I",
83
+ "PERF1",
84
+ "PIE790",
85
+ "PIE794",
86
+ "PIE808",
87
+ "PIE810",
88
+ "PLC0414",
89
+ "PLE2510",
90
+ "PLE2512",
91
+ "PLE2513",
92
+ "PLE2514",
93
+ "PLE2515",
94
+ "PLR1711",
95
+ "PT001",
96
+ "PT003",
97
+ "PT006",
98
+ "PTH201",
99
+ "PYI",
100
+ "Q",
101
+ "RET501",
102
+ "RET502",
103
+ "RET503",
104
+ "RET504",
105
+ "RSE",
106
+ "RUF005",
107
+ "RUF010",
108
+ "RUF015",
109
+ "SIM101",
110
+ "SIM103",
111
+ "SIM109",
112
+ "SIM118",
113
+ "SIM2",
114
+ "SIM300",
115
+ "SIM9",
116
+ "TC005",
117
+ "TD006",
118
+ "TID",
119
+ "TRY201",
120
+ "W",
121
+ ]
122
+
123
+ [tool.ruff.format]
124
+ docstring-code-format = true
125
+ docstring-code-line-length = "dynamic"
126
+
127
+ [tool.ruff.lint.pydocstyle]
128
+ convention = "google"
@@ -1,7 +0,0 @@
1
- Copyright 2024 Leonardo Furnielis
2
-
3
- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4
-
5
- The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6
-
7
- THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -1,49 +0,0 @@
1
- Metadata-Version: 2.1
2
- Name: beekeeper-ai
3
- Version: 0.6.6
4
- Summary: Load any data in one line of code and connect with AI applications
5
- Home-page: https://github.com/leonardofurnielis/beekeeper
6
- License: MIT
7
- Keywords: AI,LLM,QA,RAG,data,monitor,retrieval,semantic-search
8
- Author: Leonardo Furnielis
9
- Author-email: leonardofurnielis@outlook.com
10
- Requires-Python: >=3.10,<4.0
11
- Classifier: License :: OSI Approved :: MIT License
12
- Classifier: Operating System :: OS Independent
13
- Classifier: Programming Language :: Python :: 3
14
- Classifier: Programming Language :: Python :: 3.10
15
- Classifier: Programming Language :: Python :: 3.11
16
- Classifier: Programming Language :: Python :: 3.12
17
- Classifier: Programming Language :: Python :: 3.13
18
- Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
19
- Classifier: Topic :: Software Development :: Libraries :: Application Frameworks
20
- Classifier: Topic :: Software Development :: Libraries :: Python Modules
21
- Requires-Dist: nltk (>=3.8.1,<4.0.0)
22
- Requires-Dist: numpy (>=1.26.4,<2.0.0)
23
- Requires-Dist: pydantic (>=2.7.1,<3.0.0)
24
- Requires-Dist: sentence-transformers (>=2.7.0,<3.0.0)
25
- Requires-Dist: tiktoken (>=0.7.0,<0.8.0)
26
- Requires-Dist: torch (==2.1.0)
27
- Project-URL: Documentation, https://leonardofurnielis.github.io/beekeeper
28
- Project-URL: Repository, https://github.com/leonardofurnielis/beekeeper
29
- Description-Content-Type: text/markdown
30
-
31
- # Beekeeper
32
-
33
- ![PyPI - Version](https://img.shields.io/pypi/v/beekeeper-ai)
34
- [![Poetry](https://img.shields.io/endpoint?url=https://python-poetry.org/badge/v0.json)](https://python-poetry.org/)
35
- ![PyPI - Downloads](https://img.shields.io/pypi/dm/beekeeper-ai)
36
- ![PyPI - License](https://img.shields.io/pypi/l/beekeeper-ai)
37
-
38
- ## Installation
39
-
40
- ```bash
41
- pip install beekeeper-ai
42
- ```
43
-
44
- ## 📄 Documentation
45
-
46
- The documentation can be found Click [here](https://leonardofurnielis.github.io/beekeeper)!
47
-
48
- Please check it out for overview of the interfaces, components, integrations and other resources!
49
-
@@ -1,18 +0,0 @@
1
- # Beekeeper
2
-
3
- ![PyPI - Version](https://img.shields.io/pypi/v/beekeeper-ai)
4
- [![Poetry](https://img.shields.io/endpoint?url=https://python-poetry.org/badge/v0.json)](https://python-poetry.org/)
5
- ![PyPI - Downloads](https://img.shields.io/pypi/dm/beekeeper-ai)
6
- ![PyPI - License](https://img.shields.io/pypi/l/beekeeper-ai)
7
-
8
- ## Installation
9
-
10
- ```bash
11
- pip install beekeeper-ai
12
- ```
13
-
14
- ## 📄 Documentation
15
-
16
- The documentation can be found Click [here](https://leonardofurnielis.github.io/beekeeper)!
17
-
18
- Please check it out for overview of the interfaces, components, integrations and other resources!
@@ -1 +0,0 @@
1
- __version__ = "0.6.6"
@@ -1,6 +0,0 @@
1
- from beekeeper.core.document.schema import Document, DocumentWithScore
2
-
3
- __all__ = [
4
- "Document",
5
- "DocumentWithScore"
6
- ]
@@ -1,97 +0,0 @@
1
- import uuid
2
- from abc import ABC, abstractmethod
3
- from dataclasses import dataclass
4
- from typing import TYPE_CHECKING, Any, Dict, Optional
5
-
6
- from pydantic.v1 import BaseModel, Field, validator
7
-
8
- if TYPE_CHECKING:
9
- from langchain_core.documents import Document as LangChainDocument
10
-
11
-
12
- class BaseDocument(ABC, BaseModel):
13
- """Generic abstract interface for retrievable documents."""
14
-
15
- doc_id: str = Field(
16
- default_factory=lambda: str(uuid.uuid4()),
17
- description="Unique ID of the document.")
18
- metadata: Dict[str, Any] = Field(
19
- default_factory=dict,
20
- description="A flat dictionary of metadata fields.")
21
-
22
- @validator("metadata", pre=True)
23
- def _validate_metadata(cls, v) -> Dict:
24
- if v is None:
25
- return {}
26
- return v
27
-
28
- @abstractmethod
29
- def get_content(self) -> str:
30
- """Get document content."""
31
-
32
- @abstractmethod
33
- def get_metadata(self) -> str:
34
- """Get metadata."""
35
-
36
-
37
- class Document(BaseDocument):
38
- """Generic interface for data document."""
39
-
40
- text: str = Field(default="", description="Text content of the document.")
41
-
42
- @classmethod
43
- def class_name(cls) -> str:
44
- return "Document"
45
-
46
- def get_content(self) -> str:
47
- """Get the text content."""
48
- return self.text
49
-
50
- def get_metadata(self) -> dict:
51
- """Get metadata."""
52
- return self.metadata
53
-
54
- @classmethod
55
- def from_langchain_format(cls, doc: "LangChainDocument") -> "Document":
56
- """
57
- Convert a document from LangChain format.
58
-
59
- Args:
60
- doc (LangChainDocument): Document in LangChain format.
61
- """
62
- return cls(text=doc.page_content, metadata=doc.metadata)
63
-
64
-
65
- @dataclass
66
- class DocumentWithScore:
67
- document: BaseDocument
68
- score: Optional[float] = None
69
-
70
- @classmethod
71
- def class_name(cls) -> str:
72
- return "DocumentWithScore"
73
-
74
- def get_score(self) -> float:
75
- """Get score."""
76
- if self.score is None:
77
- return 0.0
78
- else:
79
- return self.score
80
-
81
- # #### pass through methods to BaseDocument ####
82
- @property
83
- def doc_id(self) -> str:
84
- return self.document.doc_id
85
-
86
- @property
87
- def text(self) -> str:
88
- if isinstance(self.document, Document):
89
- return self.document.text
90
- else:
91
- raise ValueError("Must be a Document to get text")
92
-
93
- def get_content(self) -> str:
94
- return self.document.get_content()
95
-
96
- def get_metadata(self) -> str:
97
- return self.document.get_metadata()
@@ -1,5 +0,0 @@
1
- from beekeeper.core.document_loaders.base import BaseLoader
2
-
3
- __all__ = [
4
- "BaseLoader",
5
- ]
@@ -1,24 +0,0 @@
1
- from abc import ABC, abstractmethod
2
- from typing import List, Optional
3
-
4
- from pydantic.v1 import BaseModel
5
-
6
- from beekeeper.core.document import Document
7
-
8
-
9
- class BaseLoader(ABC, BaseModel):
10
- """An interface for document loader."""
11
-
12
- @classmethod
13
- def class_name(cls) -> str:
14
- return "BaseLoader"
15
-
16
- @abstractmethod
17
- def load_data(self, extra_info: Optional[dict] = None) -> List[Document]:
18
- """Loads data."""
19
-
20
- def load(self) -> List[Document]:
21
- return self.load_data()
22
-
23
- def lazy_load(self) -> List[Document]:
24
- return self.load_data()