Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions app/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,4 @@ EXPOSE 5050
ENV FLASK_APP=app.py

# Run the application using uWSGI
# CMD ["uwsgi", "--lazy-apps", "--http", "0.0.0.0:5050", "--wsgi-file", "app.py", "--callable", "app", "--processes", "4"]
# longer timeout settings to allow for slower rag and llm responses
CMD ["uwsgi", "--lazy-apps", "--http", "0.0.0.0:5050", "--wsgi-file", "app.py", "--callable", "app", "--processes", "4", "--harakiri", "300", "--socket-timeout", "300", "--http-timeout", "300", "--http-keepalive", "--http-auto-chunked"]
CMD ["uwsgi", "--lazy-apps", "--http", "0.0.0.0:5050", "--wsgi-file", "app.py", "--callable", "app", "--processes", "2"]
1 change: 0 additions & 1 deletion app/test_rag_system.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import unittest

from torch import cosine_similarity
from rag_system import RAGSystem

class TestRAGSystem(unittest.TestCase):
Expand Down
2 changes: 1 addition & 1 deletion compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ services:
resources:
reservations:
memory: 4G
cpus: 2.0
cpus: 1.0
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:5050/"]
interval: 30s
Expand Down