Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
182 commits
Select commit Hold shift + click to select a range
f720c20
Apply proofreading feedback post-merge
acho98 Feb 17, 2025
5316f14
Apply proofreading feedback post-merge
acho98 Feb 17, 2025
911bb4b
Apply proofreading feedback post-merge
acho98 Feb 18, 2025
d708424
Merge branch 'acho98-byoon_pr_0217'
acho98 Mar 3, 2025
b2ae0a6
[N-2] 09-VectorStore / 10-Weaviate (#517)
IHAGI-c Feb 18, 2025
0ad0d10
[N-2] 09-VectorStore / 07-MongoDB-Atlas (#532)
ivybae Feb 18, 2025
e8adf50
[N-2] 09-VectorStore / 06-Elasticsearch (#525)
namyoungkim Feb 18, 2025
f91c83b
[E-1] 20-Prompt / Summarization-Promp
ThePurpleCollar Feb 12, 2025
7265a7f
[E-1] 20-Prompt / Summarization-Promp
ThePurpleCollar Feb 14, 2025
3ca6bd9
[E-1] 20-Prompt / Summarization-Promp
ThePurpleCollar Feb 14, 2025
edfd5c9
[N-1] 07-Agent / 17-Agent-BasedDynamicSlotFilling
greencode-99 Jan 21, 2025
1d74571
[N-1] 07-Agent / 17-Agent-BasedDynamicSlotFilling
greencode-99 Feb 5, 2025
8f72bcb
[N-1] 07-Agent / 17-Agent-BasedDynamicSlotFilling
greencode-99 Feb 5, 2025
4b21623
[N-1] 07-Agent / 17-Agent-BasedDynamicSlotFilling
greencode-99 Feb 5, 2025
5e49ebf
[N-1] 07-Agent / 17-Agent-BasedDynamicSlotFilling
greencode-99 Feb 7, 2025
bd2d5d2
[N-1] 07-Agent / 17-Agent-BasedDynamicSlotFilling
greencode-99 Feb 14, 2025
0453494
[N-1] 07-Agent / 17-Agent-BasedDynamicSlotFilling
greencode-99 Feb 15, 2025
d4a0aa4
Multiagent Structure Initial Commit
architectyou Feb 5, 2025
8a90631
이미지 추가, 백틱 내용 삭제
architectyou Feb 7, 2025
26a66f6
0208 pr 리뷰 반영
architectyou Feb 8, 2025
b4a46a4
0211 PR 리뷰 내용 반영
architectyou Feb 11, 2025
8234af8
도식 재반영
architectyou Feb 11, 2025
b1fbcb3
0214 bold 수정, 이미지 리사이즈
architectyou Feb 14, 2025
d44be5c
중복 import 모듈 수정
architectyou Feb 16, 2025
07962a4
0217 중복모듈 수정
architectyou Feb 16, 2025
ee04751
[E-4] 13-LangChain-Expression-Language / 05-RunnableParallel
geminii01 Feb 12, 2025
f41c08f
[E-4] 15-Agent / 02-Bind-Tools
geminii01 Feb 12, 2025
e7c1ea6
feat: FasetAPIServing Demo
stsr1284 Feb 9, 2025
ba1b719
fix: DatetimeOutputParser
stsr1284 Feb 11, 2025
bca4fe1
fix: backtick
stsr1284 Feb 11, 2025
1eb5fa1
fixgitLog
stsr1284 Feb 11, 2025
a110f12
fix: 30, 31 line backtic
stsr1284 Feb 15, 2025
837d1df
fix: backtick
stsr1284 Feb 17, 2025
addbf4f
[E-1] 14-Chains/02-SQL
jinucho Feb 13, 2025
0061f32
[E-1] 14-Chains/02-SQL
jinucho Feb 16, 2025
91994e7
[Title] 26-Chat-Bot-Benchmarking-using-Simulation
LEE1026icarus Feb 13, 2025
64d116d
revise the package
LEE1026icarus Feb 16, 2025
bc591cb
Proofread: < 03-OutputParser / 04-JsonOutputParser >
ash-hun Feb 13, 2025
13644d1
Proofread: < 03-OutputParser / 04-JsonOutputParser >
ash-hun Feb 14, 2025
c386b0a
[Team] Existing Content Development Team 1
Hye-yoonJeong Feb 14, 2025
d42fc91
[Team] Existing Content Development Team 1
Hye-yoonJeong Feb 17, 2025
03dc143
Rename 12-LnagGraph-Cloud.ipynb to 12-LangGraph-Cloud.ipynb
teddylee777 Feb 18, 2025
3b9b893
Rename 09-SQL-Agent.ipynb to 09-LangGraph-SQL-Agent.ipynb
teddylee777 Feb 18, 2025
8a6c0d4
Rename 08-Hierarchical-Multi-Agent-Teams.ipynb to 08-LangGraph-Hierar…
teddylee777 Feb 18, 2025
3f0e920
Rename 06-Multi-Agent-Collaboration.ipynb to 06-LangGraph-Multi-Agent…
teddylee777 Feb 18, 2025
49e9e52
Rename 13-Tree-of-Thoughts.ipynb to 13-LangGraph-Tree-of-Thoughts.ipynb
teddylee777 Feb 18, 2025
0a973a2
Rename 05_LangGraph_Plan_and_Execute.ipynb to 05-LangGraph-Plan-and-E…
teddylee777 Feb 18, 2025
243254e
Rename 07-Adaptive-Rag.ipynb to 07-LangGraph-Adaptive-Rag.ipynb
teddylee777 Feb 18, 2025
72abeb7
Rename 10-LnagGraph-ToolNode.ipynb to 10-LangGraph-ToolNode.ipynb
teddylee777 Feb 18, 2025
3da1f7a
Rename 09-DeleteMessages.ipynb to 09-LangGraph-DeleteMessages.ipynb
teddylee777 Feb 18, 2025
869087a
Rename 12-Conversation-Summaries-with-LangGraph.ipynb to 12-LangGraph…
teddylee777 Feb 18, 2025
1b9a310
Rename 17-LongTermMemoryAgent.ipynb to 17-LangGraph-LongTermMemoryAge…
teddylee777 Feb 18, 2025
f63430c
[N-3] 12-RAG / 06-Translation
BaBetterB Jan 22, 2025
8c48620
[N-3] 12-RAG / 06-Translation
BaBetterB Jan 24, 2025
8580b03
[N-3] 12-RAG / 06-Translation
BaBetterB Feb 5, 2025
445dc77
Delete 12-RAG/06-Translation copy 2.ipynb
BaBetterB Feb 5, 2025
d37d134
Delete 12-RAG/06-Translation copy.ipynb
BaBetterB Feb 5, 2025
e48e34d
Delete 12-RAG/data/comparison_cn copy.txt
BaBetterB Feb 5, 2025
48f6088
Delete 12-RAG/data/translation_comparison2.json
BaBetterB Feb 5, 2025
9275b52
[N-3] 12-RAG / 06-Translation
BaBetterB Feb 5, 2025
7546b44
[N-3] 12-RAG / 06-Translation
BaBetterB Feb 14, 2025
a157a9d
[N-3] 12-RAG / 06-Translation
BaBetterB Feb 14, 2025
f43bb4f
[N-3] 12-RAG / 06-Translation
BaBetterB Feb 14, 2025
043c592
[N-3] 12-RAG / 06-Translation
BaBetterB Feb 14, 2025
8949bf8
[N-3] 12-RAG / 06-Translation
BaBetterB Feb 14, 2025
489a114
[N-2] 07-Text Splitter / 04-SemanticChunker
BaBetterB Feb 18, 2025
cf4424f
apply suggestions
harheem Feb 10, 2025
0976eb5
apply suggestions
harheem Feb 19, 2025
7413396
15-Agent / 09-MakeReport-Using-RAG-Websearching-Imagegeneration-Agent
JunseongKim1104 Feb 10, 2025
eab8c2c
fix about backtick rule
JunseongKim1104 Feb 16, 2025
606d051
[Team] Existing Content Development Team 4
Hye-yoonJeong Feb 12, 2025
fc66cbf
[N-1] 08-SyntheticDataset/13-SyntheticDatasetGenerationusingRAG
ash-hun Jan 22, 2025
3b2fffa
[N-1] 08-SyntheticDataset/13-SyntheticDatasetGenerationusingRAG
Feb 5, 2025
a944fce
update: [N-1] 08-SyntheticDataset/13-SyntheticDatasetGenerationusingRAG
ash-hun Feb 5, 2025
ab9e4cb
[N-1] 08-SyntheticDataset/13-SyntheticDatasetGenerationusingRAG
ash-hun Feb 7, 2025
8643287
update: [N-1] 08-SyntheticDataset/13-SyntheticDatasetGenerationusingRAG
ash-hun Feb 7, 2025
6267929
19-Cookbook/08-SyntheticDataset/13-SyntheticDatasetGenerationusingRAG…
ash-hun Feb 14, 2025
24affdf
[E-3] 19-Cookbook / 08-Serving / 02-Launching the Application Server …
samdaseuss Feb 12, 2025
187d961
feat: Add thread-based context persistence and remote subgraph integr…
samdaseuss Feb 13, 2025
2f3e755
init
jeongkpa Feb 13, 2025
0ee5fae
feat : langfuse 사용 코드 추가
jeongkpa Feb 13, 2025
60774ce
fix : typo
jeongkpa Feb 18, 2025
b949370
fix : Toc
jeongkpa Feb 18, 2025
d812e92
fix : Toc, and secret KEY
jeongkpa Feb 19, 2025
49a1550
docs: update markdown formatting and add references in ModelSerializa…
obov Feb 16, 2025
b1c6b50
fix: remove backticks on TOC and References
obov Feb 17, 2025
623bcdf
fix: remove Korean code comments
namyoungkim Feb 20, 2025
0cdcd32
[N-1] 06-DocumentLoader / 01-DocumentLoader
geminii01 Feb 12, 2025
266eb93
[E-3] 16-Evaluations / 15-LangFuse-Online-Evaluation\n\n### Author Ch…
ranian963 Feb 13, 2025
59b3b73
[N-1] 05-AIMemoryManagementSystem / 09-ConversationMemoryManagementSy…
syshin0116 Feb 16, 2025
62b7bf5
[N-1] 05-AIMemoryManagementSystem / 09-ConversationMemoryManagementSy…
syshin0116 Feb 16, 2025
e1fdefb
04-Model / 03-Cache_vllm
XaviereKU Feb 14, 2025
49f49ac
Backtick 수정
XaviereKU Feb 17, 2025
f520778
fix: add backticks
obov Feb 18, 2025
8411b35
Revert "fix: add backticks"
obov Feb 18, 2025
7150e48
fix: add backticks without useless changes
obov Feb 18, 2025
e1b3650
Update 03-StructuredOutputParser.ipynb
verydeeeeplearning Feb 17, 2025
9cd83ab
[E-1] 20-Prompt / Agent prompt (outline)
Secludor Feb 5, 2025
00d4228
prompt guidlelines with examples
Secludor Feb 10, 2025
5c92e7b
[add] AI_CAREER_PLANNER_AGENT_PROMPT,
Secludor Feb 12, 2025
126c2e3
file : demo code
Secludor Feb 12, 2025
ab2b9ea
docs : split each of sections to different cells
Secludor Feb 14, 2025
905f11c
docs : md, ipynb 용도 구분, ipynb 파일 경로 변경, md파일에 ipynb 참조 링크 추가
Secludor Feb 14, 2025
b659ba7
feat: add initial draft
forwardyoung Feb 9, 2025
396d48b
chore: rename ipynb file
forwardyoung Feb 9, 2025
2768ab1
feat: langserver tutorial
forwardyoung Feb 15, 2025
a09e39d
chore: change expression
forwardyoung Feb 9, 2025
2c937bc
Delete 16-Evaluations/13-LangSmith-Repeat-Evaluation.ipynb
forwardyoung Feb 9, 2025
a2eecf4
chore: rename ipynb
forwardyoung Feb 16, 2025
e4e9f0f
Delete 19-Cookbook/08-Serving/24-LangServe-AgentAPI.ipynb
forwardyoung Feb 16, 2025
875de4d
Delete 19-Cookbook/08-Serving/24-LangServe-Agent-API.ipynb
forwardyoung Feb 16, 2025
a7c671d
chore: change image and model
forwardyoung Feb 17, 2025
67e2ec6
refactor: change gpt model and validator
forwardyoung Feb 19, 2025
703170f
Delete 16-Evaluations/13-LangSmith-Repeat-Evaluation.ipynb
forwardyoung Feb 17, 2025
1f5f9b8
Delete 16-Evaluations/assets/13-langsmith-repeat-evaluation-01.png
forwardyoung Feb 17, 2025
a6036d1
Delete 16-Evaluations/assets/13-langsmith-repeat-evaluation-02.png
forwardyoung Feb 17, 2025
aff32bc
add update file
forwardyoung Feb 18, 2025
8481fcd
Delete 16-Evaluations/13-LangSmith-Repeat-Evaluation.ipynb
forwardyoung Feb 20, 2025
f6ba542
Revert "add update file"
forwardyoung Feb 20, 2025
0c95ab0
chore: image upload
forwardyoung Feb 20, 2025
08c1988
delete another tutorial
forwardyoung Feb 20, 2025
141cb3f
chore: formmat edit
forwardyoung Feb 20, 2025
c295645
Update 13-LangSmith-Repeat-Evaluation.ipynb
forwardyoung Feb 20, 2025
ec5a772
Update 13-LangSmith-Repeat-Evaluation.ipynb
forwardyoung Feb 20, 2025
95c22d5
docs : correct typo such as backtick usage < 15-Agent / 08-Agent-with…
Secludor Feb 15, 2025
458de36
Edit Table of Contents, Backtick () to (`), Minor Format Changes
PangPangGod Feb 19, 2025
dceacda
[N-2] 09-VectorStore / 04-Pinecone (#663)
ro-jun Feb 23, 2025
c021a62
[N-2] 09-VectorStore / 05-Qdrant (#528)
hj0302 Feb 23, 2025
cb506cd
[Quick Fix] Add Newwhitepaper_Agents2.pdf file
teddylee777 Feb 24, 2025
5d64106
Update 03-HF-Upload.ipynb
LEE1026icarus Feb 12, 2025
6d045e8
revise HF-upload
LEE1026icarus Feb 18, 2025
983f285
revise HF-upload2
LEE1026icarus Feb 18, 2025
c45ec6a
revise HF-upload3
LEE1026icarus Feb 18, 2025
20d214f
add FastAPI-Serving
stsr1284 Feb 15, 2025
d2b5720
feat: add 'how to run code'
stsr1284 Feb 19, 2025
af93215
Incorporate proofreading changes
samdaseuss Feb 16, 2025
1599b0d
Update peer reviewer
samdaseuss Feb 16, 2025
0a483bb
[proofreading] formatting
samdaseuss Feb 20, 2025
e8b8d03
incorporate proofreading changes
samdaseuss Feb 21, 2025
ca4f600
update additional notes
samdaseuss Feb 21, 2025
980c8e3
04-Model / 02-Chat-Models proofread change
PangPangGod Feb 15, 2025
19fb90e
edit backtick -> bold
PangPangGod Feb 19, 2025
e0b50d9
llama edit
PangPangGod Feb 19, 2025
8a1a707
fix
HarryKane11 Feb 18, 2025
b37e7a3
backtick_fix
HarryKane11 Feb 22, 2025
6223848
docs: change some typos and grammatical issues
choincnp Feb 20, 2025
f49aa52
proofread_wordloader
suhyun0115 Feb 22, 2025
0cbc6ea
webbaseloader_fix
HarryKane11 Feb 22, 2025
e681813
feat: add langserve tutorial
forwardyoung Feb 20, 2025
b3416d3
chore: format update
forwardyoung Feb 20, 2025
9e49f52
Update 05-Conversation-With-History.ipynb
sunworl Feb 12, 2025
450f0da
Update 05-Conversation-With-History.ipynb
sunworl Feb 25, 2025
fc45e3c
fix: typos
obov Feb 20, 2025
1d8581c
fix: add divider
obov Feb 25, 2025
8f69632
chore: update proofread excel tutorial
forwardyoung Feb 20, 2025
815dc7d
chore: edit image path
forwardyoung Feb 20, 2025
9b3aaab
Update 05-ExcelLoader.ipynb
forwardyoung Feb 22, 2025
f256f47
Update 05-ExcelLoader.ipynb
forwardyoung Feb 22, 2025
46e2806
[E-3] 16-Evaluations / 09-CompareEvaluation
ppakyeah Feb 21, 2025
0574d38
[E-1] 20-Prompt/Prompt-using-footnote-foramt.md
jinucho Feb 25, 2025
a2bd14b
[N-3] 12-RAG / 06-Translation
BaBetterB Feb 22, 2025
a87081d
[N-1] 06-DocumentLoader / 02-PDFLoader
ppakyeah Feb 22, 2025
7e95760
[N-1] 06-DocumentLoader / 02-PDFLoader
ppakyeah Feb 22, 2025
6541890
Update README.md
teddylee777 Feb 26, 2025
8d599f0
proofread_runnablepassthrough
suhyun0115 Feb 24, 2025
b738a14
[E-1] 07-Text-Splitter / 07-HTMLHeaderTextSplitter
cjLee-cmd Feb 18, 2025
d405b76
[수정] update
cjLee-cmd Feb 18, 2025
97e2677
[수정]
cjLee-cmd Feb 18, 2025
bfe19b0
[수정] API-Key 삭제
cjLee-cmd Feb 18, 2025
a037ac7
[수정] 리뷰어 수정사항 대응
cjLee-cmd Feb 19, 2025
eb6e93c
[수정] 제목 아래 내용 추가
cjLee-cmd Feb 20, 2025
3f3488f
Update 03-LangChain-Hub.ipynb
cjLee-cmd Feb 20, 2025
a3dca0c
Update 03-LangChain-Hub.ipynb (apply triple backticks)
ee-juni Feb 23, 2025
4cbdb12
[N-1] 06-DocumentLoader / 01-DocumentLoader
geminii01 Feb 21, 2025
ec2f0b6
docs: Add backticks to markdown header
geminii01 Feb 24, 2025
40918dc
docs: change some typos and grammatical issues
choincnp Feb 20, 2025
d556514
Proofread: 16-Evaluations / 08-LangSmith-Heuristic-Evaluation.ipynb
sunworl Feb 21, 2025
e2a74b0
ppt_fix
HarryKane11 Feb 22, 2025
e5d6237
Proofread: < 17-LangGraph / 02-Structures / 06-LangGraph-Agentic-RAG >
MoonHeesun Mar 1, 2025
437efd7
번역검수 이슈 사항 반영
XaviereKU Feb 21, 2025
6b702cd
fix : Typos, grammer, Format
Taylor0819 Feb 22, 2025
b9a48ad
proofread_wordloader
suhyun0115 Feb 25, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
62 changes: 31 additions & 31 deletions 02-Prompt/01-PromptTemplate.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -6,26 +6,26 @@
"source": [
"# Prompt Template\n",
"\n",
"- Author: [Hye-yoon](https://github.com/Hye-yoonJeong)\n",
"- Author: [Hye-yoon Jeong](https://github.com/Hye-yoonJeong)\n",
"- Design: \n",
"- Peer Review :\n",
"- This is a part of [LangChain Open Tutorial](https://github.com/LangChain-OpenTutorial/LangChain-OpenTutorial)\n",
"\n",
"[![Open in Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/LangChain-OpenTutorial/LangChain-OpenTutorial/blob/main/02-Prompt/01-PromptTemplate.ipynb) [![Open in GitHub](https://img.shields.io/badge/Open%20in%20GitHub-181717?style=flat-square&logo=github&logoColor=white)](https://github.com/LangChain-OpenTutorial/LangChain-OpenTutorial/blob/main/02-Prompt/01-PromptTemplate.ipynb)\n",
"\n",
"## Overview\n",
"This tutorial covers how to create and utilize prompt templates using `LangChain` .\n",
"This tutorial covers how to create and utilize prompt templates using ```LangChain```.\n",
"\n",
"Prompt templates are essential for generating dynamic and flexible prompts that cater to various use cases, such as conversation history, structured outputs, and specialized queries.\n",
"\n",
"In this tutorial, we will explore methods for creating `PromptTemplate` objects, applying partial variables, managing templates through YAML files, and leveraging advanced tools like `ChatPromptTemplate` and `MessagePlaceholder` for enhanced functionality.\n",
"In this tutorial, we will explore methods for creating ```PromptTemplate``` objects, applying partial variables, managing templates through YAML files, and leveraging advanced tools like ```ChatPromptTemplate``` and ```MessagePlaceholder``` for enhanced functionality.\n",
"\n",
"### Table of Contents\n",
"- [Overview](#overview)\n",
"- [Environment Setup](#environment-setup)\n",
"- [Creating a PromptTemplate Object](#creating-a-prompttemplate-object)\n",
"- [Using partial_variables](#using-partial_variables)\n",
"- [Load prompt template from YAML file](#load-prompt-template-from-yaml-file)\n",
"- [Load Prompt Templates from YAML Files](#load-prompt-templates-from-yaml-files)\n",
"- [ChatPromptTemplate](#chatprompttemplate)\n",
"- [MessagePlaceholder](#messageplaceholder)\n",
"\n",
Expand All @@ -43,8 +43,8 @@
"Set up the environment. You may refer to [Environment Setup](https://wikidocs.net/257836) for more details.\n",
"\n",
"**[Note]**\n",
"- `langchain-opentutorial` is a package that provides a set of easy-to-use environment setup, useful functions and utilities for tutorials. \n",
"- You can check out the [`langchain-opentutorial` ](https://github.com/LangChain-OpenTutorial/langchain-opentutorial-pypi) for more details."
"- ```langchain-opentutorial``` is a package that provides a set of easy-to-use environment setup, useful functions and utilities for tutorials. \n",
"- You can check out the [```langchain-opentutorial```](https://github.com/LangChain-OpenTutorial/langchain-opentutorial-pypi) for more details."
]
},
{
Expand Down Expand Up @@ -143,7 +143,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"Let's setup `ChatOpenAI` with `gpt-4o` model."
"Let's setup ```ChatOpenAI``` with ```gpt-4o``` model."
]
},
{
Expand All @@ -162,20 +162,20 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"## Creating a PromptTemplate Object\n",
"## Creating a ```PromptTemplate``` Object\n",
"\n",
"There are two ways to create a `PromptTemplate` object.\n",
"- 1. Using the `from_template()` method.\n",
"- 2. Creating a `PromptTemplate` object and generating a prompt simultaneously."
"There are two ways to create a ```PromptTemplate``` object.\n",
"- 1. Using the ```from_template()``` method\n",
"- 2. Creating a ```PromptTemplate``` object and a prompt all at once"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Method 1. Using from_template() method\n",
"### Method 1. Using the ```from_template()``` method\n",
"\n",
"- Define template with variable as `{variable}` ."
"- Define template with variable as ```{variable}``` ."
]
},
{
Expand Down Expand Up @@ -209,7 +209,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"You can complete the prompt by assigning a value to the variable `country` ."
"You can complete the prompt by assigning a value to the variable ```country``` ."
]
},
{
Expand Down Expand Up @@ -275,9 +275,9 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"### Method 2. Creating a PromptTemplate object and a prompt all at once.\n",
"### Method 2. Creating a ```PromptTemplate``` object and a prompt all at once\n",
"\n",
"Explicitly specify `input_variables` for additional validation.\n",
"Explicitly specify ```input_variables``` for additional validation.\n",
"\n",
"Otherwise, a mismatch between such variables and the variables within the template string can raise an exception in instantiation."
]
Expand Down Expand Up @@ -476,9 +476,9 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"## Using partial_variables\n",
"## Using ```partial_variables```\n",
"\n",
"Using `partial_variables` , you can partially apply functions. This is particularly useful when there are **common variables** to be shared.\n",
"Using ```partial_variables``` , you can partially apply functions. This is particularly useful when there are **common variables** to be shared.\n",
"\n",
"Common examples are **date or time**.\n",
"\n",
Expand Down Expand Up @@ -613,9 +613,9 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"## Load prompt template from YAML file\n",
"## Load Prompt Templates from YAML Files\n",
"\n",
"You can manage prompt templates in seperate yaml files and load using `load_prompt` ."
"You can manage prompt templates in seperate yaml files and load using ```load_prompt``` ."
]
},
{
Expand Down Expand Up @@ -693,16 +693,16 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"## ChatPromptTemplate\n",
"## ```ChatPromptTemplate```\n",
"\n",
"`ChatPromptTemplate` can be used to include a conversation history as a prompt.\n",
"```ChatPromptTemplate``` can be used to include a conversation history as a prompt.\n",
"\n",
"Messages are structured as tuples in the format (`role` , `message` ) and are created as a list.\n",
"Messages are structured as tuples in the format (```role``` , ```message``` ) and are created as a list.\n",
"\n",
"**role**\n",
"- `\"system\"` : A system setup message, typically used for global settings-related prompts.\n",
"- `\"human\"` : A user input message.\n",
"- `\"ai\"` : An AI response message."
"- ```system``` : A system setup message, typically used for global settings-related prompts.\n",
"- ```human``` : A user input message.\n",
"- ```ai``` : An AI response message."
]
},
{
Expand Down Expand Up @@ -852,9 +852,9 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"## MessagePlaceholder\n",
"## ```MessagePlaceholder```\n",
"\n",
"`LangChain` also provides a `MessagePlaceholder` , which provides complete control over rendering messages during formatting.\n",
"```LangChain``` also provides a ```MessagePlaceholder``` , which provides complete control over rendering messages during formatting.\n",
"\n",
"This can be useful if you’re unsure which roles to use in a message prompt template or if you want to insert a list of messages during formatting."
]
Expand Down Expand Up @@ -896,7 +896,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"You can use `MessagesPlaceholder` to add the conversation message list."
"You can use ```MessagesPlaceholder``` to add the conversation message list."
]
},
{
Expand Down Expand Up @@ -939,7 +939,7 @@
},
{
"cell_type": "code",
"execution_count": 38,
"execution_count": null,
"metadata": {},
"outputs": [
{
Expand All @@ -961,7 +961,7 @@
" \"conversation\": [\n",
" (\n",
" \"human\",\n",
" \"Hello! Im Teddy. Nice to meet you.\",\n",
" \"Hello! I'm Teddy. Nice to meet you.\",\n",
" ),\n",
" (\"ai\", \"Nice to meet you! I look forward to working with you.\"),\n",
" ],\n",
Expand Down
Loading