Sush commited on
Commit
e139119
·
1 Parent(s): a9558fa

Update project

Browse files
Files changed (2) hide show
  1. Dockerfile +26 -0
  2. requirements.txt +5 -2
Dockerfile CHANGED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.11-slim
2
+
3
+ WORKDIR /app
4
+
5
+ # Install system dependencies
6
+ RUN apt-get update && apt-get install -y \
7
+ build-essential \
8
+ && rm -rf /var/lib/apt/lists/*
9
+
10
+ # Copy requirements first (for Docker layer caching)
11
+ COPY requirements.txt .
12
+ RUN pip install --no-cache-dir -r requirements.txt
13
+
14
+ # Copy all project files
15
+ COPY agents/ ./agents/
16
+ COPY data/ ./data/
17
+ COPY vectorstore/ ./vectorstore/
18
+ COPY app.py .
19
+ COPY ingest.py .
20
+ COPY .env.example .
21
+
22
+ # Expose Streamlit port
23
+ EXPOSE 7860
24
+
25
+ # Run ingest first if vectorstore is empty, then launch app
26
+ CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"]
requirements.txt CHANGED
@@ -1,11 +1,14 @@
1
  langchain
2
  langchain-community
3
  langchain-groq
 
 
4
  langgraph
5
  faiss-cpu
6
  sentence-transformers
7
- streamlit
8
  python-dotenv
9
  sqlalchemy
10
  pandas
11
- groq
 
 
 
1
  langchain
2
  langchain-community
3
  langchain-groq
4
+ langchain-huggingface
5
+ langchain-text-splitters
6
  langgraph
7
  faiss-cpu
8
  sentence-transformers
 
9
  python-dotenv
10
  sqlalchemy
11
  pandas
12
+ groq
13
+ pypdf
14
+ streamlit