Skip to content

Commit 783667f

Browse files
authored
Merge pull request #68 from DefangLabs/linda-uwsgi-with-more
2 parents 15c0c65 + 0f834b5 commit 783667f

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

.github/workflows/deploy.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,10 @@ jobs:
4949
working-directory: ./app
5050
run: python3 get_knowledge_base.py
5151

52+
- name: Run tests for Intercom integration
53+
working-directory: ./app
54+
run: python3 test_intercom.py
55+
5256
- name: Deploy
5357
uses: DefangLabs/[email protected]
5458
with:

app/Dockerfile

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,6 @@ COPY . /app
3939
# Expose port 5050 for the Flask application
4040
EXPOSE 5050
4141

42-
# Run test file
43-
RUN python test_intercom.py
44-
4542
# Define environment variable for Flask
4643
ENV FLASK_APP=app.py
4744

app/rag_system.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ def answer_query_stream(self, query):
142142
)
143143

144144
collected_messages = []
145-
for chunk in stream:
145+
for chunk in stream:
146146
content = chunk['choices'][0]['delta'].get('content', '')
147147
collected_messages.append(content)
148148
yield content

compose.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,11 @@ services:
2222
SESSION_COOKIE_SECURE: 1
2323
OPENAI_API_KEY: ${OPENAI_API_KEY} # Set your OpenAI API key here or in the .env file
2424
OPENAI_BASE_URL: "http://llm/api/v1"
25-
MODEL: "anthropic.claude-3-haiku-20240307-v1:0"
25+
MODEL: "ai/claude3-haiku"
2626
INTERCOM_TOKEN:
2727
INTERCOM_ADMIN_ID:
2828
REDIS_URL: redis://redis:6379/0
29+
SENTENCE_TRANSFORMERS_HOME: /app/sentence-transformers
2930
deploy:
3031
resources:
3132
reservations:

0 commit comments

Comments
 (0)