Arif commited on
Commit
2b6c2ca
·
0 Parent(s):

Initial commit

Browse files
Files changed (7) hide show
  1. .env.example +26 -0
  2. .gitignore +71 -0
  3. .python-version +1 -0
  4. README.md +0 -0
  5. main.py +6 -0
  6. pyproject.toml +47 -0
  7. uv.lock +0 -0
.env.example ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Backend Configuration
2
+ FASTAPI_ENV=development
3
+ API_HOST=0.0.0.0
4
+ API_PORT=8000
5
+ LOG_LEVEL=INFO
6
+
7
+ # LLM Configuration (will be filled in Phase 2)
8
+ LLM_MODEL_NAME=mlx-community/Llama-2-13B-4bit
9
+ LLM_MAX_TOKENS=1024
10
+ LLM_TEMPERATURE=0.7
11
+ LLM_DEVICE=auto
12
+
13
+ # File Upload
14
+ MAX_FILE_SIZE=1048576
15
+ UPLOAD_TIMEOUT=30
16
+
17
+ # CORS
18
+ CORS_ORIGINS=["http://localhost:8501","http://web:8501"]
19
+
20
+ # Frontend Configuration
21
+ STREAMLIT_SERVER_PORT=8501
22
+ STREAMLIT_SERVER_HEADLESS=true
23
+ API_BASE_URL=http://localhost:8000
24
+ API_BASE_URL_DOCKER=http://api:8000
25
+ SESSION_TIMEOUT=3600
26
+ MAX_CHAT_HISTORY=50
.gitignore ADDED
@@ -0,0 +1,71 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Python
2
+ __pycache__/
3
+ *.py[cod]
4
+ *$py.class
5
+ *.so
6
+ .Python
7
+ build/
8
+ develop-eggs/
9
+ dist/
10
+ downloads/
11
+ eggs/
12
+ .eggs/
13
+ lib/
14
+ lib64/
15
+ parts/
16
+ sdist/
17
+ var/
18
+ wheels/
19
+ *.egg-info/
20
+ .installed.cfg
21
+ *.egg
22
+
23
+ # Virtual Environments
24
+ venv/
25
+ ENV/
26
+ env/
27
+ .venv
28
+
29
+ # IDE
30
+ .vscode/
31
+ .idea/
32
+ *.swp
33
+ *.swo
34
+ *~
35
+ .DS_Store
36
+
37
+ # Environment
38
+ .env
39
+ .env.local
40
+ .env.*.local
41
+
42
+ # Testing
43
+ .pytest_cache/
44
+ .coverage
45
+ htmlcov/
46
+
47
+ # ML/Data
48
+ *.pkl
49
+ *.joblib
50
+ *.h5
51
+ *.pth
52
+ models/
53
+ data/
54
+
55
+ # Temporary
56
+ tmp/
57
+ temp/
58
+ uploads/
59
+ *.tmp
60
+
61
+ # Docker
62
+ .dockerignore
63
+ docker-compose.override.yml
64
+
65
+ # Logs
66
+ *.log
67
+ logs/
68
+
69
+ # OS
70
+ .DS_Store
71
+ Thumbs.db
.python-version ADDED
@@ -0,0 +1 @@
 
 
1
+ 3.12
README.md ADDED
File without changes
main.py ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ def main():
2
+ print("Hello from llm-data-analyzer!")
3
+
4
+
5
+ if __name__ == "__main__":
6
+ main()
pyproject.toml ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [project]
2
+ name = "llm-data-analyzer"
3
+ version = "0.1.0"
4
+ description = "LLM-based data analyzer for Mac M4 - FastAPI backend + Streamlit frontend"
5
+ requires-python = ">=3.11"
6
+ authors = [{name = "Your Name", email = "your.email@example.com"}]
7
+
8
+ # COMBINED DEPENDENCIES - Both Backend and Frontend
9
+ dependencies = [
10
+ # Backend - FastAPI & Server
11
+ "fastapi==0.109.0",
12
+ "uvicorn[standard]==0.27.0",
13
+
14
+ # Data Processing
15
+ "pandas==2.1.4",
16
+ "numpy>=1.26.0,<2.0.0",
17
+ "scikit-learn==1.3.2",
18
+
19
+ # File Handling & Parsing
20
+ "openpyxl==3.1.5",
21
+ "python-multipart==0.0.6",
22
+ "aiofiles==23.2.1",
23
+
24
+ # Validation & Configuration
25
+ "pydantic==2.5.0",
26
+ "pydantic-settings==2.1.0",
27
+ "python-dotenv==1.0.0",
28
+
29
+ # Visualization
30
+ "plotly==5.18.0",
31
+
32
+ # Frontend - Streamlit
33
+ "streamlit==1.28.1",
34
+ "requests==2.31.0",
35
+ ]
36
+
37
+ [project.optional-dependencies]
38
+ dev = [
39
+ "pytest==7.4.3",
40
+ "pytest-asyncio==0.21.1",
41
+ "pytest-cov==4.1.0",
42
+ "black==23.12.0",
43
+ "ruff==0.1.11",
44
+ ]
45
+
46
+ [tool.uv]
47
+ managed = true
uv.lock ADDED
The diff for this file is too large to render. See raw diff