mirror of
https://github.com/hwchase17/langchain
synced 2024-10-31 15:20:26 +00:00
87e502c6bc
Co-authored-by: jacoblee93 <jacoblee93@gmail.com> Co-authored-by: Harrison Chase <hw.chase.17@gmail.com>
18 lines
288 B
Plaintext
18 lines
288 B
Plaintext
Using this we can replace
|
|
|
|
```python
|
|
llm.predict("What would be a good company name for a company that makes colorful socks?")
|
|
```
|
|
|
|
with
|
|
|
|
```python
|
|
from langchain.chains import LLMChain
|
|
|
|
chain = LLMChain(llm=llm, prompt=prompt)
|
|
chain.run("colorful socks")
|
|
```
|
|
```pycon
|
|
Feetful of Fun
|
|
```
|