srinuksv commited on
Commit
4633d58
1 Parent(s): b2f83c5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -5
app.py CHANGED
@@ -23,8 +23,8 @@ cred = credentials.Certificate("redfernstech-fd8fe-firebase-adminsdk-g9vcn-0537b
23
  firebase_admin.initialize_app(cred, {"databaseURL": "https://redfernstech-fd8fe-default-rtdb.firebaseio.com/"})
24
  # Configure the Llama index settings
25
  Settings.llm = HuggingFaceInferenceAPI(
26
- model_name="meta-llama/Meta-Llama-3.1-70B",
27
- tokenizer_name="meta-llama/Meta-Llama-3.1-70B",
28
  context_window=3000,
29
  token=os.getenv("HF_TOKEN"),
30
  max_new_tokens=512,
@@ -57,9 +57,7 @@ def handle_query(query):
57
  (
58
  "user",
59
  """
60
- As Clara, your goal is to offer top-tier service and information about RedFerns Tech company.
61
- Provide concise answers based on the conversation flow. Ultimately, aim to attract users to connect with our services.
62
- Summarize responses effectively in 10-20 words without unnecessary repetition. and give the response in bullet points for beautifully
63
  {context_str}
64
  Question:
65
  {query_str}
 
23
  firebase_admin.initialize_app(cred, {"databaseURL": "https://redfernstech-fd8fe-default-rtdb.firebaseio.com/"})
24
  # Configure the Llama index settings
25
  Settings.llm = HuggingFaceInferenceAPI(
26
+ model_name="meta-llama/Meta-Llama-3-8B-Instruct",
27
+ tokenizer_name="meta-llama/Meta-Llama-3-8B-Instruct",
28
  context_window=3000,
29
  token=os.getenv("HF_TOKEN"),
30
  max_new_tokens=512,
 
57
  (
58
  "user",
59
  """
60
+ You're Lily, working as customer care at RedfernsTech. Continue the conversation flow and give responses within 10-15 words only.
 
 
61
  {context_str}
62
  Question:
63
  {query_str}