Skip to content

hachuu/RAG_FILE_CHAT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

6 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

λͺ¨λΈ μ„€λͺ… : RAG (Retrieval-Augmented Generation)

RAG (Retrieval-Augmented Generation) λͺ¨λΈμ€ λŒ€λŸ‰μ˜ λΉ„μ •ν˜• λ°μ΄ν„°μ—μ„œ 정보λ₯Ό κ²€μƒ‰ν•˜κ³ , 이λ₯Ό λ°”νƒ•μœΌλ‘œ μ§ˆλ¬Έμ— λŒ€ν•œ 닡변을 μƒμ„±ν•˜λŠ” λͺ¨λΈμž…λ‹ˆλ‹€.

βœ… λͺ©ν‘œ κΈ°λŠ₯ μš”μ•½

1. πŸ“‚ 파일 μ—…λ‘œλ“œ (PDF, TXT)

2. πŸ“„ ν…μŠ€νŠΈ μΆ”μΆœ & chunk λ‚˜λˆ„κΈ°

3. 🧠 벑터화 (embedding)

4. πŸ’Ύ 벑터 μ €μž₯ (FAISS)

5. ❓ 질문 μž…λ ₯ β†’ 검색 + LLM 응닡

6. πŸ“± Streamlit UI둜 μ „λΆ€ μ—°κ²°

πŸ“ 전체 ꡬ쑰 섀계

rag_file_chat/
β”œβ”€β”€ frontend/
β”‚   └── app.py                  ← πŸ“± Streamlit UI, μ‚¬μš©μž μž…λ ₯ 및 응닡 좜λ ₯
β”œβ”€β”€ rag/
β”‚   β”œβ”€β”€ loader.py               ← πŸ“„ PDF, TXT 읽기 + chunk λ‚˜λˆ„κΈ°
β”‚   β”œβ”€β”€ vector_store.py         ← 🧠 ν…μŠ€νŠΈ μž„λ² λ”© + 벑터 μ €μž₯/λ‘œλ“œ
β”‚   └── qa_engine.py            ← ❓ RAG 기반 질문 처리 + 🧾 μ‚¬μš©μž 질문/응닡 기둝 관리 (Chat Memory)
β”œβ”€β”€ data/
β”‚   β”œβ”€β”€ uploads/                ← πŸ“‚ μ—…λ‘œλ“œλœ 원본 λ¬Έμ„œ μ €μž₯
β”‚   └── vectors/                ← πŸ’Ύ 벑터 DB μ €μž₯μ†Œ
β”œβ”€β”€ .env                        ← πŸ” API ν‚€ λ“± 민감 정보
└── requirements.txt            ← πŸ“¦ νŒ¨ν‚€μ§€ μ˜μ‘΄μ„± λͺ©λ‘

μ‹€ν–‰ 방법

$env:PYTHONPATH="."; streamlit run frontend/app.py   # Windows PowerShell

About

AI λ¬Έμ„œ 챗봇 πŸ“πŸ€–

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published