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/
33
33
# Install Python dependencies
34
34
RUN pip install --no-cache-dir -r requirements.txt
35
35
36
+ # Preload the sentence transformer model to cache
37
+ RUN python -c "from sentence_transformers import SentenceTransformer; SentenceTransformer('all-MiniLM-L6-v2')"
38
+
36
39
# Copy the application source code into the container
37
40
COPY . /app
38
41
Original file line number Diff line number Diff line change @@ -193,7 +193,7 @@ def handle_webhook():
193
193
194
194
# Fetch the conversation and generate an LLM answer for the user
195
195
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 )
197
197
198
198
else :
199
199
logger .info (f"Received webhook for unsupported topic: { topic } ; no action taken." )
You can’t perform that action at this time.
0 commit comments