Skip to content

Commit

Permalink
Update quickstart.mdx (langchain-ai#12386)
Browse files Browse the repository at this point in the history
**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 <[email protected]>
  • Loading branch information
josephrmartinez and efriis authored Nov 3, 2023
1 parent e112b2f commit f573a4d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/docs/get_started/quickstart.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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?
```

Expand Down

0 comments on commit f573a4d

Please sign in to comment.