File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,9 @@ COPY requirements.txt /app/
3333# Install Python dependencies
3434RUN pip install --no-cache-dir -r requirements.txt
3535
36+ # Preload the sentence transformer model to cache
37+ RUN python -c "from sentence_transformers import SentenceTransformer; SentenceTransformer('all-MiniLM-L6-v2')"
38+
3639# Copy the application source code into the container
3740COPY . /app
3841
Original file line number Diff line number Diff line change @@ -193,7 +193,7 @@ def handle_webhook():
193193
194194 # Fetch the conversation and generate an LLM answer for the user
195195 logger .info (f"Detected a user reply in conversation { conversation_id } ; fetching an answer from LLM..." )
196- answer_intercom_conversation (app .rag_system , conversation_id )
196+ answer_intercom_conversation (app .rag_system , conversation_id , topic )
197197
198198 else :
199199 logger .info (f"Received webhook for unsupported topic: { topic } ; no action taken." )
You can’t perform that action at this time.
0 commit comments