{"id":41346838,"url":"https://github.com/youneedpython/chatbot-law-poc","last_synced_at":"2026-01-23T07:03:01.762Z","repository":{"id":320994664,"uuid":"1084030756","full_name":"youneedpython/chatbot-law-PoC","owner":"youneedpython","description":"전세사기피해자 법률 상담 챗봇","archived":false,"fork":false,"pushed_at":"2025-12-12T04:09:28.000Z","size":223,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-13T11:55:20.393Z","etag":null,"topics":["chat-application","chatbot","law"],"latest_commit_sha":null,"homepage":"","language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/youneedpython.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-10-27T05:50:21.000Z","updated_at":"2025-12-12T04:09:31.000Z","dependencies_parsed_at":"2025-10-27T07:26:59.100Z","dependency_job_id":"19826273-1b21-45c0-9e8b-42281e45964b","html_url":"https://github.com/youneedpython/chatbot-law-PoC","commit_stats":null,"previous_names":["youneedpython/chatbot-law","youneedpython/chatbot-law-poc"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/youneedpython/chatbot-law-PoC","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/youneedpython%2Fchatbot-law-PoC","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/youneedpython%2Fchatbot-law-PoC/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/youneedpython%2Fchatbot-law-PoC/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/youneedpython%2Fchatbot-law-PoC/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/youneedpython","download_url":"https://codeload.github.com/youneedpython/chatbot-law-PoC/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/youneedpython%2Fchatbot-law-PoC/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28682268,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-23T05:48:07.525Z","status":"ssl_error","status_checked_at":"2026-01-23T05:48:07.129Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["chat-application","chatbot","law"],"created_at":"2026-01-23T07:01:47.620Z","updated_at":"2026-01-23T07:03:01.758Z","avatar_url":"https://github.com/youneedpython.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Python](https://img.shields.io/badge/Python-3.10-blue?logo=python)\n![AWS](https://img.shields.io/badge/AWS-ElasticBeanstalk-orange?logo=amazon-aws)\n![Deploy Status](https://github.com/youneedpython/chatbot-law/actions/workflows/deploy-eb.yml/badge.svg)\n![License: CC BY-NC 4.0](https://img.shields.io/badge/License-CC%20BY--NC%204.0-lightgrey)\n\n\u003cbr/\u003e\u003cbr/\u003e\n\n# 🏛️ 전세사기피해자 법률 상담 챗봇\n\n\u003e **전세사기피해자 지원 및 주거안정에 관한 특별법**(약칭: 전세사기피해자법) 기반  \n\u003e 법률 상담 자동화 챗봇 (Streamlit + OpenAI API)\n\n- **시행일:** 2024.11.11  \n- **법률 번호:** 제20429호 (2024.9.10 일부개정)\n\n---\n\n## 📘 Overview\n\n이 프로젝트는 전세사기 피해자의 법률 지원을 위해 구축된 **대화형 챗봇 시스템**입니다.  \nStreamlit UI 기반으로 사용자 입력을 받아, 법령 데이터와 LLM을 통해 응답을 제공합니다.  \n\n---\n\n## 🌐 Deployment URLs\n\n| 환경 | 링크 |\n|------|------|\n| **AWS Elastic Beanstalk (PoC)** | **[http://chatbot-law-env.eba-jqza6c2z.ap-northeast-2.elasticbeanstalk.com/](http://chatbot-law-env.eba-jqza6c2z.ap-northeast-2.elasticbeanstalk.com/)** |\n| **Streamlit (Demo)** | [https://law-chatbot-mvp.streamlit.app](https://law-chatbot-mvp.streamlit.app) |\n\n---\n\n## 💬 Chatbot Example\n\n**질문:**  \n\u003e 전세사기를 당했습니다. 어떤 법적 조치를 해야 하나요?\n\n**응답:**  \n\u003e ![image](https://github.com/user-attachments/assets/a0854282-1b4a-4e29-8f45-b724060b7a02)\n\n---\n\n## ⚙️ Architecture\n\n```mermaid\nflowchart TD\n  A[GitHub Commit] --\u003e B[GitHub Actions CI/CD]\n  B --\u003e C[S3 Upload]\n  C --\u003e D[Elastic Beanstalk Deployment]\n  D --\u003e E[EC2 Container - Docker]\n  E --\u003e F[Streamlit App on Port 8501]\n  F --\u003e G[User Access via Public URL]\n```\n\n---\n\n## 🧩 System Components\n\n| 구성 요소 | 기술 스택 | 설명 |\n|------------|------------|------|\n| **Frontend (UI)** | Streamlit | 사용자 입력/응답 인터페이스 |\n| **Backend (API)** | Python 3.10 / LLM API | 전세사기 관련 법률 데이터 처리 |\n| **Infra (Deploy)** | Docker + AWS Elastic Beanstalk | CI/CD 및 Auto Scaling |\n| **Storage** | S3 | 애플리케이션 버전 ZIP 저장소 |\n| **Monitoring** | Elastic Beanstalk Healthd | Health 상태 모니터링 및 로그 수집 |\n\n---\n\n## 🚀 GitHub Actions CI/CD Pipeline\n\nGitHub `main` 브랜치에 **push → 자동 배포**되는 구조로 설계되어 있습니다.\n\n### Workflow 파일\n`.github/workflows/deploy-eb.yml`\n\n### 주요 단계\n| 단계 | 설명 |\n|------|------|\n| **Checkout** | 최신 소스코드 가져오기 |\n| **Configure AWS credentials** | GitHub Secrets의 IAM 키 로드 |\n| **Create application bundle (zip)** | 배포용 ZIP 생성 |\n| **Deploy to Elastic Beanstalk** | S3 → EB 환경 자동 배포 |\n| **Post cleanup** | 임시 자원 정리 |\n\n---\n\n## 🧠 Environment Summary\n\n| 항목 | 값 |\n|------|------|\n| AWS Region | ap-northeast-2 (Seoul) |\n| Instance Type | t3.small |\n| Platform | Docker on Amazon Linux 2023 |\n| Environment | SingleInstance (No Load Balancer) |\n| App Port | 8501 |\n| Health Check Path | `/_stcore/health` |\n\n---\n\n## 📘 Research \u0026 Notebooks\n\n| 파일명 | 설명 |\n|--------|------|\n| `notebooks/rag_retrieval_qa_pipeline.ipynb` | 전세사기피해 법률 문서를 기반으로 한 RAG QA 파이프라인 구현 |\n| `notebooks/rag_langserve_langsmith_integration.ipynb` | LangServe 및 LangSmith 연동 실험 (배포 모니터링 테스트) |\n\n\u003e 💡 모든 실험은 `source_documents/` 폴더 내 문서를 사용하며,  \n\u003e 생성된 임베딩은 Pinecone Vector Store에 저장됩니다.\n\n---\n\n## 📄 License \u0026 Maintenance\n\n- **License:** CC BY-NC 4.0  \n- **Maintainer:** youneedpython  \n- **Infra:** AWS Elastic Beanstalk (t3.small)  \n- **Auto Deployment:** GitHub Actions\n\n---\n\n\u003e 💡 *본 프로젝트는 전세사기 피해자 보호 및 법률 정보 접근성을 향상시키기 위한 비영리적 연구용 챗봇입니다.*\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyouneedpython%2Fchatbot-law-poc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyouneedpython%2Fchatbot-law-poc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyouneedpython%2Fchatbot-law-poc/lists"}