Skip to content

Commit

Permalink
Merge pull request #21 from DefangLabs/linda-coffee-chat-dates
Browse files Browse the repository at this point in the history
fix dates for coffee chat
  • Loading branch information
lionello authored Nov 28, 2024
2 parents ff8896f + 5770253 commit d4c7d78
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/rag_system.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import openai
import json
import os
from datetime import date
from sentence_transformers import SentenceTransformer
import numpy as np
from sklearn.metrics.pairwise import cosine_similarity
Expand Down Expand Up @@ -70,6 +71,7 @@ def answer_query_stream(self, query):
"When the user says 'you', 'your', or any pronoun, interpret it as referring to Defang with context of Defang. "
"If the user's question involves comparisons with or references to other services, you may use external knowledge. "
"However, if the question is strictly about Defang, you must ignore all external knowledge and only utilize the given context. "
"Today's date is " + date.today().strftime('%B %d, %Y') + ". "
"Context: " + context
)
}
Expand Down

0 comments on commit d4c7d78

Please sign in to comment.