You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**Reliable structured output from LLMs with deterministic generation**
10
10
11
-
PromptLayer is a Python library that provides a simple, reliable way to get structured outputs from Large Language Models (LLMs). Built on top of Pydantic for schema validation and designed for deterministic, production-ready results.
11
+
PromptShift is a Python library that provides a simple, reliable way to get structured outputs from Large Language Models (LLMs). Built on top of Pydantic for schema validation and designed for deterministic, production-ready results.
12
12
13
13
## Features
14
14
@@ -25,15 +25,15 @@ PromptLayer is a Python library that provides a simple, reliable way to get stru
25
25
Coming soon - will be available via pip:
26
26
27
27
```bash
28
-
pip install promptlayer
28
+
pip install PromptShift
29
29
```
30
30
31
31
For detailed installation instructions and development setup, see the [full documentation](docs/index.md).
32
32
33
33
## Quick Start
34
34
35
35
```python
36
-
frompromptlayerimport Client
36
+
fromPromptShiftimport Client
37
37
from pydantic import BaseModel
38
38
39
39
# Define your output schema
@@ -57,11 +57,11 @@ print(f"{result.name} is {result.age} years old and works as a {result.occupatio
57
57
58
58
## Logging
59
59
60
-
PromptLayer provides detailed logging to help you debug and monitor LLM interactions. Retry attempts are logged at **INFO** level by default, making them visible without additional configuration.
60
+
PromptShift provides detailed logging to help you debug and monitor LLM interactions. Retry attempts are logged at **INFO** level by default, making them visible without additional configuration.
61
61
62
62
### Default Logging Behavior
63
63
64
-
When retry attempts occur, PromptLayer logs the following information at INFO level:
64
+
When retry attempts occur, PromptShift logs the following information at INFO level:
# Production configuration - only errors and critical issues
150
150
logging.basicConfig(
@@ -165,7 +165,7 @@ result = client.generate("Generate data", MySchema)
165
165
166
166
```python
167
167
import logging
168
-
frompromptlayerimport Client
168
+
fromPromptShiftimport Client
169
169
170
170
# Development configuration - see everything
171
171
logging.basicConfig(
@@ -180,7 +180,7 @@ result = client.generate("Generate data", MySchema)
180
180
181
181
## Deterministic Generation
182
182
183
-
PromptLayer is designed for **100% reproducible outputs** to enable reliable testing, debugging, and production deployments. Every generation is deterministic by default.
183
+
PromptShift is designed for **100% reproducible outputs** to enable reliable testing, debugging, and production deployments. Every generation is deterministic by default.
184
184
185
185
### Why Determinism Matters
186
186
@@ -191,7 +191,7 @@ PromptLayer is designed for **100% reproducible outputs** to enable reliable tes
191
191
192
192
### How Determinism Works
193
193
194
-
PromptLayer achieves deterministic outputs through three mechanisms:
194
+
PromptShift achieves deterministic outputs through three mechanisms:
195
195
196
196
1.**Temperature = 0.0**: Always uses temperature 0.0 for deterministic sampling
0 commit comments