mirror of
https://github.com/hwchase17/langchain.git
synced 2025-06-30 10:23:30 +00:00
Update quickstart.mdx (#12386)
**Description** Removed confusing sentence. Not clear what "both" was referring to. The two required components mentioned previously? The two methods listed below? --------- Co-authored-by: Erick Friis <erick@langchain.dev>
This commit is contained in:
parent
e112b2f2e6
commit
f573a4d0b3
@ -83,7 +83,9 @@ LangChain provides several objects to easily distinguish between different roles
|
||||
If none of those roles sound right, there is also a `ChatMessage` class where you can specify the role manually.
|
||||
For more information on how to use these different messages most effectively, see our prompting guide.
|
||||
|
||||
LangChain provides a standard interface for both, but it's useful to understand this difference in order to construct prompts for a given language model.
|
||||
Langchain provides a common interface that's shared by both LLMs and ChatModels.
|
||||
However it's useful to understand this difference in order to construct prompts for a given language model.
|
||||
|
||||
The standard interface that LangChain provides has two methods:
|
||||
- `predict`: Takes in a string, returns a string
|
||||
- `predict_messages`: Takes in a list of messages, returns a message.
|
||||
@ -157,7 +159,7 @@ prompt = PromptTemplate.from_template("What is a good name for a company that ma
|
||||
prompt.format(product="colorful socks")
|
||||
```
|
||||
|
||||
```pycon
|
||||
```python
|
||||
What is a good name for a company that makes colorful socks?
|
||||
```
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user