LLMRails Python SDK
This package provides functionality developed to simplify interfacing with the LLMRails API in Python 3.
Documentation
- For more details on advanced parameters, you can also consult the API documentation.
Installation
The package can be installed with pip:
pip install --upgrade llmrails
Install from source:
pip install .
Requirements
- Python 3.7+
Quick Start
To use this library, you must have an API key and specify it as a string when creating the llmrails.Client object. API keys can be created through the platform. This is a basic example of the creating the client and using the generate endpoint.
import llmrails
# initialize the LLMRails Client with an API Key
rails = llmrails.Client('YOUR_API_KEY')
# generate a prediction for a prompt
embeddings = rails.embed(
model='embedding-english-v1',
text=['Hey There'])
# print the predicted text
print('embeddings: {}'.format(embeddings.data[0].embedding))
Metadata
Release files for llmrails 0.1.4
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 | |
|---|---|---|---|---|
| llmrails-0.1.4.tar.gz | 3.7 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| llmrails-0.1.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.3 kB
Release files / llmrails-0.1.4.tar.gz
| Download URL | llmrails-0.1.4.tar.gz |
|---|---|
| Size | 3.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
697400e706ddb252c01a9b2519681b6bd94c31414f6010f27d618220679f7a56
|
|
BLAKE2b-256 checksum How to use checksums |
e600496e5f974ff90fc7e1966e693e7d0f9bc5ff0b9ec5aa78f80b033ede810c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.6.1 CPython/3.10.12 Linux/6.2.0-1012-azure
|
Release files / llmrails-0.1.4-py3-none-any.whl
| Download URL | llmrails-0.1.4-py3-none-any.whl |
|---|---|
| Size | 4.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
109635cf00aba89c6d5d9d9a95e407489648c2b1685f1f0e9d5e8df81af5905c
|
|
BLAKE2b-256 checksum How to use checksums |
1c0be70c64cd1b2d0798f9927d1fbfeff89f7acb06b9aa581e19f55f40f5f2f4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.6.1 CPython/3.10.12 Linux/6.2.0-1012-azure
|
Security for llmrails 0.1.4
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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.