Backprompt: AI Integration, Simplified
Tailor LLM outputs to your exact needs, no datasets or finetuning required.
Installation
pip install backprompt
Usage
Step 1: Solve for an optimal prompt
from backprompt import BackpromptClient
# Initialize the client
client = BackpromptClient(
api_key='[your-api-key]',
api_url='[your-api-url]'
)
input_text = "The new smartphone boasts a 108MP camera and 5G capability."
desired_output = """
🌟 Tech Specs Breakdown 🌟
📸 Camera: 108MP (Ultra High-Res)
📡 Connectivity: 5G-enabled
💡 Key Benefit: Pro-level photography with lightning-fast uploads
"""
optimal_prompt = client.solve_prompt(input_text, desired_output)
print(f"Optimal prompt: {optimal_prompt}")
Step 2: Deploy the optimal prompt
optimal_prompt.deploy(client)
Step 3: Generate using the deployed prompt
prompt_vars = {"input_data": "The latest smartwatch features a 1.4-inch AMOLED display and 7-day battery life."}
completion = optimal_prompt.run(client, prompt_vars)
print(f"Generated response: {completion}")
Key Features
- Prompt Optimization: Generate optimal prompts based on input-output pairs.
- Prompt Deployment: Deploy optimized prompts for quick access.
- Response Generation: Generate responses using deployed prompts.
Backprompt's Edge for Developers
- Prompt Engineering, Automated
- Rapid Iteration Cycle
- Model-Agnostic Customization
- Resource Efficiency
Backprompt Across Domains
- Nuanced Sentiment Extraction
- Specialized Knowledge Base Q&A
- Consistent Code Snippet Generation
For more information, visit backprompt.ai
© 2024 backprompt
Metadata
Release files for backprompt 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| backprompt-0.1.1.tar.gz | 3.9 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| backprompt-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.8 kB
Release files / backprompt-0.1.1.tar.gz
| Download URL | backprompt-0.1.1.tar.gz |
|---|---|
| Size | 3.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
07aee86c3da48abdd477ef24bcfbcd20217613289c1ac6ac0898c8a632581415
|
|
BLAKE2b-256 checksum How to use checksums |
d5d0580e9e53459d7c1e345698ba06a1f8e94c7db62ab10473e8e9a610466ad6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.10.14
|
Release files / backprompt-0.1.1-py3-none-any.whl
| Download URL | backprompt-0.1.1-py3-none-any.whl |
|---|---|
| Size | 3.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0e664744d0e425fcd4679a5a748fc28ba0f1beff797661aaa4fd07320ab2ed24
|
|
BLAKE2b-256 checksum How to use checksums |
10fe3462876d7c66bf32317db0739c993d4766ff7c0aeebe7ea4a95cb29e91cc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.10.14
|
Security for backprompt 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.