langchain-prompty
This package contains the LangChain integration with Microsoft Prompty.
Installation
pip install -U langchain-prompty
Usage
Use the create_chat_prompt function to load prompty file as prompt.
from langchain_prompty import create_chat_prompt
prompt = create_chat_prompt('<your .prompty file path>')
Then you can use the prompt for next steps.
Here is an example .prompty file:
---
name: Basic Prompt
description: A basic prompt that uses the GPT-3 chat API to answer questions
authors:
- author_1
- author_2
model:
api: chat
configuration:
azure_deployment: gpt-35-turbo
sample:
firstName: Jane
lastName: Doe
question: What is the meaning of life?
chat_history: []
---
system:
You are an AI assistant who helps people find information.
As the assistant, you answer questions briefly, succinctly,
and in a personable manner using markdown and even add some personal flair with appropriate emojis.
{% for item in chat_history %}
{{item.role}}:
{{item.content}}
{% endfor %}
user:
{{input}}
Metadata
Release files for gigachain-prompty 0.0.2
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 | Actions |
|---|---|---|---|---|
| gigachain_prompty-0.0.2.tar.gz | 9.4 kB | Without provenance | Details for gigachain_prompty-0.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| gigachain_prompty-0.0.2-py3-none-any.whl | Python 3 | none | any | Details for gigachain_prompty-0.0.2-py3-none-any.whl |
Total release size: 19.6 kB
Release files / gigachain_prompty-0.0.2.tar.gz
| Download URL | gigachain_prompty-0.0.2.tar.gz |
|---|---|
| Size | 9.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ad24dcfbe33840fc97dcb084e0bda91a28c848ed7e82905ecb2fd72b06fd890e
|
|
BLAKE2b-256 checksum How to use checksums |
e0305d1a2b1cf5ed7a7b008d06c53877cfc2fae7d9ae401b4b941051c5dcf51b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.7.1 CPython/3.11.6 Darwin/23.5.0
|
Release files / gigachain_prompty-0.0.2-py3-none-any.whl
| Download URL | gigachain_prompty-0.0.2-py3-none-any.whl |
|---|---|
| Size | 10.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3305ccdb392dce09a52401f7f2734959cf2f3abd1425f2de51c998018dfb3414
|
|
BLAKE2b-256 checksum How to use checksums |
d0a26b943cc08466e8b13b5d65db9a71845093051f8c86096e7d2e6de93d6930
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.7.1 CPython/3.11.6 Darwin/23.5.0
|
Security for gigachain-prompty 0.0.2
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.