본문 바로가기

Nathaniel

검색하기
Nathaniel
프로필사진 Nathaniel1

  • 분류 전체보기 (28)
    • AI (12)
Guestbook
Notice
Recent Posts
Recent Comments
Link
«   2026/02   »
일 월 화 수 목 금 토
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
Tags
  • runnableparallel
  • RecursiveCharacterTextSplitter
  • azureai
  • azure open ai service
  • 챗봇 만들기
  • GPT
  • Parallel
  • 문서/번역 서비스 사용
  • chain생성
  • azure ai
  • Azure
  • runnablelambda
  • ai language
  • csvloader
  • lcel
  • azure open ai
  • 자연어처리
  • OpenAI
  • teddynote
  • splitter
  • langsmith
  • webbaseloader
  • runnablepassthrough
  • langchain
  • 자연어 처리
  • rag
  • Multimodal
  • Runnable
  • pdfloader
  • azure services
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록Parallel (1)

Nathaniel

3. Langchain LCEL, Parallel

지난번 LCEL문법을 사용하여 Langchain의 chain을 진행했다.유닉스 파이프를 인용한 " | " 문자를 사용해 chain을 만들었는데 그 구조는 아래와 같다.chain = prompt | llm | Outputparser  stream = 실시간 출력으로 응답 받고invoke = 출력되는 답변을 완성될 때까지 기다렸다가 한번에 받기위 두 가지를 진행했었다. Batch, max_concurrency 이번엔 batch(단위 실행) 여러 개의 딕셔너리를 포함하는 리스트를 인자로 받아서 딕셔너리에 있는topic의 키 값을 사용한 일괄처리 수행방법이다. answer = chain.batch([{"topic:": "ChatGPT"}, {"topic":"instagram"}]) 이런 방식이다.그리고 변수로 ..

AI 2025. 3. 2. 15:31
이전 Prev 1 Next 다음

Blog is powered by kakao / Designed by Tistory

티스토리툴바