From 7dae39b57ddf1aba0c5e36d5529a36a80f3123a7 Mon Sep 17 00:00:00 2001 From: TysBradford Date: Tue, 18 Apr 2023 15:28:29 +0100 Subject: [PATCH] slightly clearer docs (#3088) Took me a second to realise the examples required to manually print the output of the conversation predict. This might make it clearer for others --- docs/getting_started/getting_started.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/getting_started/getting_started.md b/docs/getting_started/getting_started.md index 821d55dc..02c03b61 100644 --- a/docs/getting_started/getting_started.md +++ b/docs/getting_started/getting_started.md @@ -244,7 +244,8 @@ from langchain import OpenAI, ConversationChain llm = OpenAI(temperature=0) conversation = ConversationChain(llm=llm, verbose=True) -conversation.predict(input="Hi there!") +output = conversation.predict(input="Hi there!") +print(output) ``` ```pycon @@ -262,7 +263,8 @@ AI: ``` ```python -conversation.predict(input="I'm doing well! Just having a conversation with an AI.") +output = conversation.predict(input="I'm doing well! Just having a conversation with an AI.") +print(output) ``` ```pycon