uncertainty-engine-types 0.0.7__tar.gz → 0.0.9__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.
- {uncertainty_engine_types-0.0.7 → uncertainty_engine_types-0.0.9}/PKG-INFO +1 -1
- {uncertainty_engine_types-0.0.7 → uncertainty_engine_types-0.0.9}/pyproject.toml +1 -1
- {uncertainty_engine_types-0.0.7 → uncertainty_engine_types-0.0.9}/uncertainty_engine_types/__init__.py +7 -6
- uncertainty_engine_types-0.0.7/uncertainty_engine_types/tabular_data.py → uncertainty_engine_types-0.0.9/uncertainty_engine_types/dataset.py +1 -1
- uncertainty_engine_types-0.0.9/uncertainty_engine_types/embeddings.py +32 -0
- uncertainty_engine_types-0.0.9/uncertainty_engine_types/llm.py +31 -0
- uncertainty_engine_types-0.0.9/uncertainty_engine_types/utils.py +9 -0
- uncertainty_engine_types-0.0.9/uncertainty_engine_types/version.py +1 -0
- uncertainty_engine_types-0.0.7/uncertainty_engine_types/document.py +0 -29
- uncertainty_engine_types-0.0.7/uncertainty_engine_types/llm.py +0 -21
- uncertainty_engine_types-0.0.7/uncertainty_engine_types/version.py +0 -1
- {uncertainty_engine_types-0.0.7 → uncertainty_engine_types-0.0.9}/README.md +0 -0
- {uncertainty_engine_types-0.0.7 → uncertainty_engine_types-0.0.9}/uncertainty_engine_types/context.py +0 -0
- {uncertainty_engine_types-0.0.7 → uncertainty_engine_types-0.0.9}/uncertainty_engine_types/conversation.py +0 -0
- {uncertainty_engine_types-0.0.7 → uncertainty_engine_types-0.0.9}/uncertainty_engine_types/execution_error.py +0 -0
- {uncertainty_engine_types-0.0.7 → uncertainty_engine_types-0.0.9}/uncertainty_engine_types/file.py +0 -0
- {uncertainty_engine_types-0.0.7 → uncertainty_engine_types-0.0.9}/uncertainty_engine_types/graph.py +0 -0
- {uncertainty_engine_types-0.0.7 → uncertainty_engine_types-0.0.9}/uncertainty_engine_types/handle.py +0 -0
- {uncertainty_engine_types-0.0.7 → uncertainty_engine_types-0.0.9}/uncertainty_engine_types/job.py +0 -0
- {uncertainty_engine_types-0.0.7 → uncertainty_engine_types-0.0.9}/uncertainty_engine_types/message.py +0 -0
- {uncertainty_engine_types-0.0.7 → uncertainty_engine_types-0.0.9}/uncertainty_engine_types/model.py +0 -0
- {uncertainty_engine_types-0.0.7 → uncertainty_engine_types-0.0.9}/uncertainty_engine_types/node_info.py +0 -0
- {uncertainty_engine_types-0.0.7 → uncertainty_engine_types-0.0.9}/uncertainty_engine_types/sensor_designer.py +0 -0
- {uncertainty_engine_types-0.0.7 → uncertainty_engine_types-0.0.9}/uncertainty_engine_types/sql.py +0 -0
- {uncertainty_engine_types-0.0.7 → uncertainty_engine_types-0.0.9}/uncertainty_engine_types/token.py +0 -0
- {uncertainty_engine_types-0.0.7 → uncertainty_engine_types-0.0.9}/uncertainty_engine_types/vector_store.py +0 -0
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
from . import utils
|
|
1
2
|
from .context import Context
|
|
2
3
|
from .conversation import Conversation
|
|
3
|
-
from .
|
|
4
|
+
from .dataset import CSVDataset
|
|
5
|
+
from .embeddings import TextEmbeddingsConfig, TextEmbeddingsProvider
|
|
4
6
|
from .execution_error import ExecutionError
|
|
5
7
|
from .file import (
|
|
6
8
|
PDF,
|
|
@@ -24,7 +26,6 @@ from .model import MachineLearningModel
|
|
|
24
26
|
from .node_info import NodeInfo, NodeInputInfo, NodeOutputInfo
|
|
25
27
|
from .sensor_designer import SensorDesigner
|
|
26
28
|
from .sql import SQLConfig, SQLKind
|
|
27
|
-
from .tabular_data import TabularData
|
|
28
29
|
from .token import Token
|
|
29
30
|
from .vector_store import VectorStoreConfig, VectorStoreProvider
|
|
30
31
|
from .version import __version__
|
|
@@ -33,13 +34,11 @@ __all__ = [
|
|
|
33
34
|
"__version__",
|
|
34
35
|
"Context",
|
|
35
36
|
"Conversation",
|
|
36
|
-
"
|
|
37
|
+
"CSVDataset",
|
|
37
38
|
"Document",
|
|
38
39
|
"ExecutionError",
|
|
39
40
|
"File",
|
|
40
41
|
"FileLocation",
|
|
41
|
-
"FileLocation",
|
|
42
|
-
"FileType",
|
|
43
42
|
"Graph",
|
|
44
43
|
"Handle",
|
|
45
44
|
"Image",
|
|
@@ -64,9 +63,11 @@ __all__ = [
|
|
|
64
63
|
"SQLKind",
|
|
65
64
|
"SQLTable",
|
|
66
65
|
"TabularData",
|
|
67
|
-
"TabularData",
|
|
68
66
|
"TargetHandle",
|
|
67
|
+
"TextEmbeddingsConfig",
|
|
68
|
+
"TextEmbeddingsProvider",
|
|
69
69
|
"Token",
|
|
70
|
+
"utils",
|
|
70
71
|
"VectorStoreConfig",
|
|
71
72
|
"VectorStoreProvider",
|
|
72
73
|
"WebPage",
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
from enum import StrEnum
|
|
2
|
+
from typing import Optional
|
|
3
|
+
|
|
4
|
+
from pydantic import BaseModel, model_validator
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class TextEmbeddingsProvider(StrEnum):
|
|
8
|
+
OPENAI = "openai"
|
|
9
|
+
OLLAMA = "ollama"
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class TextEmbeddingsConfig(BaseModel):
|
|
13
|
+
"""
|
|
14
|
+
Connection configuration for text embedding models.
|
|
15
|
+
"""
|
|
16
|
+
|
|
17
|
+
provider: str
|
|
18
|
+
model: Optional[str] = None
|
|
19
|
+
ollama_url: Optional[str] = None
|
|
20
|
+
openai_api_key: Optional[str] = None
|
|
21
|
+
|
|
22
|
+
@model_validator(mode="before")
|
|
23
|
+
@classmethod
|
|
24
|
+
def check_provider(cls, values):
|
|
25
|
+
provider = values.get("provider")
|
|
26
|
+
if provider == TextEmbeddingsProvider.OLLAMA and not values.get("ollama_url"):
|
|
27
|
+
raise ValueError("ollama_url must be provided for 'ollama' provider.")
|
|
28
|
+
if provider == TextEmbeddingsProvider.OPENAI and not values.get(
|
|
29
|
+
"openai_api_key"
|
|
30
|
+
):
|
|
31
|
+
raise ValueError("openai_api_key must be provided for 'openai' provider.")
|
|
32
|
+
return values
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
from enum import StrEnum
|
|
2
|
+
from typing import Optional
|
|
3
|
+
|
|
4
|
+
from pydantic import BaseModel, model_validator
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class LLMProvider(StrEnum):
|
|
8
|
+
OPENAI = "openai"
|
|
9
|
+
OLLAMA = "ollama"
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class LLMConfig(BaseModel):
|
|
13
|
+
"""
|
|
14
|
+
Connection configuration for Language Learning Models (LLMs).
|
|
15
|
+
"""
|
|
16
|
+
|
|
17
|
+
provider: str
|
|
18
|
+
model: str
|
|
19
|
+
temperature: float = 0.0
|
|
20
|
+
ollama_url: Optional[str] = None
|
|
21
|
+
openai_api_key: Optional[str] = None
|
|
22
|
+
|
|
23
|
+
@model_validator(mode="before")
|
|
24
|
+
@classmethod
|
|
25
|
+
def check_provider(cls, values):
|
|
26
|
+
provider = values.get("provider")
|
|
27
|
+
if provider == LLMProvider.OLLAMA and not values.get("ollama_url"):
|
|
28
|
+
raise ValueError("ollama_url must be provided for 'ollama' provider.")
|
|
29
|
+
if provider == LLMProvider.OPENAI and not values.get("openai_api_key"):
|
|
30
|
+
raise ValueError("openai_api_key must be provided for 'openai' provider.")
|
|
31
|
+
return values
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.0.9"
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
from enum import StrEnum
|
|
2
|
-
from typing import Optional
|
|
3
|
-
|
|
4
|
-
from pydantic import BaseModel
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
class FileLocation(StrEnum):
|
|
8
|
-
LOCAL = "local"
|
|
9
|
-
S3 = "s3"
|
|
10
|
-
SQL = "sql"
|
|
11
|
-
WWW = "www"
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
class FileType(StrEnum):
|
|
15
|
-
CSV = "csv"
|
|
16
|
-
DOCX = "docx"
|
|
17
|
-
PDF = "pdf"
|
|
18
|
-
TXT = "txt"
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
class Document(BaseModel):
|
|
22
|
-
"""
|
|
23
|
-
Document identification.
|
|
24
|
-
"""
|
|
25
|
-
|
|
26
|
-
location: FileLocation
|
|
27
|
-
file_type: FileType
|
|
28
|
-
path: str
|
|
29
|
-
excerpt: Optional[str] = None
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
from enum import Enum
|
|
2
|
-
from typing import Optional
|
|
3
|
-
|
|
4
|
-
from pydantic import BaseModel
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
class LLMProvider(Enum):
|
|
8
|
-
OPENAI = "openai"
|
|
9
|
-
OLLAMA = "ollama"
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
class LLMConfig(BaseModel):
|
|
13
|
-
"""
|
|
14
|
-
Connection configuration for Language Learning Models (LLMs).
|
|
15
|
-
"""
|
|
16
|
-
|
|
17
|
-
provider: str
|
|
18
|
-
model: str
|
|
19
|
-
temperature: float = 0.0
|
|
20
|
-
ollama_url: Optional[str] = None
|
|
21
|
-
openai_api_key: Optional[str] = None
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.0.7"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{uncertainty_engine_types-0.0.7 → uncertainty_engine_types-0.0.9}/uncertainty_engine_types/file.py
RENAMED
|
File without changes
|
{uncertainty_engine_types-0.0.7 → uncertainty_engine_types-0.0.9}/uncertainty_engine_types/graph.py
RENAMED
|
File without changes
|
{uncertainty_engine_types-0.0.7 → uncertainty_engine_types-0.0.9}/uncertainty_engine_types/handle.py
RENAMED
|
File without changes
|
{uncertainty_engine_types-0.0.7 → uncertainty_engine_types-0.0.9}/uncertainty_engine_types/job.py
RENAMED
|
File without changes
|
|
File without changes
|
{uncertainty_engine_types-0.0.7 → uncertainty_engine_types-0.0.9}/uncertainty_engine_types/model.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{uncertainty_engine_types-0.0.7 → uncertainty_engine_types-0.0.9}/uncertainty_engine_types/sql.py
RENAMED
|
File without changes
|
{uncertainty_engine_types-0.0.7 → uncertainty_engine_types-0.0.9}/uncertainty_engine_types/token.py
RENAMED
|
File without changes
|
|
File without changes
|