Skip to content

Commit

Permalink
기사 재생성 스케쥴링 RAG/LangChain 마이그레이션 (#85)
Browse files Browse the repository at this point in the history
* 기사생성 V2 프롬프트 분리

* 기사생성 V2 리팩토링
- langchain을 활용하여 요청하는 코드 재활용 가능하게 수정

* 패키지 이동
- 왜 article안에 뒀냐 ㅋㅋ;;
  • Loading branch information
stopmin authored Jul 14, 2024
1 parent ab31153 commit 0cd7713
Show file tree
Hide file tree
Showing 14 changed files with 255 additions and 415 deletions.
Empty file.
66 changes: 0 additions & 66 deletions app/articles/rag_lang_chain/google_cse_retriver.py

This file was deleted.

63 changes: 0 additions & 63 deletions app/articles/rag_lang_chain/google_search_api.py

This file was deleted.

149 changes: 0 additions & 149 deletions app/articles/rag_lang_chain/langchain_applied.py

This file was deleted.

98 changes: 0 additions & 98 deletions app/articles/rag_lang_chain/wekipedia_api.py

This file was deleted.

1 change: 1 addition & 0 deletions app/model/prompt/prompt_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ class PromptVersion(Enum):
V_2024_07_02 = PromptInfo(version="2024-07-02", role=Role.SIMPLE_ARTICLE)
V_2024_07_05 = PromptInfo(version="2024-07-05", role=Role.PUBLIC_DATA_API_ARTICLE)
V_2024_07_10 = PromptInfo(version="2024-07-10", role=Role.GRAPHIC_ARTICLE)
V_2024_07_14 = PromptInfo(version="2024-07-14", role=Role.SIMPLE_ARTICLE)

# newsletter article
newsletter_article_2024_07_03 = PromptInfo(
Expand Down
Loading

0 comments on commit 0cd7713

Please sign in to comment.