palimpzest 0.7.21__py3-none-any.whl → 0.8.0__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.
- palimpzest/__init__.py +37 -6
- palimpzest/agents/__init__.py +0 -0
- palimpzest/agents/compute_agents.py +0 -0
- palimpzest/agents/search_agents.py +637 -0
- palimpzest/constants.py +259 -197
- palimpzest/core/data/context.py +393 -0
- palimpzest/core/data/context_manager.py +163 -0
- palimpzest/core/data/dataset.py +634 -0
- palimpzest/core/data/{datareaders.py → iter_dataset.py} +202 -126
- palimpzest/core/elements/groupbysig.py +16 -13
- palimpzest/core/elements/records.py +166 -75
- palimpzest/core/lib/schemas.py +152 -390
- palimpzest/core/{data/dataclasses.py → models.py} +306 -170
- palimpzest/policy.py +2 -27
- palimpzest/prompts/__init__.py +35 -5
- palimpzest/prompts/agent_prompts.py +357 -0
- palimpzest/prompts/context_search.py +9 -0
- palimpzest/prompts/convert_prompts.py +61 -5
- palimpzest/prompts/filter_prompts.py +50 -5
- palimpzest/prompts/join_prompts.py +163 -0
- palimpzest/prompts/moa_proposer_convert_prompts.py +5 -5
- palimpzest/prompts/prompt_factory.py +358 -46
- palimpzest/prompts/validator.py +239 -0
- palimpzest/query/execution/all_sample_execution_strategy.py +134 -76
- palimpzest/query/execution/execution_strategy.py +210 -317
- palimpzest/query/execution/execution_strategy_type.py +5 -7
- palimpzest/query/execution/mab_execution_strategy.py +249 -136
- palimpzest/query/execution/parallel_execution_strategy.py +153 -244
- palimpzest/query/execution/single_threaded_execution_strategy.py +107 -64
- palimpzest/query/generators/generators.py +157 -330
- palimpzest/query/operators/__init__.py +15 -5
- palimpzest/query/operators/aggregate.py +50 -33
- palimpzest/query/operators/compute.py +201 -0
- palimpzest/query/operators/convert.py +27 -21
- palimpzest/query/operators/critique_and_refine_convert.py +7 -5
- palimpzest/query/operators/distinct.py +62 -0
- palimpzest/query/operators/filter.py +22 -13
- palimpzest/query/operators/join.py +402 -0
- palimpzest/query/operators/limit.py +3 -3
- palimpzest/query/operators/logical.py +198 -80
- palimpzest/query/operators/mixture_of_agents_convert.py +10 -8
- palimpzest/query/operators/physical.py +27 -21
- palimpzest/query/operators/project.py +3 -3
- palimpzest/query/operators/rag_convert.py +7 -7
- palimpzest/query/operators/retrieve.py +9 -9
- palimpzest/query/operators/scan.py +81 -42
- palimpzest/query/operators/search.py +524 -0
- palimpzest/query/operators/split_convert.py +10 -8
- palimpzest/query/optimizer/__init__.py +7 -9
- palimpzest/query/optimizer/cost_model.py +108 -441
- palimpzest/query/optimizer/optimizer.py +123 -181
- palimpzest/query/optimizer/optimizer_strategy.py +66 -61
- palimpzest/query/optimizer/plan.py +352 -67
- palimpzest/query/optimizer/primitives.py +43 -19
- palimpzest/query/optimizer/rules.py +484 -646
- palimpzest/query/optimizer/tasks.py +127 -58
- palimpzest/query/processor/config.py +41 -76
- palimpzest/query/processor/query_processor.py +73 -18
- palimpzest/query/processor/query_processor_factory.py +46 -38
- palimpzest/schemabuilder/schema_builder.py +15 -28
- palimpzest/utils/model_helpers.py +27 -77
- palimpzest/utils/progress.py +114 -102
- palimpzest/validator/__init__.py +0 -0
- palimpzest/validator/validator.py +306 -0
- {palimpzest-0.7.21.dist-info → palimpzest-0.8.0.dist-info}/METADATA +6 -1
- palimpzest-0.8.0.dist-info/RECORD +95 -0
- palimpzest/core/lib/fields.py +0 -141
- palimpzest/prompts/code_synthesis_prompts.py +0 -28
- palimpzest/query/execution/random_sampling_execution_strategy.py +0 -240
- palimpzest/query/generators/api_client_factory.py +0 -30
- palimpzest/query/operators/code_synthesis_convert.py +0 -488
- palimpzest/query/operators/map.py +0 -130
- palimpzest/query/processor/nosentinel_processor.py +0 -33
- palimpzest/query/processor/processing_strategy_type.py +0 -28
- palimpzest/query/processor/sentinel_processor.py +0 -88
- palimpzest/query/processor/streaming_processor.py +0 -149
- palimpzest/sets.py +0 -405
- palimpzest/utils/datareader_helpers.py +0 -61
- palimpzest/utils/demo_helpers.py +0 -75
- palimpzest/utils/field_helpers.py +0 -69
- palimpzest/utils/generation_helpers.py +0 -69
- palimpzest/utils/sandbox.py +0 -183
- palimpzest-0.7.21.dist-info/RECORD +0 -95
- /palimpzest/core/{elements/index.py → data/index_dataset.py} +0 -0
- {palimpzest-0.7.21.dist-info → palimpzest-0.8.0.dist-info}/WHEEL +0 -0
- {palimpzest-0.7.21.dist-info → palimpzest-0.8.0.dist-info}/licenses/LICENSE +0 -0
- {palimpzest-0.7.21.dist-info → palimpzest-0.8.0.dist-info}/top_level.txt +0 -0
palimpzest/__init__.py
CHANGED
|
@@ -1,7 +1,20 @@
|
|
|
1
1
|
import logging
|
|
2
2
|
|
|
3
|
-
from palimpzest.constants import Cardinality
|
|
4
|
-
from palimpzest.core.data.
|
|
3
|
+
from palimpzest.constants import Cardinality, Model
|
|
4
|
+
from palimpzest.core.data.context import Context, TextFileContext
|
|
5
|
+
from palimpzest.core.data.dataset import Dataset
|
|
6
|
+
from palimpzest.core.data.iter_dataset import (
|
|
7
|
+
AudioFileDataset,
|
|
8
|
+
HTMLFileDataset,
|
|
9
|
+
ImageFileDataset,
|
|
10
|
+
IterDataset,
|
|
11
|
+
MemoryDataset,
|
|
12
|
+
PDFFileDataset,
|
|
13
|
+
TextFileDataset,
|
|
14
|
+
XLSFileDataset,
|
|
15
|
+
)
|
|
16
|
+
from palimpzest.core.elements.groupbysig import GroupBySig
|
|
17
|
+
from palimpzest.core.lib.schemas import AudioBase64, AudioFilepath, ImageBase64, ImageFilepath, ImageURL
|
|
5
18
|
from palimpzest.policy import (
|
|
6
19
|
MaxQuality,
|
|
7
20
|
MaxQualityAtFixedCost,
|
|
@@ -14,7 +27,7 @@ from palimpzest.policy import (
|
|
|
14
27
|
Policy,
|
|
15
28
|
)
|
|
16
29
|
from palimpzest.query.processor.config import QueryProcessorConfig
|
|
17
|
-
from palimpzest.
|
|
30
|
+
from palimpzest.validator.validator import Validator
|
|
18
31
|
|
|
19
32
|
# Initialize the root logger
|
|
20
33
|
logging.getLogger(__name__).addHandler(logging.NullHandler())
|
|
@@ -22,8 +35,26 @@ logging.getLogger(__name__).addHandler(logging.NullHandler())
|
|
|
22
35
|
__all__ = [
|
|
23
36
|
# constants
|
|
24
37
|
"Cardinality",
|
|
38
|
+
"Model",
|
|
25
39
|
# core
|
|
26
|
-
"
|
|
40
|
+
"GroupBySig",
|
|
41
|
+
"Context",
|
|
42
|
+
"TextFileContext",
|
|
43
|
+
"Dataset",
|
|
44
|
+
"IterDataset",
|
|
45
|
+
"AudioFileDataset",
|
|
46
|
+
"MemoryDataset",
|
|
47
|
+
"HTMLFileDataset",
|
|
48
|
+
"ImageFileDataset",
|
|
49
|
+
"PDFFileDataset",
|
|
50
|
+
"TextFileDataset",
|
|
51
|
+
"XLSFileDataset",
|
|
52
|
+
# schemas
|
|
53
|
+
"AudioBase64",
|
|
54
|
+
"AudioFilepath",
|
|
55
|
+
"ImageBase64",
|
|
56
|
+
"ImageFilepath",
|
|
57
|
+
"ImageURL",
|
|
27
58
|
# policy
|
|
28
59
|
"MaxQuality",
|
|
29
60
|
"MaxQualityAtFixedCost",
|
|
@@ -36,6 +67,6 @@ __all__ = [
|
|
|
36
67
|
"Policy",
|
|
37
68
|
# query
|
|
38
69
|
"QueryProcessorConfig",
|
|
39
|
-
#
|
|
40
|
-
"
|
|
70
|
+
# validator
|
|
71
|
+
"Validator",
|
|
41
72
|
]
|
|
File without changes
|
|
File without changes
|