mirror of
https://github.com/hwchase17/langchain
synced 2024-10-29 17:07:25 +00:00
87e502c6bc
Co-authored-by: jacoblee93 <jacoblee93@gmail.com> Co-authored-by: Harrison Chase <hw.chase.17@gmail.com>
11 lines
272 B
Plaintext
11 lines
272 B
Plaintext
```python
|
|
from langchain.prompts import PromptTemplate
|
|
|
|
prompt = PromptTemplate.from_template("What is a good name for a company that makes {product}?")
|
|
prompt.format(product="colorful socks")
|
|
```
|
|
|
|
```pycon
|
|
What is a good name for a company that makes colorful socks?
|
|
```
|