Skip to content

State Output Format 설정 #98

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
3 tasks
nonegom opened this issue May 4, 2025 · 3 comments
Open
3 tasks

State Output Format 설정 #98

nonegom opened this issue May 4, 2025 · 3 comments
Assignees
Labels
agent The core processing component that interprets user input, manages workflows, and orchestrates the SQ bug Something isn't working

Comments

@nonegom
Copy link
Contributor

nonegom commented May 4, 2025

Why ❓

현재 상황 및 문제점:

  • LLM Output 중 종종 정해진 프롬프트에 정의한 포맷이외의 값이 나오는 경우가 있음

How 🤔

해결 방안 ✅:

  • Output Parser를 사용해서 Output을 고정하게 설정
  • 만약, Output이 원하는 포맷이 아닐 경우 예외처리 (TODO: 별도 Agent 호출 혹은 refine 수행 간으)

What 🛠️

  • Output Parser Schema 정의
  • Output Parser Setting 및 적용
  • 테스트 진행
@nonegom nonegom added bug Something isn't working agent The core processing component that interprets user input, manages workflows, and orchestrates the SQ labels May 4, 2025
@nonegom nonegom self-assigned this May 4, 2025
@nonegom
Copy link
Contributor Author

nonegom commented May 4, 2025

#87 : 해당 Issue와 연관

@ehddnr301
Copy link
Collaborator

ehddnr301 commented May 5, 2025

💊 #91 이슈로 일정 부분 해결 가능해 보입니다. 여유가있을때 추가 개선을 검토해보시는 것도 좋을 것 같습니다! 확인부탁드립니다! @nonegom

💬 예전에 확인했을땐 Output parser가 단순히 특정 prompt를 덧붙이는 정도로 보였는데요! 지금 #91 에서도 <...> 형태로 출력 형식을 어느 정도 명시적으로 제어하고 있고, 정규식을 활용하면 오류 없이 원하는 부분만 안정적으로 추출 가능한 수준으로 보입니다.

@nonegom
Copy link
Contributor Author

nonegom commented May 6, 2025

@ehddnr301 해당 부분 확인했는데, 지금도 좋은 해결책인 것 같습니다. 제가 수정하는 부분의 경우 크게 시간이 소요되는 방식은 아니다보니 추후 확인 후 비교해보는 것을 제안드립니다.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
agent The core processing component that interprets user input, manages workflows, and orchestrates the SQ bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants