beekeeper-core 1.0.2__py3-none-any.whl → 1.0.10__py3-none-any.whl
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/embeddings/base.py +23 -12
- beekeeper/core/evaluation/context_similarity.py +2 -2
- beekeeper/core/guardrails/__init__.py +4 -0
- beekeeper/core/guardrails/base.py +15 -0
- beekeeper/core/guardrails/types.py +13 -0
- beekeeper/core/llms/__init__.py +1 -3
- beekeeper/core/llms/base.py +13 -9
- beekeeper/core/llms/decorators.py +80 -1
- beekeeper/core/llms/types.py +4 -0
- beekeeper/core/monitors/__init__.py +3 -0
- beekeeper/core/monitors/base.py +36 -0
- beekeeper/core/monitors/types.py +11 -0
- beekeeper/core/observers/__init__.py +2 -2
- beekeeper/core/observers/base.py +25 -28
- beekeeper/core/prompts/__init__.py +1 -1
- beekeeper/core/prompts/base.py +12 -0
- {beekeeper_core-1.0.2.dist-info → beekeeper_core-1.0.10.dist-info}/METADATA +6 -6
- {beekeeper_core-1.0.2.dist-info → beekeeper_core-1.0.10.dist-info}/RECORD +19 -13
- {beekeeper_core-1.0.2.dist-info → beekeeper_core-1.0.10.dist-info}/WHEEL +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
from abc import ABC, abstractmethod
|
|
2
2
|
from enum import Enum
|
|
3
|
-
from typing import List
|
|
3
|
+
from typing import List, Union
|
|
4
4
|
|
|
5
5
|
import numpy as np
|
|
6
6
|
from beekeeper.core.document import Document
|
|
@@ -43,17 +43,20 @@ class BaseEmbedding(TransformerComponent, ABC):
|
|
|
43
43
|
return "BaseEmbedding"
|
|
44
44
|
|
|
45
45
|
@abstractmethod
|
|
46
|
-
def
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
"""Embed a single text string."""
|
|
51
|
-
return self.embed_texts([query])[0]
|
|
46
|
+
def embed_text(
|
|
47
|
+
self, input: Union[str, List[str]]
|
|
48
|
+
) -> Union[Embedding, List[Embedding]]:
|
|
49
|
+
"""Embed one or more text strings."""
|
|
52
50
|
|
|
53
51
|
def embed_documents(self, documents: List[Document]) -> List[Document]:
|
|
54
|
-
"""
|
|
52
|
+
"""
|
|
53
|
+
Embed a list of documents and assign the computed embeddings to the 'embedding' attribute.
|
|
54
|
+
|
|
55
|
+
Args:
|
|
56
|
+
documents (List[Document]): List of documents to compute embeddings.
|
|
57
|
+
"""
|
|
55
58
|
texts = [document.get_content() for document in documents]
|
|
56
|
-
embeddings = self.
|
|
59
|
+
embeddings = self.embed_text(texts)
|
|
57
60
|
|
|
58
61
|
for document, embedding in zip(documents, embeddings):
|
|
59
62
|
document.embedding = embedding
|
|
@@ -61,7 +64,15 @@ class BaseEmbedding(TransformerComponent, ABC):
|
|
|
61
64
|
return documents
|
|
62
65
|
|
|
63
66
|
@deprecated(
|
|
64
|
-
reason="'
|
|
67
|
+
reason="'embed_texts()' is deprecated and will be removed in a future version. Use 'embed_text()' instead.",
|
|
68
|
+
version="1.0.3",
|
|
69
|
+
action="always",
|
|
70
|
+
)
|
|
71
|
+
def embed_texts(self, texts: List[str]) -> List[Embedding]:
|
|
72
|
+
return self.embed_text(texts)
|
|
73
|
+
|
|
74
|
+
@deprecated(
|
|
75
|
+
reason="'get_text_embedding()' is deprecated and will be removed in a future version. Use 'embed_text()' instead.",
|
|
65
76
|
version="1.0.2",
|
|
66
77
|
action="always",
|
|
67
78
|
)
|
|
@@ -69,7 +80,7 @@ class BaseEmbedding(TransformerComponent, ABC):
|
|
|
69
80
|
return self.embed_text(query)
|
|
70
81
|
|
|
71
82
|
@deprecated(
|
|
72
|
-
reason="'get_texts_embedding()' is deprecated and will be removed in a future version. Use 'embed_texts' instead.",
|
|
83
|
+
reason="'get_texts_embedding()' is deprecated and will be removed in a future version. Use 'embed_texts()' instead.",
|
|
73
84
|
version="1.0.2",
|
|
74
85
|
action="always",
|
|
75
86
|
)
|
|
@@ -77,7 +88,7 @@ class BaseEmbedding(TransformerComponent, ABC):
|
|
|
77
88
|
return self.embed_texts(texts)
|
|
78
89
|
|
|
79
90
|
@deprecated(
|
|
80
|
-
reason="'get_documents_embedding()' is deprecated and will be removed in a future version. Use 'embed_documents' instead.",
|
|
91
|
+
reason="'get_documents_embedding()' is deprecated and will be removed in a future version. Use 'embed_documents()' instead.",
|
|
81
92
|
version="1.0.2",
|
|
82
93
|
action="always",
|
|
83
94
|
)
|
|
@@ -53,10 +53,10 @@ class ContextSimilarityEvaluator(BaseModel):
|
|
|
53
53
|
)
|
|
54
54
|
|
|
55
55
|
evaluation_result = {"contexts_score": [], "score": 0}
|
|
56
|
-
candidate_embedding = self.embed_model.
|
|
56
|
+
candidate_embedding = self.embed_model.embed_text(generated_text)
|
|
57
57
|
|
|
58
58
|
for context in contexts:
|
|
59
|
-
context_embedding = self.embed_model.
|
|
59
|
+
context_embedding = self.embed_model.embed_text(context)
|
|
60
60
|
evaluation_result["contexts_score"].append(
|
|
61
61
|
self.embed_model.similarity(
|
|
62
62
|
candidate_embedding,
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
from abc import ABC, abstractmethod
|
|
2
|
+
|
|
3
|
+
from beekeeper.core.guardrails.types import GuardrailResponse
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class BaseGuardrail(ABC):
|
|
7
|
+
"""Abstract base class defining the interface for LLMs."""
|
|
8
|
+
|
|
9
|
+
@classmethod
|
|
10
|
+
def class_name(cls) -> str:
|
|
11
|
+
return "BaseGuardrail"
|
|
12
|
+
|
|
13
|
+
@abstractmethod
|
|
14
|
+
def enforce(self, text: str, direction: str) -> GuardrailResponse:
|
|
15
|
+
"""Runs policies enforcement to specified guardrail."""
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
from typing import Any, Optional
|
|
2
|
+
|
|
3
|
+
from pydantic import BaseModel, Field
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class GuardrailResponse(BaseModel):
|
|
7
|
+
"""Guardrail response."""
|
|
8
|
+
|
|
9
|
+
text: str = Field(..., description="Generated text response")
|
|
10
|
+
action: Optional[str] = Field(
|
|
11
|
+
default=None, description="Action taken by the guardrail"
|
|
12
|
+
)
|
|
13
|
+
raw: Optional[Any] = Field(default=None)
|
beekeeper/core/llms/__init__.py
CHANGED
beekeeper/core/llms/base.py
CHANGED
|
@@ -2,7 +2,7 @@ from abc import ABC, abstractmethod
|
|
|
2
2
|
from typing import Any, List, Optional
|
|
3
3
|
|
|
4
4
|
from beekeeper.core.llms.types import ChatMessage, ChatResponse, GenerateResponse
|
|
5
|
-
from beekeeper.core.
|
|
5
|
+
from beekeeper.core.monitors import BaseMonitor
|
|
6
6
|
from pydantic import BaseModel
|
|
7
7
|
|
|
8
8
|
|
|
@@ -10,24 +10,28 @@ class BaseLLM(ABC, BaseModel):
|
|
|
10
10
|
"""Abstract base class defining the interface for LLMs."""
|
|
11
11
|
|
|
12
12
|
model_config = {"arbitrary_types_allowed": True}
|
|
13
|
-
callback_manager: Optional[
|
|
13
|
+
callback_manager: Optional[BaseMonitor] = None
|
|
14
14
|
|
|
15
15
|
@classmethod
|
|
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
|
|
@@ -5,11 +5,17 @@ from logging import getLogger
|
|
|
5
5
|
from typing import Callable
|
|
6
6
|
|
|
7
7
|
from beekeeper.core.llms.types import ChatMessage
|
|
8
|
-
from beekeeper.core.
|
|
8
|
+
from beekeeper.core.monitors.types import PayloadRecord
|
|
9
|
+
from deprecated import deprecated
|
|
9
10
|
|
|
10
11
|
logger = getLogger(__name__)
|
|
11
12
|
|
|
12
13
|
|
|
14
|
+
@deprecated(
|
|
15
|
+
reason="'llm_chat_observer()' is deprecated and will be removed in a future version. Use 'llm_chat_monitor()'.",
|
|
16
|
+
version="1.0.8",
|
|
17
|
+
action="always",
|
|
18
|
+
)
|
|
13
19
|
def llm_chat_observer() -> Callable:
|
|
14
20
|
"""
|
|
15
21
|
Decorator to wrap a method with llm handler logic.
|
|
@@ -81,3 +87,76 @@ def llm_chat_observer() -> Callable:
|
|
|
81
87
|
return async_wrapper
|
|
82
88
|
|
|
83
89
|
return decorator
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
def llm_chat_monitor() -> Callable:
|
|
93
|
+
"""
|
|
94
|
+
Decorator to wrap a method with llm handler logic.
|
|
95
|
+
Looks for observability instances in `self.callback_manager`.
|
|
96
|
+
"""
|
|
97
|
+
|
|
98
|
+
def decorator(f: Callable) -> Callable:
|
|
99
|
+
def async_wrapper(self, *args, **kwargs):
|
|
100
|
+
callback_manager_fns = getattr(self, "callback_manager", None)
|
|
101
|
+
|
|
102
|
+
start_time = time.time()
|
|
103
|
+
llm_return_val = f(self, *args, **kwargs)
|
|
104
|
+
response_time = int((time.time() - start_time) * 1000)
|
|
105
|
+
|
|
106
|
+
if callback_manager_fns:
|
|
107
|
+
|
|
108
|
+
def async_callback_thread():
|
|
109
|
+
try:
|
|
110
|
+
# Extract input messages
|
|
111
|
+
if len(args) > 0 and isinstance(args[0], ChatMessage):
|
|
112
|
+
input_chat_messages = args[0]
|
|
113
|
+
elif "messages" in kwargs:
|
|
114
|
+
input_chat_messages = kwargs["messages"]
|
|
115
|
+
else:
|
|
116
|
+
raise ValueError(
|
|
117
|
+
"No messages provided in positional or keyword arguments"
|
|
118
|
+
)
|
|
119
|
+
|
|
120
|
+
# Get the user's latest message after each interaction to chat observability.
|
|
121
|
+
user_messages = [
|
|
122
|
+
msg for msg in input_chat_messages if msg.role == "user"
|
|
123
|
+
]
|
|
124
|
+
last_user_message = (
|
|
125
|
+
user_messages[-1].content if user_messages else None
|
|
126
|
+
)
|
|
127
|
+
|
|
128
|
+
# Get the system/instruct (first) message to chat observability.
|
|
129
|
+
system_messages = [
|
|
130
|
+
msg for msg in input_chat_messages if msg.role == "system"
|
|
131
|
+
]
|
|
132
|
+
system_message = (
|
|
133
|
+
system_messages[0].content if system_messages else None
|
|
134
|
+
)
|
|
135
|
+
|
|
136
|
+
callback = callback_manager_fns(
|
|
137
|
+
payload=PayloadRecord(
|
|
138
|
+
input_text=(system_message or "") + last_user_message,
|
|
139
|
+
generated_text=llm_return_val.message.content,
|
|
140
|
+
generated_token_count=llm_return_val.raw["usage"][
|
|
141
|
+
"completion_tokens"
|
|
142
|
+
],
|
|
143
|
+
input_token_count=llm_return_val.raw["usage"][
|
|
144
|
+
"prompt_tokens"
|
|
145
|
+
],
|
|
146
|
+
response_time=response_time,
|
|
147
|
+
)
|
|
148
|
+
)
|
|
149
|
+
|
|
150
|
+
if asyncio.iscoroutine(callback):
|
|
151
|
+
asyncio.run(callback)
|
|
152
|
+
|
|
153
|
+
except Exception as e:
|
|
154
|
+
logger.error(f"Observability callback error: {e}")
|
|
155
|
+
|
|
156
|
+
threading.Thread(target=async_callback_thread).start()
|
|
157
|
+
|
|
158
|
+
return llm_return_val
|
|
159
|
+
|
|
160
|
+
return async_wrapper
|
|
161
|
+
|
|
162
|
+
return decorator
|
beekeeper/core/llms/types.py
CHANGED
|
@@ -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."""
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
from abc import ABC, abstractmethod
|
|
2
|
+
from typing import Optional
|
|
3
|
+
|
|
4
|
+
from beekeeper.core.monitors.types import PayloadRecord
|
|
5
|
+
from beekeeper.core.prompts import PromptTemplate
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class BaseMonitor(ABC):
|
|
9
|
+
"""Abstract base class defining the interface for monitors."""
|
|
10
|
+
|
|
11
|
+
@classmethod
|
|
12
|
+
def class_name(cls) -> str:
|
|
13
|
+
return "BaseMonitor"
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
class PromptMonitor(BaseMonitor):
|
|
17
|
+
"""Abstract base class defining the interface for prompt observability."""
|
|
18
|
+
|
|
19
|
+
def __init__(self, prompt_template: Optional[PromptTemplate] = None) -> None:
|
|
20
|
+
self.prompt_template = prompt_template
|
|
21
|
+
|
|
22
|
+
@classmethod
|
|
23
|
+
def class_name(cls) -> str:
|
|
24
|
+
return "PromptMonitor"
|
|
25
|
+
|
|
26
|
+
@abstractmethod
|
|
27
|
+
def __call__(self, payload: PayloadRecord) -> None:
|
|
28
|
+
"""PromptMonitor."""
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
class TelemetryMonitor(BaseMonitor):
|
|
32
|
+
"""Abstract base class defining the interface for telemetry observability."""
|
|
33
|
+
|
|
34
|
+
@classmethod
|
|
35
|
+
def class_name(cls) -> str:
|
|
36
|
+
return "TelemetryMonitor"
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
from beekeeper.core.observers.base import BaseObserver, ModelObserver
|
|
1
|
+
from beekeeper.core.observers.base import BaseObserver, ModelObserver, PromptObserver
|
|
2
2
|
|
|
3
|
-
__all__ =
|
|
3
|
+
__all__ = ["BaseObserver", "ModelObserver", "PromptObserver"]
|
beekeeper/core/observers/base.py
CHANGED
|
@@ -1,36 +1,33 @@
|
|
|
1
|
-
from
|
|
2
|
-
from
|
|
1
|
+
from beekeeper.core.monitors import BaseMonitor, PromptMonitor
|
|
2
|
+
from deprecated import deprecated
|
|
3
3
|
|
|
4
|
-
from beekeeper.core.observers.types import PayloadRecord
|
|
5
|
-
from beekeeper.core.prompts import PromptTemplate
|
|
6
4
|
|
|
5
|
+
class BaseObserver(BaseMonitor):
|
|
6
|
+
"""DEPRECATED: An interface for observability."""
|
|
7
7
|
|
|
8
|
-
class BaseObserver(ABC):
|
|
9
|
-
"""An interface for observability."""
|
|
10
8
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
9
|
+
@deprecated(
|
|
10
|
+
reason="'PromptObserver()' is deprecated and will be removed in a future version. Use 'PromptMonitor()' from 'beekeeper.core.monitors' instead.",
|
|
11
|
+
version="1.0.4",
|
|
12
|
+
action="always",
|
|
13
|
+
)
|
|
14
|
+
class PromptObserver(PromptMonitor):
|
|
15
|
+
"""DEPRECATED: Abstract base class defining the interface for prompt observability."""
|
|
14
16
|
|
|
15
17
|
|
|
16
|
-
|
|
17
|
-
"
|
|
18
|
+
@deprecated(
|
|
19
|
+
reason="'ModelObserver()' is deprecated and will be removed in a future version. Use 'PromptMonitor()' from 'beekeeper.core.monitors' instead.",
|
|
20
|
+
version="1.0.3",
|
|
21
|
+
action="always",
|
|
22
|
+
)
|
|
23
|
+
class ModelObserver(PromptMonitor):
|
|
24
|
+
"""DEPRECATED: This class is deprecated and kept only for backward compatibility."""
|
|
18
25
|
|
|
19
|
-
def __init__(self, prompt_template: Optional[PromptTemplate] = None) -> None:
|
|
20
|
-
self.prompt_template = prompt_template
|
|
21
26
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
class TelemetryObserver(BaseObserver):
|
|
32
|
-
"""Abstract base class defining the interface for telemetry observability."""
|
|
33
|
-
|
|
34
|
-
@classmethod
|
|
35
|
-
def class_name(cls) -> str:
|
|
36
|
-
return "TelemetryObserver"
|
|
27
|
+
@deprecated(
|
|
28
|
+
reason="'TelemetryObserver()' is deprecated and will be removed in a future version. Use 'TelemetryMonitor()' from 'beekeeper.core.monitors' instead.",
|
|
29
|
+
version="1.0.4",
|
|
30
|
+
action="always",
|
|
31
|
+
)
|
|
32
|
+
class TelemetryObserver(BaseMonitor):
|
|
33
|
+
"""DEPRECATED: Abstract base class defining the interface for telemetry observability."""
|
beekeeper/core/prompts/base.py
CHANGED
|
@@ -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.
|
|
@@ -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
|
|
@@ -3,20 +3,26 @@ beekeeper/core/schema.py,sha256=8OZkRVDry6nglof38w4AvWaRDpf0zOUtqGyfWBhj8lk,267
|
|
|
3
3
|
beekeeper/core/document/__init__.py,sha256=nCN0CNee1v-28W5a26Ca6iAVefcr_KAieAH6QfN4eyw,144
|
|
4
4
|
beekeeper/core/document/base.py,sha256=NBlyj8C0uvvsiElU1wFcXU27LOb3VP0U11nMgOR6cgY,2635
|
|
5
5
|
beekeeper/core/embeddings/__init__.py,sha256=4AzGUtoL7wComtQ-bEVwzoMQgahBhpxcF_4M5rQ0ClQ,159
|
|
6
|
-
beekeeper/core/embeddings/base.py,sha256=
|
|
6
|
+
beekeeper/core/embeddings/base.py,sha256=3r_gr9ceezuAXexkeS5Bq23778BeF7h--IDEvL5pLjE,3464
|
|
7
7
|
beekeeper/core/evaluation/__init__.py,sha256=FyZGpbTXcIM3BynssiS6wUm2KZkMnLVmKF50D7iqkXM,135
|
|
8
|
-
beekeeper/core/evaluation/context_similarity.py,sha256=
|
|
8
|
+
beekeeper/core/evaluation/context_similarity.py,sha256=kT1J3HUgF51HHQA5Sew9ahbSV_jhgbCBMRYqPLKlljQ,2690
|
|
9
9
|
beekeeper/core/flows/__init__.py,sha256=v6VLJ309l5bHYcG1JLUu6_kRoOwIZazonH4-n_UQzYQ,91
|
|
10
10
|
beekeeper/core/flows/ingestion_flow.py,sha256=lfZM6lHF9rBTviimSlptHm_1htaA5qLLhE-Sm_7fwGY,6110
|
|
11
|
-
beekeeper/core/
|
|
12
|
-
beekeeper/core/
|
|
13
|
-
beekeeper/core/
|
|
14
|
-
beekeeper/core/llms/
|
|
15
|
-
beekeeper/core/
|
|
16
|
-
beekeeper/core/
|
|
11
|
+
beekeeper/core/guardrails/__init__.py,sha256=onznwYWAyOaxOVeYZle7oDtj3QJODQvJHcf5td_laZg,169
|
|
12
|
+
beekeeper/core/guardrails/base.py,sha256=T-Ywr80iTL0EFYarCymFEEI3QkMsrw27JVh_0407sEU,427
|
|
13
|
+
beekeeper/core/guardrails/types.py,sha256=7sgw1S5BZY0OqO-n04pHXPU7sG-NEZJlQyIeb2Fsq9Q,359
|
|
14
|
+
beekeeper/core/llms/__init__.py,sha256=PN-5Y_Km_l2vO8v9d7iJ6_5xPCZJBh8UzwqRvQZlmTo,250
|
|
15
|
+
beekeeper/core/llms/base.py,sha256=jFU1om9Qk6KTIsZXeke7lMp--x009G6-fnM1615l2BQ,1292
|
|
16
|
+
beekeeper/core/llms/decorators.py,sha256=wRYXlKD5Cc8k1qPGYEEv-RSJdoHj-MQqKuAAQzkN9Fc,6534
|
|
17
|
+
beekeeper/core/llms/types.py,sha256=lWswZ_bJkPmoTeheWxB1-OnABTYIVAcASkZCwjaTLzE,847
|
|
18
|
+
beekeeper/core/monitors/__init__.py,sha256=TvoiIUJtWRO_4zqCICsFaGl_v4Tpvft1M542Bi13pOI,112
|
|
19
|
+
beekeeper/core/monitors/base.py,sha256=3ooSfgVpWoRLe2TqizHMRK_bI5C-sla57aYJ47FmIXM,980
|
|
20
|
+
beekeeper/core/monitors/types.py,sha256=s-4tB8OdeaCUIRvi6FLuib2u4Yl9evqQdCundNREXQY,217
|
|
21
|
+
beekeeper/core/observers/__init__.py,sha256=Z5sDAajai4QLdGIrjq-vr5eJEBhriMMCw5u46j6xHvA,149
|
|
22
|
+
beekeeper/core/observers/base.py,sha256=y1SE_0WQusKhVomFuZCkk42Jb7r93ZS6r_j8vs_Y_r4,1203
|
|
17
23
|
beekeeper/core/observers/types.py,sha256=s-4tB8OdeaCUIRvi6FLuib2u4Yl9evqQdCundNREXQY,217
|
|
18
|
-
beekeeper/core/prompts/__init__.py,sha256=
|
|
19
|
-
beekeeper/core/prompts/base.py,sha256=
|
|
24
|
+
beekeeper/core/prompts/__init__.py,sha256=kFp2N5giNEMA4hc3eZqstqaZu0c0BRAnP0NuF5aUaqI,85
|
|
25
|
+
beekeeper/core/prompts/base.py,sha256=Edh77DuYm8lDhJvHazC5hgaiQEit-R4M-TWLX8-gIU0,1106
|
|
20
26
|
beekeeper/core/prompts/utils.py,sha256=Cqpefzzxd6DxPbOKVyUCsIs-ibBGKhYU6ppYqhPT9vM,1378
|
|
21
27
|
beekeeper/core/readers/__init__.py,sha256=vPCmWmK92LYL-R0LFcPqjOKFHqxW0xUP5r6M9GNxoqY,157
|
|
22
28
|
beekeeper/core/readers/base.py,sha256=46VRNkCmKP2RWJT1-kRTSHG9SjY1xbhKUy1a7-OrgPg,418
|
|
@@ -32,6 +38,6 @@ beekeeper/core/tools/base.py,sha256=A6TXn7g3DAZMREYAobfVlyOBuJn_8mIeCByc5412L9Y,
|
|
|
32
38
|
beekeeper/core/utils/pairwise.py,sha256=cpi8GItPFSYP4sjB5zgTFHi6JfBVWsMnNu8koA9VYQU,536
|
|
33
39
|
beekeeper/core/vector_stores/__init__.py,sha256=R5SRG3YpOZqRwIfBLB8KVV6FALWqhIzIhCjRGj-bwPc,93
|
|
34
40
|
beekeeper/core/vector_stores/base.py,sha256=YFW1ioZbFEcJovAh0ZCpHnj0eiXtZvqy_pj2lxPS92k,1652
|
|
35
|
-
beekeeper_core-1.0.
|
|
36
|
-
beekeeper_core-1.0.
|
|
37
|
-
beekeeper_core-1.0.
|
|
41
|
+
beekeeper_core-1.0.10.dist-info/METADATA,sha256=6yt3XFndeAKudQ_UsnQFZ_B_MeibOrrrIk_yt_zRV_0,1331
|
|
42
|
+
beekeeper_core-1.0.10.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
43
|
+
beekeeper_core-1.0.10.dist-info/RECORD,,
|
|
File without changes
|