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
3 changes: 3 additions & 0 deletions app/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ COPY requirements.txt /app/
# Install Python dependencies
RUN pip install --no-cache-dir -r requirements.txt

# Preload the sentence transformer model to cache
RUN python -c "from sentence_transformers import SentenceTransformer; SentenceTransformer('all-MiniLM-L6-v2')"

# Copy the application source code into the container
COPY . /app

Expand Down
2 changes: 1 addition & 1 deletion app/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ def handle_webhook():

# Fetch the conversation and generate an LLM answer for the user
logger.info(f"Detected a user reply in conversation {conversation_id}; fetching an answer from LLM...")
answer_intercom_conversation(app.rag_system, conversation_id)
answer_intercom_conversation(app.rag_system, conversation_id, topic)

else:
logger.info(f"Received webhook for unsupported topic: {topic}; no action taken.")
Expand Down