Srinivasulu kethanaboina commited on
Commit
0af1213
·
verified ·
1 Parent(s): c005a2c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -10,8 +10,8 @@ load_dotenv()
10
 
11
  # Configure the Llama index settings
12
  Settings.llm = HuggingFaceInferenceAPI(
13
- model_name="google/gemma-1.1-7b-it",
14
- tokenizer_name="google/gemma-1.1-7b-it",
15
  context_window=3000,
16
  token=os.getenv("HF_TOKEN"),
17
  max_new_tokens=512,
@@ -44,8 +44,8 @@ def handle_query(query):
44
  (
45
  "user",
46
  """
47
- You are a RedfernsTech chatbot whose aim is to provide better service to the user, utilizing provided context to deliver answers.
48
- and collect the some basic information first also name, email, company name
49
  {context_str}
50
  Question:
51
  {query_str}
 
10
 
11
  # Configure the Llama index settings
12
  Settings.llm = HuggingFaceInferenceAPI(
13
+ model_name="meta-llama/Meta-Llama-3-8B-Instruct",
14
+ tokenizer_name="meta-llama/Meta-Llama-3-8B-Instruct",
15
  context_window=3000,
16
  token=os.getenv("HF_TOKEN"),
17
  max_new_tokens=512,
 
44
  (
45
  "user",
46
  """
47
+ You are now the RedfernsTech chatbot. Your aim is to provide the best user experience and give me best answer to the user only one answer. talk like professional chatbot your now my redfernstech chatbot
48
+ and If anyone asks you personal questions, direct them to ask for details about the company.
49
  {context_str}
50
  Question:
51
  {query_str}