beekeeper-core 1.0.8__tar.gz → 1.0.10__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.
- {beekeeper_core-1.0.8 → beekeeper_core-1.0.10}/PKG-INFO +6 -6
- {beekeeper_core-1.0.8 → beekeeper_core-1.0.10}/beekeeper/core/llms/base.py +11 -7
- {beekeeper_core-1.0.8 → beekeeper_core-1.0.10}/beekeeper/core/llms/types.py +4 -0
- {beekeeper_core-1.0.8 → beekeeper_core-1.0.10}/pyproject.toml +6 -6
- {beekeeper_core-1.0.8 → beekeeper_core-1.0.10}/.gitignore +0 -0
- {beekeeper_core-1.0.8 → beekeeper_core-1.0.10}/README.md +0 -0
- {beekeeper_core-1.0.8 → beekeeper_core-1.0.10}/beekeeper/core/__init__.py +0 -0
- {beekeeper_core-1.0.8 → beekeeper_core-1.0.10}/beekeeper/core/document/__init__.py +0 -0
- {beekeeper_core-1.0.8 → beekeeper_core-1.0.10}/beekeeper/core/document/base.py +0 -0
- {beekeeper_core-1.0.8 → beekeeper_core-1.0.10}/beekeeper/core/embeddings/__init__.py +0 -0
- {beekeeper_core-1.0.8 → beekeeper_core-1.0.10}/beekeeper/core/embeddings/base.py +0 -0
- {beekeeper_core-1.0.8 → beekeeper_core-1.0.10}/beekeeper/core/evaluation/__init__.py +0 -0
- {beekeeper_core-1.0.8 → beekeeper_core-1.0.10}/beekeeper/core/evaluation/context_similarity.py +0 -0
- {beekeeper_core-1.0.8 → beekeeper_core-1.0.10}/beekeeper/core/flows/__init__.py +0 -0
- {beekeeper_core-1.0.8 → beekeeper_core-1.0.10}/beekeeper/core/flows/ingestion_flow.py +0 -0
- {beekeeper_core-1.0.8 → beekeeper_core-1.0.10}/beekeeper/core/guardrails/__init__.py +0 -0
- {beekeeper_core-1.0.8 → beekeeper_core-1.0.10}/beekeeper/core/guardrails/base.py +0 -0
- {beekeeper_core-1.0.8 → beekeeper_core-1.0.10}/beekeeper/core/guardrails/types.py +0 -0
- {beekeeper_core-1.0.8 → beekeeper_core-1.0.10}/beekeeper/core/llms/__init__.py +0 -0
- {beekeeper_core-1.0.8 → beekeeper_core-1.0.10}/beekeeper/core/llms/decorators.py +0 -0
- {beekeeper_core-1.0.8 → beekeeper_core-1.0.10}/beekeeper/core/monitors/__init__.py +0 -0
- {beekeeper_core-1.0.8 → beekeeper_core-1.0.10}/beekeeper/core/monitors/base.py +0 -0
- {beekeeper_core-1.0.8 → beekeeper_core-1.0.10}/beekeeper/core/monitors/types.py +0 -0
- {beekeeper_core-1.0.8 → beekeeper_core-1.0.10}/beekeeper/core/observers/__init__.py +0 -0
- {beekeeper_core-1.0.8 → beekeeper_core-1.0.10}/beekeeper/core/observers/base.py +0 -0
- {beekeeper_core-1.0.8 → beekeeper_core-1.0.10}/beekeeper/core/observers/types.py +0 -0
- {beekeeper_core-1.0.8 → beekeeper_core-1.0.10}/beekeeper/core/prompts/__init__.py +0 -0
- {beekeeper_core-1.0.8 → beekeeper_core-1.0.10}/beekeeper/core/prompts/base.py +0 -0
- {beekeeper_core-1.0.8 → beekeeper_core-1.0.10}/beekeeper/core/prompts/utils.py +0 -0
- {beekeeper_core-1.0.8 → beekeeper_core-1.0.10}/beekeeper/core/readers/__init__.py +0 -0
- {beekeeper_core-1.0.8 → beekeeper_core-1.0.10}/beekeeper/core/readers/base.py +0 -0
- {beekeeper_core-1.0.8 → beekeeper_core-1.0.10}/beekeeper/core/readers/directory.py +0 -0
- {beekeeper_core-1.0.8 → beekeeper_core-1.0.10}/beekeeper/core/schema.py +0 -0
- {beekeeper_core-1.0.8 → beekeeper_core-1.0.10}/beekeeper/core/text_chunkers/__init__.py +0 -0
- {beekeeper_core-1.0.8 → beekeeper_core-1.0.10}/beekeeper/core/text_chunkers/base.py +0 -0
- {beekeeper_core-1.0.8 → beekeeper_core-1.0.10}/beekeeper/core/text_chunkers/semantic.py +0 -0
- {beekeeper_core-1.0.8 → beekeeper_core-1.0.10}/beekeeper/core/text_chunkers/sentence.py +0 -0
- {beekeeper_core-1.0.8 → beekeeper_core-1.0.10}/beekeeper/core/text_chunkers/token.py +0 -0
- {beekeeper_core-1.0.8 → beekeeper_core-1.0.10}/beekeeper/core/text_chunkers/utils.py +0 -0
- {beekeeper_core-1.0.8 → beekeeper_core-1.0.10}/beekeeper/core/tools/__init__.py +0 -0
- {beekeeper_core-1.0.8 → beekeeper_core-1.0.10}/beekeeper/core/tools/base.py +0 -0
- {beekeeper_core-1.0.8 → beekeeper_core-1.0.10}/beekeeper/core/utils/pairwise.py +0 -0
- {beekeeper_core-1.0.8 → beekeeper_core-1.0.10}/beekeeper/core/vector_stores/__init__.py +0 -0
- {beekeeper_core-1.0.8 → beekeeper_core-1.0.10}/beekeeper/core/vector_stores/base.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: beekeeper-core
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.10
|
|
4
4
|
Summary: Load any data in one line of code and connect with AI applications
|
|
5
5
|
Project-URL: Repository, https://github.com/beekeeper-ai/beekeeper
|
|
6
6
|
Author-email: Leonardo Furnielis <leonardofurnielis@outlook.com>
|
|
@@ -9,14 +9,14 @@ Keywords: AI,LLM,QA,RAG,data,observability,retrieval,semantic-search
|
|
|
9
9
|
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
10
10
|
Classifier: Topic :: Software Development :: Libraries :: Application Frameworks
|
|
11
11
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
12
|
-
Requires-Python: <
|
|
13
|
-
Requires-Dist: deprecated<2.0.0,>=1.
|
|
12
|
+
Requires-Python: <3.14,>=3.11
|
|
13
|
+
Requires-Dist: deprecated<2.0.0,>=1.3.1
|
|
14
14
|
Requires-Dist: nltk<4.0.0,>=3.9.2
|
|
15
15
|
Requires-Dist: numpy<1.27.0,>=1.26.4
|
|
16
|
-
Requires-Dist: pydantic<3.0.0,>=2.
|
|
17
|
-
Requires-Dist: tiktoken<0.
|
|
16
|
+
Requires-Dist: pydantic<3.0.0,>=2.12.5
|
|
17
|
+
Requires-Dist: tiktoken<0.13.0,>=0.12.0
|
|
18
18
|
Provides-Extra: dev
|
|
19
|
-
Requires-Dist: ruff>=0.
|
|
19
|
+
Requires-Dist: ruff>=0.14.9; extra == 'dev'
|
|
20
20
|
Description-Content-Type: text/markdown
|
|
21
21
|
|
|
22
22
|
# Beekeeper Core
|
|
@@ -16,18 +16,22 @@ class BaseLLM(ABC, BaseModel):
|
|
|
16
16
|
def class_name(cls) -> str:
|
|
17
17
|
return "BaseLLM"
|
|
18
18
|
|
|
19
|
-
def
|
|
20
|
-
"""
|
|
21
|
-
|
|
19
|
+
def text_completion(self, prompt: str, **kwargs: Any) -> str:
|
|
20
|
+
"""
|
|
21
|
+
Generates a chat completion for LLM. Using OpenAI's standard endpoint (/completions).
|
|
22
|
+
|
|
23
|
+
Args:
|
|
24
|
+
prompt (str): The input prompt to generate a completion for.
|
|
25
|
+
**kwargs (Any): Additional keyword arguments to customize the LLM completion request.
|
|
26
|
+
"""
|
|
27
|
+
response = self.completion(prompt=prompt, **kwargs)
|
|
28
|
+
|
|
29
|
+
return response.text
|
|
22
30
|
|
|
23
31
|
@abstractmethod
|
|
24
32
|
def completion(self, prompt: str, **kwargs: Any) -> GenerateResponse:
|
|
25
33
|
"""Generates a completion for LLM."""
|
|
26
34
|
|
|
27
|
-
@abstractmethod
|
|
28
|
-
def text_completion(self, prompt: str, **kwargs: Any) -> str:
|
|
29
|
-
"""Generates a text completion for LLM."""
|
|
30
|
-
|
|
31
35
|
@abstractmethod
|
|
32
36
|
def chat_completion(
|
|
33
37
|
self, messages: List[ChatMessage], **kwargs: Any
|
|
@@ -18,6 +18,10 @@ class ChatMessage(BaseModel):
|
|
|
18
18
|
role: MessageRole = Field(default=MessageRole.USER)
|
|
19
19
|
content: Optional[str] = Field(default=None)
|
|
20
20
|
|
|
21
|
+
def to_dict(self) -> dict:
|
|
22
|
+
"""Convert ChatMessage to dict."""
|
|
23
|
+
return self.model_dump(exclude_none=True)
|
|
24
|
+
|
|
21
25
|
|
|
22
26
|
class GenerateResponse(BaseModel):
|
|
23
27
|
"""Generate response."""
|
|
@@ -4,12 +4,12 @@ build-backend = "hatchling.build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "beekeeper-core"
|
|
7
|
-
version = "1.0.
|
|
7
|
+
version = "1.0.10"
|
|
8
8
|
description = "Load any data in one line of code and connect with AI applications"
|
|
9
9
|
authors = [{ name = "Leonardo Furnielis", email = "leonardofurnielis@outlook.com" }]
|
|
10
10
|
license = { text = "Apache-2.0" }
|
|
11
11
|
readme = "README.md"
|
|
12
|
-
requires-python = ">=3.
|
|
12
|
+
requires-python = ">=3.11,<3.14"
|
|
13
13
|
keywords = ["AI", "LLM", "QA", "RAG", "data", "observability", "retrieval", "semantic-search"]
|
|
14
14
|
classifiers = [
|
|
15
15
|
"Topic :: Scientific/Engineering :: Artificial Intelligence",
|
|
@@ -17,16 +17,16 @@ classifiers = [
|
|
|
17
17
|
"Topic :: Software Development :: Libraries :: Application Frameworks",
|
|
18
18
|
]
|
|
19
19
|
dependencies = [
|
|
20
|
-
"deprecated>=1.
|
|
20
|
+
"deprecated>=1.3.1,<2.0.0",
|
|
21
21
|
"nltk>=3.9.2,<4.0.0",
|
|
22
22
|
"numpy>=1.26.4,<1.27.0",
|
|
23
|
-
"pydantic>=2.
|
|
24
|
-
"tiktoken>=0.
|
|
23
|
+
"pydantic>=2.12.5,<3.0.0",
|
|
24
|
+
"tiktoken>=0.12.0,<0.13.0",
|
|
25
25
|
]
|
|
26
26
|
|
|
27
27
|
[project.optional-dependencies]
|
|
28
28
|
dev = [
|
|
29
|
-
"ruff>=0.
|
|
29
|
+
"ruff>=0.14.9",
|
|
30
30
|
]
|
|
31
31
|
|
|
32
32
|
[project.urls]
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{beekeeper_core-1.0.8 → beekeeper_core-1.0.10}/beekeeper/core/evaluation/context_similarity.py
RENAMED
|
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
|
|
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
|