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

Skip to content

Proofread: < 13-LCEL / 08-RunnableWithMessageHistory >ย #341

@chaeyoonyunakim

Description

@chaeyoonyunakim

URL

https://github.com/LangChain-OpenTutorial/LangChain-OpenTutorial/blob/main/13-LangChain-Expression-Language/08-RunnableWithMessageHistory.ipynb

Content & Formatting Issues

  • ๐Ÿ“ Typos - Errors in spelling within the documentation.
  • ๐ŸŒ Translation - Improvements needed in the translated versions.
  • ๐Ÿ“– Grammar - Corrections required for grammatical errors.
  • ๐Ÿ–‹๏ธ Formatting - Issues with Markdown formatting.
  • Other Issues

Checklist

  • I have provided a clear and descriptive title for this issue.
  • I have included a link to the affected documentation page.
  • This issue relates to content (typos, translation, or formatting), not code functionality.

Description of the issue & Suggested Fix or Improvement

์•ˆ๋…•ํ•˜์„ธ์š” @Secludor ๋‹˜,

๋ฒˆ์—ญ/๊ฒ€์ˆ˜ํŒ€ ํ™•์ธ ๋‚ด์šฉ ๋ฐ ์ˆ˜์ • ์ œ์•ˆ์„ ๋‹ค์Œ๊ณผ ๊ฐ™์ด ํฌ๊ฒŒ ์„ธ๊ฐ€์ง€ ๋“œ๋ฆฝ๋‹ˆ๋‹ค.

  1. ๋ณธ ํŠœํ† ๋ฆฌ์–ผ์ด ๋‹ค๋ฃจ๋Š” 2๊ฐœ์˜ ์ฃผ์š” ์ ‘๊ทผ ๋ฐฉ์‹์ด ์ž˜ ๋“œ๋Ÿฌ๋‚˜๊ฒŒ ํ—ค๋”ฉ ๋ฐ ๋ชฉ์ฐจ ์ˆ˜์ •ํ•˜๊ณ ์ž ํ•ฉ๋‹ˆ๋‹ค:
  • Getting Started with RunnableWithMessageHistory (๊ฐœ์š”)
  • Understanding In-Memory Conversation History (์ฒซ๋ฒˆ์งธ ์ ‘๊ทผ๋ฐฉ๋ฒ•)
  • Example of Runnables with using different keys (์˜ˆ์ œ 1)
  • Understanding Persistent Storage (๋‘๋ฒˆ์งธ ์ ‘๊ทผ๋ฐฉ๋ฒ•)
  • Using Redis for Persistence (์˜ˆ์ œ 2) ํ๋ฆ„์œผ๋กœ ์ €๋Š” ์ดํ•ดํ•˜์˜€์Šต๋‹ˆ๋‹ค.
  1. bullet points๋“ค ์›ํ˜•์„ ์ตœ๋Œ€ํ•œ ์œ ์ง€ํ•˜๋˜ ์ „ํ›„ ํ˜•์‹ ๋ฐ ์‹œ์ œ๊ฐ€ ์ผ์น˜ํ•˜๋„๋ก ์ˆ˜์ •ํ•˜๊ณ ์ž ํ•ฉ๋‹ˆ๋‹ค.
  2. ํ—ค๋”ฉ์—์„œ๋Š” backtick๋ฅผ ์ œ์™ธํ•˜๊ณ , ์ผ๋ถ€ config ์˜ต์…˜์ด๋‚˜ parameter๋“ค์— backtick ์ถ”๊ฐ€ ์ ์šฉํ•˜๊ณ ์ž ํ•ฉ๋‹ˆ๋‹ค.

์ˆ˜์ •๋ณธ์„ ๋ณด์‹ค ์ˆ˜ ์žˆ๊ฒŒ ์˜ฌ๋ ค๋‘์—ˆ์œผ๋‹ˆ ๋งํฌ ์ฐธ์กฐ ๋ถ€ํƒ๋“œ๋ฆฝ๋‹ˆ๋‹ค.

Further Questions

์˜ˆ์ œ 1์€ RunnableWithMessageHistory์—์„œ

  • Runnable object๋ผ๋Š” ๊ฒƒ์ด ์žˆ์–ด์„œ (a) input๋งŒ, ๋˜๋Š” (b) input๊ณผ output ๋‘˜๋‹ค ์ง์ ‘ ํ•ธ๋“ค๋งํ•  ์ˆ˜ ์žˆ๊ณ 
  • Runnable object ๋Œ€์‹ ? (c) ํ•˜๋‚˜์˜ key๋ฅผ ์‚ฌ์šฉํ•ด input๊ณผ output๋ฅผ dictionary์—์„œ ์ถ”์ถœํ•ด ์‚ฌ์šฉํ•˜๋Š” ๋ฐฉ๋ฒ•์ด ์žˆ๋Š”๋ฐ itemgetter(\"input_messages\")๋ฅผ ์‚ฌ์šฉํ•ด input์„ extractํ•˜๋Š” ๋ฒ•๋งŒ ์„ค๋ช…ํ•˜์‹  ๊ฒƒ

์ œ๊ฐ€ ์ดํ•ดํ•œ ํ๋ฆ„์ด ๋งž์„๊นŒ์š”? ๋‹ค์†Œ๊ฐ„์˜ ๋ฌธ๊ตฌ ์ˆ˜์ •์€ ์ด๋ ‡๊ฒŒ ์ดํ•ดํ•œ ๊ฒƒ์„ ๋ฐ”ํƒ•์œผ๋กœ ์ œ์•ˆ๋“œ๋ ธ์œผ๋‹ˆ ์ดํ•ดํ•œ ๊ฒƒ์ด ๋งž์ง€ ์•Š๋‹ค๋ฉด ์•Œ๋ ค์ฃผ์‹œ๊ฑฐ๋‚˜ ์ €์˜ ์ˆ˜์ •์ œ์•ˆ ์‚ฌํ•ญ๋“ค์„ ์•Œ๋งž๊ฒŒ ๊ณ ์ณ์ฃผ์‹œ๊ธธ ๋ถ€ํƒ๋“œ๋ฆฝ๋‹ˆ๋‹ค.

Metadata

Metadata

Assignees

Labels

proofreading๋ฒˆ์—ญ/๊ฒ€์ˆ˜ํŒ€ ์ œ์•ˆ์‚ฌํ•ญ ๋ฐ˜์˜

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions