Skip to content

Commit b530e86

Browse files
authored
Merge branch 'main' into linda-logo-styling
2 parents 8c349f5 + d4c7d78 commit b530e86

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

app/rag_system.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import openai
22
import json
33
import os
4+
from datetime import date
45
from sentence_transformers import SentenceTransformer
56
import numpy as np
67
from sklearn.metrics.pairwise import cosine_similarity
@@ -70,6 +71,7 @@ def answer_query_stream(self, query):
7071
"When the user says 'you', 'your', or any pronoun, interpret it as referring to Defang with context of Defang. "
7172
"If the user's question involves comparisons with or references to other services, you may use external knowledge. "
7273
"However, if the question is strictly about Defang, you must ignore all external knowledge and only utilize the given context. "
74+
"Today's date is " + date.today().strftime('%B %d, %Y') + ". "
7375
"Context: " + context
7476
)
7577
}

app/requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Flask==2.0.1
2-
Werkzeug==2.2.2
2+
Werkzeug==2.0.3
33
scikit-learn==0.24.2
4-
numpy==1.21.0
4+
numpy==1.22.0
55
sentence-transformers==2.1.0
66
torch==1.10.0
77
huggingface_hub==0.8.1

0 commit comments

Comments
 (0)