Skip to content

[#5] 텍스트 콘텐츠 체커#43

Merged
gsgh3016 merged 17 commits into
devfrom
feat/text_content_checker
Jul 7, 2025
Merged

[#5] 텍스트 콘텐츠 체커#43
gsgh3016 merged 17 commits into
devfrom
feat/text_content_checker

Conversation

@jeongHwarr
Copy link
Copy Markdown
Collaborator

@jeongHwarr jeongHwarr commented Jun 2, 2025

#5


name: Pull Request
about: 새로운 기능 추가, 버그 수정, 리팩토링 등
title: "[#Issue Number] PR Title"
labels: ''
assignees: ''


📝 Summary

텍스트 콘텐츠 체커

✅ Checklist

  • 관련 이슈가 명시되어 있습니다.
  • 테스트가 완료되었습니다.
  • 문서 업데이트가 포함되었습니다.
  • 코드 리뷰를 위한 사전 검토를 완료했습니다.

📄 Description

생성된 텍스트에 대한 체크를 합니다.

  • 기능

    • 텍스트 형식 검증 (2200자 이하)
    • 콘텐츠 안전성 검사 (Groq API의 llama-guard 사용)
    • 페르소나 일치 여부 확인 (OpenAI GPT 모델 사용)
  • Input

    • state: TextState
      • content_topic, content_type
      • persona_extracted: 생성된 페르소나 정보
      • instagram_text: 생성된 텍스트
  • Output (text_content_checker_result 딕셔너리 구조)

    • success: 모든 검사를 통과하면 True
    • reason: 실패한 검증 항목의 키 목록 (format_check_passed, persona_check_passed, safety_check_passed)
    • content_check_passed: success와 동일한 의미
    • message: 성공 또는 실패 메시지
    • 각 세부 항목의 검사 결과 (True/False)

🔗 Related Issue(s)

#5

@jeongHwarr jeongHwarr requested a review from gsgh3016 June 2, 2025 12:57
@jeongHwarr jeongHwarr self-assigned this Jun 2, 2025
@jeongHwarr jeongHwarr changed the title Feat/text content checker [#5] 텍스트 콘텐츠 체커 Jun 2, 2025
@qjrm1430 qjrm1430 changed the base branch from main to dev June 2, 2025 12:59
Copy link
Copy Markdown
Contributor

@gsgh3016 gsgh3016 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2가지 수정 사항 변경하시고 uv 환경에서 테스트 부탁드립니다!

Comment thread agents/text/modules/models.py
Comment thread agents/text/modules/nodes.py
@jeongHwarr jeongHwarr requested a review from gsgh3016 June 22, 2025 16:30
Copy link
Copy Markdown
Contributor

@gsgh3016 gsgh3016 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

langsmith에서 테스트 시, llama-guard 모델에서 Pass하지 못하고 있습니다. 관련 스레드 링크 공유드립니다: https://smith.langchain.com/public/15997716-800c-4ced-8e71-05809ba68b97/r

도움이 필요하시거나 막히시는 부분 있으면 편하게 말씀주시면 적극적으로 도와드리겠습니다.

@jeongHwarr
Copy link
Copy Markdown
Collaborator Author

langsmith에서 테스트 시, llama-guard 모델에서 Pass하지 못하고 있습니다. 관련 스레드 링크 공유드립니다: https://smith.langchain.com/public/15997716-800c-4ced-8e71-05809ba68b97/r

도움이 필요하시거나 막히시는 부분 있으면 편하게 말씀주시면 적극적으로 도와드리겠습니다.

생성된 텍스트가 비어있을경우 콘텐츠 체커를 스킵하는 기능 추가했습니다

@jeongHwarr jeongHwarr requested a review from gsgh3016 July 6, 2025 14:23
gsgh3016

This comment was marked as duplicate.

Copy link
Copy Markdown
Contributor

@gsgh3016 gsgh3016 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

고생하셨습니다! 👍

@gsgh3016 gsgh3016 merged commit ab129e2 into dev Jul 7, 2025
2 checks passed
@gsgh3016 gsgh3016 deleted the feat/text_content_checker branch July 7, 2025 07:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants