beekeeper-core 1.0.4__tar.gz → 1.0.6__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.4 → beekeeper_core-1.0.6}/PKG-INFO +1 -1
- beekeeper_core-1.0.6/beekeeper/core/observers/types.py +11 -0
- {beekeeper_core-1.0.4 → beekeeper_core-1.0.6}/beekeeper/core/prompts/base.py +12 -0
- {beekeeper_core-1.0.4 → beekeeper_core-1.0.6}/pyproject.toml +1 -1
- {beekeeper_core-1.0.4 → beekeeper_core-1.0.6}/.gitignore +0 -0
- {beekeeper_core-1.0.4 → beekeeper_core-1.0.6}/README.md +0 -0
- {beekeeper_core-1.0.4 → beekeeper_core-1.0.6}/beekeeper/core/__init__.py +0 -0
- {beekeeper_core-1.0.4 → beekeeper_core-1.0.6}/beekeeper/core/document/__init__.py +0 -0
- {beekeeper_core-1.0.4 → beekeeper_core-1.0.6}/beekeeper/core/document/base.py +0 -0
- {beekeeper_core-1.0.4 → beekeeper_core-1.0.6}/beekeeper/core/embeddings/__init__.py +0 -0
- {beekeeper_core-1.0.4 → beekeeper_core-1.0.6}/beekeeper/core/embeddings/base.py +0 -0
- {beekeeper_core-1.0.4 → beekeeper_core-1.0.6}/beekeeper/core/evaluation/__init__.py +0 -0
- {beekeeper_core-1.0.4 → beekeeper_core-1.0.6}/beekeeper/core/evaluation/context_similarity.py +0 -0
- {beekeeper_core-1.0.4 → beekeeper_core-1.0.6}/beekeeper/core/flows/__init__.py +0 -0
- {beekeeper_core-1.0.4 → beekeeper_core-1.0.6}/beekeeper/core/flows/ingestion_flow.py +0 -0
- {beekeeper_core-1.0.4 → beekeeper_core-1.0.6}/beekeeper/core/llms/__init__.py +0 -0
- {beekeeper_core-1.0.4 → beekeeper_core-1.0.6}/beekeeper/core/llms/base.py +0 -0
- {beekeeper_core-1.0.4 → beekeeper_core-1.0.6}/beekeeper/core/llms/decorators.py +0 -0
- {beekeeper_core-1.0.4 → beekeeper_core-1.0.6}/beekeeper/core/llms/types.py +0 -0
- {beekeeper_core-1.0.4 → beekeeper_core-1.0.6}/beekeeper/core/monitors/__init__.py +0 -0
- {beekeeper_core-1.0.4 → beekeeper_core-1.0.6}/beekeeper/core/monitors/base.py +0 -0
- {beekeeper_core-1.0.4 → beekeeper_core-1.0.6}/beekeeper/core/monitors/types.py +0 -0
- {beekeeper_core-1.0.4 → beekeeper_core-1.0.6}/beekeeper/core/observers/__init__.py +0 -0
- {beekeeper_core-1.0.4 → beekeeper_core-1.0.6}/beekeeper/core/observers/base.py +0 -0
- {beekeeper_core-1.0.4 → beekeeper_core-1.0.6}/beekeeper/core/prompts/__init__.py +0 -0
- {beekeeper_core-1.0.4 → beekeeper_core-1.0.6}/beekeeper/core/prompts/utils.py +0 -0
- {beekeeper_core-1.0.4 → beekeeper_core-1.0.6}/beekeeper/core/readers/__init__.py +0 -0
- {beekeeper_core-1.0.4 → beekeeper_core-1.0.6}/beekeeper/core/readers/base.py +0 -0
- {beekeeper_core-1.0.4 → beekeeper_core-1.0.6}/beekeeper/core/readers/directory.py +0 -0
- {beekeeper_core-1.0.4 → beekeeper_core-1.0.6}/beekeeper/core/schema.py +0 -0
- {beekeeper_core-1.0.4 → beekeeper_core-1.0.6}/beekeeper/core/text_chunkers/__init__.py +0 -0
- {beekeeper_core-1.0.4 → beekeeper_core-1.0.6}/beekeeper/core/text_chunkers/base.py +0 -0
- {beekeeper_core-1.0.4 → beekeeper_core-1.0.6}/beekeeper/core/text_chunkers/semantic.py +0 -0
- {beekeeper_core-1.0.4 → beekeeper_core-1.0.6}/beekeeper/core/text_chunkers/sentence.py +0 -0
- {beekeeper_core-1.0.4 → beekeeper_core-1.0.6}/beekeeper/core/text_chunkers/token.py +0 -0
- {beekeeper_core-1.0.4 → beekeeper_core-1.0.6}/beekeeper/core/text_chunkers/utils.py +0 -0
- {beekeeper_core-1.0.4 → beekeeper_core-1.0.6}/beekeeper/core/tools/__init__.py +0 -0
- {beekeeper_core-1.0.4 → beekeeper_core-1.0.6}/beekeeper/core/tools/base.py +0 -0
- {beekeeper_core-1.0.4 → beekeeper_core-1.0.6}/beekeeper/core/utils/pairwise.py +0 -0
- {beekeeper_core-1.0.4 → beekeeper_core-1.0.6}/beekeeper/core/vector_stores/__init__.py +0 -0
- {beekeeper_core-1.0.4 → beekeeper_core-1.0.6}/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.6
|
|
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>
|
|
@@ -22,6 +22,18 @@ class PromptTemplate(BaseModel):
|
|
|
22
22
|
def __init__(self, template: str):
|
|
23
23
|
super().__init__(template=template)
|
|
24
24
|
|
|
25
|
+
@classmethod
|
|
26
|
+
def from_value(cls, value: str) -> "PromptTemplate":
|
|
27
|
+
if isinstance(value, cls):
|
|
28
|
+
return value
|
|
29
|
+
|
|
30
|
+
if isinstance(value, str):
|
|
31
|
+
return cls(value)
|
|
32
|
+
|
|
33
|
+
raise TypeError(
|
|
34
|
+
f"Invalid type for parameter 'prompt_template'. Expected str or PromptTemplate, but received {type(value).__name__}."
|
|
35
|
+
)
|
|
36
|
+
|
|
25
37
|
def format(self, **kwargs):
|
|
26
38
|
"""
|
|
27
39
|
Formats the template using the provided dynamic variables.
|
|
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "beekeeper-core"
|
|
7
|
-
version = "1.0.
|
|
7
|
+
version = "1.0.6"
|
|
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" }
|
|
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.4 → beekeeper_core-1.0.6}/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
|