์๋์ ์ด๋ฏธ์ง๋ Medium - Corca : LLM Multi Agent: Customer Service๋ฅผ ๊ธฐ๊น๋๊ฒ ์๋ํํ๋ ๋ฐฉ๋ฒ์์ ๋ฐ์ทํ ์ด๋ฏธ์ง์ ๋๋ค. ํด๋น ์ด๋ฏธ์ง์ ๋์ผํ ๊ธฐ๋ฅ์ ํ๋๋ก ์ฝ๋๋ฅผ ๊ฐ์ ํ๊ณ ์๋ ์ค์ ๋๋ค.
- Leader Agent๊ฐ Key Point Analyzer Agent์๊ฒ ๋ณต์กํ ์ง๋ฌธ์ ๊ฐ๋จํ ์ฌ๋ฌ ๊ฐ์ Sub-question์ผ๋ก ๋๋ ๋ฌ๋ผ๊ณ ์์ฒญํฉ๋๋ค.
- Leader Agent๊ฐ Sub-question ๋ชฉ๋ก์ ๋ฐ์ผ๋ฉด ๊ฐ๊ฐ์ Sub-question์ ๋ํ์ฌ Question Answerer Agent์ ์์ฑํ๊ณ ๋ตํด๋ฌ๋ผ๊ณ ์์ฒญํฉ๋๋ค.
- ์ด๋ Question Answerer Agent๋ ๊ฐ Sub-question์ ํ์ํ ์ ๋ณด๋ฅผ Vector Store์์ ์ฐพ์์์ ์ด๋ฅผ ์ฐธ๊ณ ํ์ฌ ๋ตํฉ๋๋ค.
- Leader Agent๋ ๊ฐ๊ฐ์ Sub-Question์ ๋ํ ๋ต์ ํฉํ์ฌ ์ฌ์ฉ์ ์ง์์ ๋ํ ๋ต์ ์์ฑํ๊ณ , Reviewer Agent์๊ฒ ๊ฒํ ํด๋ฌ๋ผ๊ณ ์์ฒญํฉ๋๋ค.
- Reviewer Agent๋ Leader Agent๋ก๋ถํฐ ์ ๋ฌ๋ฐ์ ๋ต๋ณ์ ๋ํ ํผ๋๋ฐฑ์ ๋งํฉ๋๋ค. Leader Agent๋ ๊ทธ ํผ๋๋ฐฑ์ ๋ฐ์ํ์ฌ ์ต์ข ๋ต๋ณ์ ์์ฑํ ํ ์ฌ์ฉ์์๊ฒ ์ ๋ฌํฉ๋๋ค.
- ๊ฐ์ํ๊ฒฝ ์ค์
git clone https://github.com/whybe-choi/advanced-rag-project.git
cd advanced-rag-project
python -m venv venv
source venv/bin/activate
- playwright ์ค์น
playwright install
- ๋ผ์ด๋ธ๋ฌ๋ฆฌ ์ค์น
pip install -r requirements.txt
- ๋ฐ์ดํฐ ํฌ๋กค๋ง
python crawling_faq.py
- ChromaDB ์์ฑ
python upload.py
.env.example
์.env
๋ก ๋ฐ๊พธ๊ณCO_API_KEY
์ ๋ ฅ
CO_API_KEY=your-api-key
- streamlit ์คํ
streamlit run app.py