AhmedEwis commited on
Commit
ae5669c
1 Parent(s): 36923cd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +17 -4
app.py CHANGED
@@ -74,12 +74,25 @@ Warba Bank has different customer segments to meet the diverse financial needs o
74
  6- Bloom
75
  7- Sunbula Kids
76
  Warba Bank is a leading bank in the Islamic Digital Retail Solutions sector. With a variety of products and services, Warba Bank is committed to providing its customers with the best banking experience. One of the services Warba Bank provides is its cashback program. In this document, we will explain the details of the cashback program offered by Warba Bank.
77
- Details of Cashback Program in WARBA Bank:
 
 
78
  Warba Bank offers a cashback program for Mastercard World and World Elite credit card users. AlSafwa, AlSafwa Plus, W & Almassy customers get a cashback rate of 3% on local and international transactions. If the local spending + international spends are more than KD 3000, the cashback will be 3% for local and 6% for international transactions. On the other hand, for Normal segment customers, the cashback rate is 1% irrespective of the amount of the transactions.
 
 
 
 
 
 
 
79
  Maximum Cashback:
80
  The maximum cashback amount varies based on the customer segment. The maximum amount for ALMASSY, ALSAFWA PLUS and ALSAFWA is equivalent and set at KD 500., while the maximum amount for W is KD 300. The maximum amount for Normal is KD 150.
81
- Calculation of Cashback:
82
- The cashback calculation depends on the customer segment and the amount of the transactions. For Al Safwa / Al Safwa Plus / Al Massy and W customers, if the spent transactions are less than KD 3000, the cashback rate is 3%. If the transactions are higher than KD 3000, the cashback rate is 6% for international transactions only. For Normal segment customers, the cashback rate is 1% irrespective of the amount of the transactions.
 
 
 
 
83
  Exceeding the Maximum Cashback:
84
  If any of the customer segments Al Massy, AlSafwa Plus, AlSafwa, or W exceed the maximum cashback amount, Warba Bank will only return the maximum amount. For example, if the Al Massy segment exceeds the maximum amount of KD 500, Warba Bank will only return KD 500. The same applies to the W segment with a maximum amount of KD 300, and the Normal segment with a maximum amount of KD 150.
85
  Warba Bank's cashback program provides its customers with an opportunity to earn cashback on their credit card transactions. With different customer segments and different cashback rates, Warba Bank's cashback program is tailored to meet the needs of all its customers. If you have any questions regarding the cashback program, please visit the Warba Bank website or contact customer support.
@@ -625,7 +638,7 @@ texts = text_splitter.split_text(state_of_the_union)
625
 
626
  embeddings = OpenAIEmbeddings()
627
  vectorstore = FAISS.from_texts(texts, embeddings)
628
- qa = VectorDBQA.from_chain_type(llm=OpenAI(model_name="text-davinci-002", temperature=0, max_tokens=256), chain_type="stuff", vectorstore=vectorstore)
629
  #llm = ChatOpenAI(model_name="gpt-3.5-turbo", temperature=0, max_tokens=256) # Modify model_name if you have access to GPT-4
630
 
631
 
 
74
  6- Bloom
75
  7- Sunbula Kids
76
  Warba Bank is a leading bank in the Islamic Digital Retail Solutions sector. With a variety of products and services, Warba Bank is committed to providing its customers with the best banking experience. One of the services Warba Bank provides is its cashback program. In this document, we will explain the details of the cashback program offered by Warba Bank.
77
+
78
+
79
+ Details and definition of Cashback Program in WARBA Bank:
80
  Warba Bank offers a cashback program for Mastercard World and World Elite credit card users. AlSafwa, AlSafwa Plus, W & Almassy customers get a cashback rate of 3% on local and international transactions. If the local spending + international spends are more than KD 3000, the cashback will be 3% for local and 6% for international transactions. On the other hand, for Normal segment customers, the cashback rate is 1% irrespective of the amount of the transactions.
81
+
82
+ Calculation of Cashback:
83
+ total spent transactions means the amount of moeny spends on local and international transactions
84
+ The cashback calculation depends on the customer segment and the total amount of the transactions. For Al Safwa / Al Safwa Plus / Al Massy and W customers, if the total spent transactions are less than KD 3000, the cashback rate is 3%. If the total spent transactions are higher than KD 3000, the cashback rate is 6% for international transactions only. For Normal segment customers, the cashback rate is 1% irrespective of the amount of the total spent transactions.
85
+
86
+
87
+
88
  Maximum Cashback:
89
  The maximum cashback amount varies based on the customer segment. The maximum amount for ALMASSY, ALSAFWA PLUS and ALSAFWA is equivalent and set at KD 500., while the maximum amount for W is KD 300. The maximum amount for Normal is KD 150.
90
+
91
+
92
+
93
+
94
+
95
+
96
  Exceeding the Maximum Cashback:
97
  If any of the customer segments Al Massy, AlSafwa Plus, AlSafwa, or W exceed the maximum cashback amount, Warba Bank will only return the maximum amount. For example, if the Al Massy segment exceeds the maximum amount of KD 500, Warba Bank will only return KD 500. The same applies to the W segment with a maximum amount of KD 300, and the Normal segment with a maximum amount of KD 150.
98
  Warba Bank's cashback program provides its customers with an opportunity to earn cashback on their credit card transactions. With different customer segments and different cashback rates, Warba Bank's cashback program is tailored to meet the needs of all its customers. If you have any questions regarding the cashback program, please visit the Warba Bank website or contact customer support.
 
638
 
639
  embeddings = OpenAIEmbeddings()
640
  vectorstore = FAISS.from_texts(texts, embeddings)
641
+ qa = VectorDBQA.from_chain_type(llm=OpenAI(model_name="text-davinci-003", temperature=0, max_tokens=256), chain_type="stuff", vectorstore=vectorstore)
642
  #llm = ChatOpenAI(model_name="gpt-3.5-turbo", temperature=0, max_tokens=256) # Modify model_name if you have access to GPT-4
643
 
644