Spaces:
Sleeping
Sleeping
Commit ·
bcd44b5
0
Parent(s):
Initial project setup: gitignore, README, requirements
Browse files- .env.example +6 -0
- .gitignore +46 -0
- README.md +11 -0
- requirements.txt +20 -0
.env.example
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Copy file này thành .env và điền key thật
|
| 2 |
+
# File .env KHÔNG được commit lên Git
|
| 3 |
+
|
| 4 |
+
GOOGLE_API_KEY=your_google_api_key_here
|
| 5 |
+
# Hoặc nếu dùng OpenAI
|
| 6 |
+
OPENAI_API_KEY=your_openai_api_key_here
|
.gitignore
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Python
|
| 2 |
+
__pycache__/
|
| 3 |
+
*.py[cod]
|
| 4 |
+
*.pyo
|
| 5 |
+
.Python
|
| 6 |
+
venv/
|
| 7 |
+
.venv/
|
| 8 |
+
env/
|
| 9 |
+
*.egg-info/
|
| 10 |
+
dist/
|
| 11 |
+
build/
|
| 12 |
+
.eggs/
|
| 13 |
+
|
| 14 |
+
# Environment variables
|
| 15 |
+
.env
|
| 16 |
+
.env.local
|
| 17 |
+
*.env
|
| 18 |
+
|
| 19 |
+
# IDE
|
| 20 |
+
.vscode/
|
| 21 |
+
.idea/
|
| 22 |
+
*.swp
|
| 23 |
+
|
| 24 |
+
# Data lớn — không commit lên Git
|
| 25 |
+
data/MC-OCR/
|
| 26 |
+
data/images/
|
| 27 |
+
data/pdf_text/
|
| 28 |
+
*.zip
|
| 29 |
+
*.tar.gz
|
| 30 |
+
|
| 31 |
+
# Vector store
|
| 32 |
+
chroma_db/
|
| 33 |
+
qdrant_storage/
|
| 34 |
+
|
| 35 |
+
# Jupyter
|
| 36 |
+
.ipynb_checkpoints/
|
| 37 |
+
*.ipynb
|
| 38 |
+
|
| 39 |
+
# OS
|
| 40 |
+
.DS_Store
|
| 41 |
+
Thumbs.db
|
| 42 |
+
desktop.ini
|
| 43 |
+
|
| 44 |
+
# Logs
|
| 45 |
+
*.log
|
| 46 |
+
logs/
|
README.md
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# RAG System — Tiếng Việt
|
| 2 |
+
|
| 3 |
+
Hệ thống RAG (Retrieval-Augmented Generation) cho tài liệu tiếng Việt phức tạp — parsing hai tầng, hybrid search, đánh giá RAGAS.
|
| 4 |
+
|
| 5 |
+
## Cách chạy
|
| 6 |
+
|
| 7 |
+
_(Sẽ cập nhật sau khi hoàn thành Tuần 1)_
|
| 8 |
+
|
| 9 |
+
## Kiến trúc
|
| 10 |
+
|
| 11 |
+
_(Sẽ cập nhật)_
|
requirements.txt
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# LLM & Embedding
|
| 2 |
+
anthropic>=0.40.0
|
| 3 |
+
google-generativeai>=0.8.0
|
| 4 |
+
openai>=1.50.0
|
| 5 |
+
sentence-transformers>=3.0.0
|
| 6 |
+
|
| 7 |
+
# Vector store
|
| 8 |
+
chromadb>=0.5.0
|
| 9 |
+
|
| 10 |
+
# Document parsing
|
| 11 |
+
pypdf>=4.0.0
|
| 12 |
+
python-docx>=1.1.0
|
| 13 |
+
|
| 14 |
+
# Data
|
| 15 |
+
pandas>=2.0.0
|
| 16 |
+
numpy>=1.26.0
|
| 17 |
+
|
| 18 |
+
# Utils
|
| 19 |
+
python-dotenv>=1.0.0
|
| 20 |
+
tqdm>=4.66.0
|