pvanand commited on
Commit
e1a2366
·
1 Parent(s): f586bf1

Update actions/actions.py

Browse files
Files changed (1) hide show
  1. actions/actions.py +1 -2
actions/actions.py CHANGED
@@ -38,7 +38,7 @@ def generate_openai_response(conversation_data, model_engine="gpt-3.5-turbo", ma
38
  # Run the main function from search_content.py and store the results in a variable
39
 
40
  #results = main_search(query)
41
- results = main_search(conversation_data["current_user_query"]+conversation_data["previous_user_query"])
42
 
43
  # Create context from the results
44
  context = "".join([f"#{str(i)}" for i in results])[:2014] # Trim the context to 2014 characters - Modify as necessory
@@ -265,7 +265,6 @@ class ExtractConversationhistory(Action):
265
  pass
266
  else:
267
  pass
268
-
269
  conversation_data = {
270
  "previous_user_query": previous_user_query,
271
  "previous_bot_response": previous_bot_response,
 
38
  # Run the main function from search_content.py and store the results in a variable
39
 
40
  #results = main_search(query)
41
+ results = main_search(conversation_data["current_user_query"])
42
 
43
  # Create context from the results
44
  context = "".join([f"#{str(i)}" for i in results])[:2014] # Trim the context to 2014 characters - Modify as necessory
 
265
  pass
266
  else:
267
  pass
 
268
  conversation_data = {
269
  "previous_user_query": previous_user_query,
270
  "previous_bot_response": previous_bot_response,