lingo-chat / prompt

lingo-chat AI server (w/ 프롬프트엔지니어링, RAG, Agenting, Dataset generation)
0 stars 3 forks source link

[Feat]: Langgraph Web search agent 함수 추가 (Issue #11) #13

Closed LewisVille-flow closed 1 month ago

LewisVille-flow commented 1 month ago

Overview

PR에 대해 대략적인 Description을 작성해주세요.

  • 기존 Langgraph initial agent graph에 web search agent를 추가합니다.
  • web search 결과를 바탕으로 local llm 이 답변을 캐릭터화하여 재작성합니다.(persona 반영)

Change Log

PR의 대표적인 Log를 간결히 작성해주세요.

  • web search agent 를 추가하여 Langgraph 구조 업데이트
  • 모델의 생성된 답변을 streaminig 으로 return 받을 수 있도록 변경
  • web search agent 의 결과 텍스트를 RAG 형식으로 변경하여 Input Messages 구성
  • chat 형식으로 학습된 형태로 Input Messages 구성(tokenizer.apply_chat_template())

To Reviewer

리뷰 받고자 하는 부분이 있다면 요청사항을 적어주세요.

Issue Tags


PR Checklist (Click to Expand)

PR을 만들기 전에 Title convention을 맞춰주세요.

PR Title and Classification

PR을 통해 해당 코드가 어떤 기능/문서/기타 를 구현하였는지 명확히 확인되어야 합니다. 아래 중 하나의 prefix를 사용하여 PR title을 작성해주세요.

  • [Bugfix] for bug fixes.
  • [Doc] for documentation fixes and improvements.
  • [Api] for new api feature.
  • [Prompt] for better prompts.
  • [CI/Build] for build or continuous integration improvements.
  • [Misc] for PRs that do not fit the above categories. Please use this sparingly.
LewisVille-flow commented 1 month ago

현재 PR에서 구현한 Langgraph agent flow 는 다음과 같습니다.

image