sabatale commited on
Commit
4951701
·
verified ·
1 Parent(s): 3870be3

Update utils/haystack.py

Browse files
Files changed (1) hide show
  1. utils/haystack.py +2 -1
utils/haystack.py CHANGED
@@ -10,7 +10,6 @@ from haystack import Document
10
 
11
  def start_haystack(openai_key):
12
  document_store = PineconeDocumentStore(dimension=1024, index="zen", environment = "gcp-starter")
13
- question = "It doesn't work on Android. The app is not blocking call!!!"
14
 
15
  template = """
16
  You are a support agent replying to customers' messages. Use the context to answer the customer, starting by greeting them and ending with goodbyes.
@@ -48,6 +47,8 @@ def start_haystack(openai_key):
48
  @st.cache_data(show_spinner=True)
49
  def query(username, _pipeline):
50
  try:
 
 
51
  replies = _pipeline.run({
52
  "text_embedder": {
53
  "text": question
 
10
 
11
  def start_haystack(openai_key):
12
  document_store = PineconeDocumentStore(dimension=1024, index="zen", environment = "gcp-starter")
 
13
 
14
  template = """
15
  You are a support agent replying to customers' messages. Use the context to answer the customer, starting by greeting them and ending with goodbyes.
 
47
  @st.cache_data(show_spinner=True)
48
  def query(username, _pipeline):
49
  try:
50
+ question = "It doesn't work on Android. The app is not blocking call!!!"
51
+
52
  replies = _pipeline.run({
53
  "text_embedder": {
54
  "text": question