pvanand commited on
Commit
84c51e1
·
1 Parent(s): f27b719

Update actions/actions.py

Browse files
Files changed (1) hide show
  1. actions/actions.py +2 -5
actions/actions.py CHANGED
@@ -39,15 +39,12 @@ def generate_openai_response(user_queries, model_engine="gpt-3.5-turbo", max_tok
39
 
40
  # Run the main function from search_content.py and store the results in a variable
41
  #results = main_search(query)
42
- results = main_search(user_queries[-1])
43
 
44
  # Create context from the results
45
- context = "".join([f"#{str(i)}" for i in results])[:2014] # Trim the context to 2014 characters - Modify as necessory
46
 
47
  #prompt_template = f"Relevant context: {context}\n\n Answer the question in detail: {query}"
48
- #previous_user_query = conversation_data["previous_user_query"]
49
- #previous_bot_response = conversation_data["previous_bot_response"]
50
- #current_user_query = conversation_data["current_user_query"]
51
 
52
  # Create the prompt template
53
  #prompt_template = f"Using Relevant context:{context}\n\n and Previous User Query: {previous_user_query}\n\n Answer the next question in detail:{current_user_query}"
 
39
 
40
  # Run the main function from search_content.py and store the results in a variable
41
  #results = main_search(query)
42
+ #results = main_search(user_queries[-1])
43
 
44
  # Create context from the results
45
+ #context = "".join([f"#{str(i)}" for i in results])[:2014] # Trim the context to 2014 characters - Modify as necessory
46
 
47
  #prompt_template = f"Relevant context: {context}\n\n Answer the question in detail: {query}"
 
 
 
48
 
49
  # Create the prompt template
50
  #prompt_template = f"Using Relevant context:{context}\n\n and Previous User Query: {previous_user_query}\n\n Answer the next question in detail:{current_user_query}"