Sontranwakumo commited on
Commit
88ed709
·
1 Parent(s): 358a5fd

feat: add docker files

Browse files
Files changed (3) hide show
  1. Dockerfile +18 -0
  2. environment.yml +24 -4
  3. requirements.txt +14 -7
Dockerfile ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Sử dụng Python base image phiên bản slim để giảm kích thước
2
+ FROM python:3.9.22-slim
3
+
4
+ # Thiết lập thư mục làm việc
5
+ WORKDIR /app
6
+
7
+ # Sao chép file requirements.txt và cài đặt phụ thuộc
8
+ COPY requirements.txt .
9
+ RUN pip install --no-cache-dir -r requirements.txt
10
+
11
+ # Sao chép toàn bộ mã nguồn ứng dụng
12
+ COPY . .
13
+
14
+ # Mở port 8000
15
+ EXPOSE 8000
16
+
17
+ # Chạy ứng dụng với Uvicorn
18
+ CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]
environment.yml CHANGED
@@ -36,28 +36,35 @@ dependencies:
36
  - charset-normalizer==3.4.2
37
  - chromadb==1.0.8
38
  - click==8.1.8
 
39
  - coloredlogs==15.0.1
40
  - dataclasses-json==0.6.7
41
  - deprecated==1.2.18
42
  - distro==1.9.0
43
  - durationpy==0.9
44
  - exceptiongroup==1.3.0
 
45
  - fastapi==0.115.9
46
  - filelock==3.18.0
47
  - filetype==1.2.0
48
  - flatbuffers==25.2.10
49
  - frozenlist==1.6.0
50
  - fsspec==2024.12.0
51
- - google-ai-generativelanguage==0.6.18
 
52
  - google-api-core==2.24.2
 
53
  - google-auth==2.40.1
 
 
54
  - googleapis-common-protos==1.70.0
55
  - greenlet==3.2.2
56
  - grpcio==1.72.0rc1
57
- - grpcio-status==1.72.0rc1
58
  - h11==0.16.0
59
  - hf-xet==1.1.0
60
  - httpcore==1.0.9
 
61
  - httptools==0.6.4
62
  - httpx==0.28.1
63
  - httpx-sse==0.4.0
@@ -68,6 +75,7 @@ dependencies:
68
  - importlib-resources==6.5.2
69
  - jinja2==3.1.6
70
  - jiter==0.10.0
 
71
  - json-repair==0.39.1
72
  - jsonpatch==1.33
73
  - jsonpointer==3.0.0
@@ -92,7 +100,7 @@ dependencies:
92
  - neo4j==5.28.1
93
  - neo4j-graphrag==1.7.0
94
  - networkx==3.2.1
95
- - numpy==2.0.2
96
  - oauthlib==3.2.2
97
  - onnxruntime==1.19.2
98
  - openai==1.79.0
@@ -113,19 +121,23 @@ dependencies:
113
  - posthog==4.0.1
114
  - propcache==0.3.1
115
  - proto-plus==1.26.1
116
- - protobuf==6.31.0
117
  - pyasn1==0.6.1
118
  - pyasn1-modules==0.4.2
119
  - pydantic==2.11.4
120
  - pydantic-core==2.33.2
121
  - pydantic-settings==2.9.1
122
  - pygments==2.19.1
 
123
  - pypdf==5.5.0
124
  - pypika==0.48.9
125
  - pyproject-hooks==1.2.0
 
126
  - python-dateutil==2.9.0.post0
127
  - python-dotenv==1.1.0
 
128
  - pytz==2025.2
 
129
  - pyyaml==6.0.2
130
  - referencing==0.36.2
131
  - regex==2024.11.6
@@ -136,13 +148,19 @@ dependencies:
136
  - rpds-py==0.24.0
137
  - rsa==4.9.1
138
  - safetensors==0.5.3
 
 
 
139
  - shellingham==1.5.4
140
  - six==1.17.0
 
141
  - sniffio==1.3.1
142
  - sqlalchemy==2.0.41
143
  - starlette==0.45.3
144
  - sympy==1.14.0
 
145
  - tenacity==9.1.2
 
146
  - tokenizers==0.21.1
147
  - tomli==2.2.1
148
  - torch==2.2.2
@@ -154,10 +172,12 @@ dependencies:
154
  - typing-extensions==4.13.2
155
  - typing-inspect==0.9.0
156
  - typing-inspection==0.4.0
 
157
  - urllib3==2.4.0
158
  - uvicorn==0.34.2
159
  - uvloop==0.21.0
160
  - watchfiles==1.0.5
 
161
  - websocket-client==1.8.0
162
  - websockets==15.0.1
163
  - wrapt==1.17.2
 
36
  - charset-normalizer==3.4.2
37
  - chromadb==1.0.8
38
  - click==8.1.8
39
+ - clip==1.0
40
  - coloredlogs==15.0.1
41
  - dataclasses-json==0.6.7
42
  - deprecated==1.2.18
43
  - distro==1.9.0
44
  - durationpy==0.9
45
  - exceptiongroup==1.3.0
46
+ - faiss-cpu==1.8.0
47
  - fastapi==0.115.9
48
  - filelock==3.18.0
49
  - filetype==1.2.0
50
  - flatbuffers==25.2.10
51
  - frozenlist==1.6.0
52
  - fsspec==2024.12.0
53
+ - ftfy==6.3.1
54
+ - google-ai-generativelanguage==0.6.15
55
  - google-api-core==2.24.2
56
+ - google-api-python-client==2.169.0
57
  - google-auth==2.40.1
58
+ - google-auth-httplib2==0.2.0
59
+ - google-generativeai==0.8.5
60
  - googleapis-common-protos==1.70.0
61
  - greenlet==3.2.2
62
  - grpcio==1.72.0rc1
63
+ - grpcio-status==1.71.0
64
  - h11==0.16.0
65
  - hf-xet==1.1.0
66
  - httpcore==1.0.9
67
+ - httplib2==0.22.0
68
  - httptools==0.6.4
69
  - httpx==0.28.1
70
  - httpx-sse==0.4.0
 
75
  - importlib-resources==6.5.2
76
  - jinja2==3.1.6
77
  - jiter==0.10.0
78
+ - joblib==1.5.1
79
  - json-repair==0.39.1
80
  - jsonpatch==1.33
81
  - jsonpointer==3.0.0
 
100
  - neo4j==5.28.1
101
  - neo4j-graphrag==1.7.0
102
  - networkx==3.2.1
103
+ - numpy==1.26.4
104
  - oauthlib==3.2.2
105
  - onnxruntime==1.19.2
106
  - openai==1.79.0
 
121
  - posthog==4.0.1
122
  - propcache==0.3.1
123
  - proto-plus==1.26.1
124
+ - protobuf==5.29.4
125
  - pyasn1==0.6.1
126
  - pyasn1-modules==0.4.2
127
  - pydantic==2.11.4
128
  - pydantic-core==2.33.2
129
  - pydantic-settings==2.9.1
130
  - pygments==2.19.1
131
+ - pyparsing==3.2.3
132
  - pypdf==5.5.0
133
  - pypika==0.48.9
134
  - pyproject-hooks==1.2.0
135
+ - python-crfsuite==0.9.11
136
  - python-dateutil==2.9.0.post0
137
  - python-dotenv==1.1.0
138
+ - python-multipart==0.0.20
139
  - pytz==2025.2
140
+ - pyvi==0.1.1
141
  - pyyaml==6.0.2
142
  - referencing==0.36.2
143
  - regex==2024.11.6
 
148
  - rpds-py==0.24.0
149
  - rsa==4.9.1
150
  - safetensors==0.5.3
151
+ - scikit-learn==1.6.1
152
+ - scipy==1.13.1
153
+ - sentence-transformers==4.1.0
154
  - shellingham==1.5.4
155
  - six==1.17.0
156
+ - sklearn-crfsuite==0.5.0
157
  - sniffio==1.3.1
158
  - sqlalchemy==2.0.41
159
  - starlette==0.45.3
160
  - sympy==1.14.0
161
+ - tabulate==0.9.0
162
  - tenacity==9.1.2
163
+ - threadpoolctl==3.6.0
164
  - tokenizers==0.21.1
165
  - tomli==2.2.1
166
  - torch==2.2.2
 
172
  - typing-extensions==4.13.2
173
  - typing-inspect==0.9.0
174
  - typing-inspection==0.4.0
175
+ - uritemplate==4.1.1
176
  - urllib3==2.4.0
177
  - uvicorn==0.34.2
178
  - uvloop==0.21.0
179
  - watchfiles==1.0.5
180
+ - wcwidth==0.2.13
181
  - websocket-client==1.8.0
182
  - websockets==15.0.1
183
  - wrapt==1.17.2
requirements.txt CHANGED
@@ -1,8 +1,15 @@
1
- langchain>=0.3.23
2
- neo4j>=5.28.1
3
- python-dotenv>=1.0.1
4
- fastapi>=0.115.12
5
- uvicorn>=0.34.2
6
- pydantic>=2.10.6
7
- faiss-cpu>=1.11.0
 
 
 
 
 
 
 
8
 
 
1
+ fastapi
2
+ pydantic
3
+ pydantic-settings
4
+ python-dotenv
5
+ torch
6
+ torchvision
7
+ Pillow
8
+ clip-by-openai
9
+ sentence-transformers
10
+ faiss-cpu
11
+ pyvi
12
+ neo4j
13
+ langchain-google-genai
14
+ numpy
15