kundan621 commited on
Commit
b4dbfa4
·
1 Parent(s): b281703
requirements.txt CHANGED
@@ -1,3 +1,37 @@
1
- altair
2
- pandas
3
- streamlit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # For loading environment variables from .env
2
+ python-dotenv
3
+ # Core ML libraries for MPS/Apple Silicon compatibility
4
+ torch>=2.1.0
5
+ transformers>=4.36.0
6
+ datasets>=2.15.0
7
+ tokenizers>=0.15.0
8
+
9
+ # PEFT and training
10
+ peft>=0.7.0
11
+ accelerate>=0.25.0
12
+
13
+ # RAG and Search dependencies
14
+ sentence-transformers>=2.2.0
15
+ faiss-cpu>=1.7.4
16
+ rank-bm25>=0.2.2
17
+ nltk>=3.8.0
18
+
19
+ # Data handling
20
+ pandas>=1.5.0
21
+ numpy>=1.24.0
22
+
23
+ # Quantization (optional - only for CUDA, not needed for MPS)
24
+ bitsandbytes>=0.42.0 # Skip on MPS/Apple Silicon
25
+
26
+ # Jupyter and development
27
+ jupyter>=1.0.0
28
+ ipywidgets>=8.0.0
29
+
30
+ # Utilities
31
+ tqdm>=4.64.0
32
+ scikit-learn>=1.3.0
33
+
34
+ openai>=1.0.0
35
+ streamlit
36
+ torch==2.8.0
37
+ huggingface_hub
src/Fine_Tuning_TinyLlama.ipynb ADDED
The diff for this file is too large to render. See raw diff
 
src/data/index_merged DELETED
File without changes
src/data/index_merged/bm25_merged.pkl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d7d1d90134a1da252aa5d9d778f9d41ed03bc876cb040ad8902c552435b21b23
3
+ size 54697
src/data/index_merged/chunks_100.json ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ "Property, plant and equipment values: {\"2023\": \"25380\", \"2024\": \"25895\"} Intangible assets and goodwill values: {\"2023\": \"628974\", \"2024\": \"613386\"} Trade and other receivables values: {\"2023\": \"6179\", \"2024\": \"7696\"} Investment in equity-accounted investees values: {\"2023\": \"2070\", \"2024\": \"2022\"} Other investments values: {\"2023\": \"1268\", \"2024\": \"1361\"} Term deposits values: {\"2023\": \"5618\", \"2024\": \"966\"} Non-current tax assets values: {\"2023\": \"18373\", \"2024\": \"22071\"} Deferred tax assets, net values: {\"2024\": \"129317\"} Other non-current assets values: {\"2023\": \"53\", \"2024\": \"85\"} Total non-current assets values: {\"2023\": \"687915\", \"2024\": \"802799\"} Inventories values: {\"2023\": \"25\", \"2024\": \"218\"} Contract assets values: {\"2024\": \"253\"}",
3
+ "Current tax assets values: {\"2024\": \"4947\"} Trade and other receivables values: {\"2023\": \"68847\", \"2024\": \"91950\"} Term deposits values: {\"2023\": \"197056\", \"2024\": \"279722\"} Other current assets values: {\"2023\": \"121964\", \"2024\": \"153123\"} Cash and cash equivalents values: {\"2023\": \"284018\", \"2024\": \"327065\"} Total current assets values: {\"2023\": \"671910\", \"2024\": \"857278\"} Total assets values: {\"2023\": \"1359825\", \"2024\": \"1660077\"} Share capital values: {\"2023\": \"53\", \"2024\": \"55\"} Share premium values: {\"2023\": \"2057362\", \"2024\": \"2161217\"} Other components of equity values: {\"2023\": \"40137\", \"2024\": \"(29899)\"} Accumulated deficit values: {\"2023\": \"(1227986)\", \"2024\": \"(1020518)\"} Total equity attributable to owners of the Company values: {\"2023\": \"869566\", \"2024\": \"1110855\"}",
4
+ "Non-controlling interests values: {\"2023\": \"6490\", \"2024\": \"5563\"} Total equity values: {\"2023\": \"876056\", \"2024\": \"1116418\"} Loans and borrowings values: {\"2023\": \"15650\", \"2024\": \"216818\"} Employee benefits values: {\"2023\": \"8886\", \"2024\": \"11662\"} Contract liabilities values: {\"2023\": \"163\", \"2024\": \"408\"} Deferred tax liabilities, net values: {\"2023\": \"822\", \"2024\": \"4754\"} Other non-current liabilities values: {\"2023\": \"4590\", \"2024\": \"12443\"} Total non-current liabilities values: {\"2023\": \"30111\", \"2024\": \"246085\"} Loans and borrowings values: {\"2023\": \"219514\", \"2024\": \"4806\"} Trade and other payables values: {\"2023\": \"89780\", \"2024\": \"118548\"} Contract liabilities values: {\"2023\": \"75206\", \"2024\": \"92958\"} Other current liabilities values: {\"2023\": \"69158\", \"2024\": \"81262\"}",
5
+ "Total current liabilities values: {\"2023\": \"453658\", \"2024\": \"297574\"} Total liabilities values: {\"2023\": \"483769\", \"2024\": \"543659\"} Total equity and liabilities values: {\"2023\": \"1359825\", \"2024\": \"1660077\"} Air ticketing values: {\"2022\": \"88712\", \"2023\": \"147793\", \"2024\": \"201246\"} Hotels and packages values: {\"2022\": \"157267\", \"2023\": \"337686\", \"2024\": \"435542\"} Bus ticketing values: {\"2022\": \"39896\", \"2023\": \"74873\", \"2024\": \"92693\"} Other revenue values: {\"2022\": \"18047\", \"2023\": \"32684\", \"2024\": \"53043\"} Total revenue values: {\"2022\": \"303922\", \"2023\": \"593036\", \"2024\": \"782524\"} Other income values: {\"2022\": \"3490\", \"2023\": \"2798\", \"2024\": \"770\"} Procurement cost of hotels and packages services values: {\"2022\": \"54760\", \"2023\": \"168387\", \"2024\": \"210357\"}",
6
+ "Other cost of providing services values: {\"2022\": \"3990\", \"2023\": \"9180\", \"2024\": \"4732\"} Personnel expenses values: {\"2022\": \"116924\", \"2023\": \"131968\", \"2024\": \"147587\"} Marketing and sales promotion expenses values: {\"2022\": \"51033\", \"2023\": \"101601\", \"2024\": \"123304\"} Other operating expenses values: {\"2022\": \"81575\", \"2023\": \"133698\", \"2024\": \"204833\"} Depreciation, amortization and impairment values: {\"2022\": \"29496\", \"2023\": \"27396\", \"2024\": \"27267\"} Results from operating activities values: {\"2022\": \"(30366)\", \"2023\": \"23604\", \"2024\": \"65214\"} Finance income values: {\"2022\": \"9984\", \"2023\": \"10974\", \"2024\": \"24365\"} Finance costs values: {\"2022\": \"26326\", \"2023\": \"46732\", \"2024\": \"(3307)\"} Net finance income (costs) values: {\"2022\": \"(16342)\", \"2023\": \"(35758)\", \"2024\": \"27672\"}",
7
+ "Share of profit of equity-accounted investees values: {\"2022\": \"34\", \"2023\": \"10\", \"2024\": \"52\"} Profit (loss) before tax values: {\"2022\": \"(46674)\", \"2023\": \"(12144)\", \"2024\": \"92938\"} Income tax benefit values: {\"2022\": \"1107\", \"2023\": \"976\", \"2024\": \"123805\"} Profit (loss) for the year values: {\"2022\": \"(45567)\", \"2023\": \"(11168)\", \"2024\": \"216743\"} Remeasurement of defined benefit liability values: {\"2022\": \"(426)\", \"2023\": \"468\", \"2024\": \"(964)\"} Equity instruments at fair value through other values: {\"2022\": \"33543\"} operations values: {\"2022\": \"(18943)\", \"2023\": \"(48879)\", \"2024\": \"(9862)\"} Other comprehensive income (loss) for the year, net of tax values: {\"2022\": \"14174\", \"2023\": \"(48411)\", \"2024\": \"(10826)\"}",
8
+ "Total comprehensive income (loss) for the year values: {\"2022\": \"(31393)\", \"2023\": \"(59579)\", \"2024\": \"205917\"} Owners of the Company values: {\"2022\": \"(45405)\", \"2023\": \"(11321)\", \"2024\": \"216801\"} Non-controlling interests values: {\"2022\": \"(162)\", \"2023\": \"153\", \"2024\": \"(58)\"} Profit (loss) for the year values: {\"2022\": \"(45567)\", \"2023\": \"(11168)\", \"2024\": \"216743\"} Owners of the Company values: {\"2022\": \"(31216)\", \"2023\": \"(59176)\", \"2024\": \"206059\"} Non-controlling interests values: {\"2022\": \"(177)\", \"2023\": \"(403)\", \"2024\": \"(142)\"} Total comprehensive income (loss) for the year values: {\"2022\": \"(31393)\", \"2023\": \"(59579)\", \"2024\": \"205917\"} Basic values: {\"2022\": \"(0.42)\", \"2023\": \"(0.10)\", \"2024\": \"1.95\"}",
9
+ "Diluted values: {\"2022\": \"(0.42)\", \"2023\": \"(0.10)\", \"2024\": \"1.74\"} Profit (loss) for the year values: {\"2022\": \"(45567)\", \"2023\": \"(11168)\", \"2024\": \"216743\"} Depreciation values: {\"2022\": \"6023\", \"2023\": \"6096\", \"2024\": \"7436\"} Amortization values: {\"2022\": \"23335\", \"2023\": \"21150\", \"2024\": \"19809\"} Impairment of intangible assets values: {\"2022\": \"138\", \"2023\": \"150\", \"2024\": \"22\"} Impairment provision for non-financial assets values: {\"2024\": \"10047\"} Intangible assets written off values: {\"2022\": \"17\", \"2024\": \"982\"} Gain on discontinuation of equity accounted investments values: {\"2022\": \"(2251)\", \"2023\": \"(2017)\"} Net gain on de-recognition of property, plant and equipment values: {\"2022\": \"(6)\", \"2023\": \"(177)\", \"2024\": \"(132)\"}",
10
+ "Gain on lease modification values: {\"2022\": \"(417)\", \"2023\": \"(100)\", \"2024\": \"(12)\"} Net finance costs (income) values: {\"2022\": \"16342\", \"2023\": \"35758\", \"2024\": \"(27672)\"} Share of profit of equity-accounted investees values: {\"2022\": \"(34)\", \"2023\": \"(10)\", \"2024\": \"(52)\"} Share based payment values: {\"2022\": \"36645\", \"2023\": \"35643\", \"2024\": \"36963\"} Income tax benefit values: {\"2022\": \"(1107)\", \"2023\": \"(976)\", \"2024\": \"(123805)\"} Property, plant and equipment values: {\"2024\": \"25895\", \"2025\": \"26457\"} Intangible assets and goodwill values: {\"2024\": \"613386\", \"2025\": \"597791\"} Trade and other receivables values: {\"2024\": \"7696\", \"2025\": \"8879\"} Investment in equity-accounted investees values: {\"2024\": \"2022\", \"2025\": \"1914\"} Other investments values: {\"2024\": \"1361\", \"2025\": \"972\"}",
11
+ "Term deposits values: {\"2024\": \"966\", \"2025\": \"2130\"} Non-current tax assets, net values: {\"2024\": \"22071\", \"2025\": \"18044\"} Deferred tax assets, net values: {\"2024\": \"129317\", \"2025\": \"106431\"} Other non-current assets values: {\"2024\": \"85\", \"2025\": \"402\"} Total non-current assets values: {\"2024\": \"802799\", \"2025\": \"763020\"} Inventories values: {\"2024\": \"218\", \"2025\": \"363\"} Contract assets values: {\"2024\": \"253\", \"2025\": \"507\"} Current tax assets, net values: {\"2024\": \"4947\", \"2025\": \"9140\"} Trade and other receivables values: {\"2024\": \"91950\", \"2025\": \"141143\"} Term deposits values: {\"2024\": \"279722\", \"2025\": \"252286\"} Other current assets values: {\"2024\": \"153123\", \"2025\": \"152931\"} Cash and cash equivalents values: {\"2024\": \"327065\", \"2025\": \"508898\"}",
12
+ "Total current assets values: {\"2024\": \"857278\", \"2025\": \"1065268\"} Total assets values: {\"2024\": \"1660077\", \"2025\": \"1828288\"} Share capital values: {\"2024\": \"55\", \"2025\": \"56\"} Share premium values: {\"2024\": \"2161217\", \"2025\": \"2203445\"} Other components of equity values: {\"2024\": \"(29899)\", \"2025\": \"(71003\"} Accumulated deficit values: {\"2024\": \"(1020518)\", \"2025\": \"(929868\"} Total equity attributable to owners of the Company values: {\"2024\": \"1110855\", \"2025\": \"1202630\"} Non-controlling interests values: {\"2024\": \"5563\", \"2025\": \"5347\"} Total equity values: {\"2024\": \"1116418\", \"2025\": \"1207977\"} Loans and borrowings values: {\"2024\": \"216818\", \"2025\": \"13895\"} Employee benefits values: {\"2024\": \"11662\", \"2025\": \"14705\"} Contract liabilities values: {\"2024\": \"408\", \"2025\": \"175\"}",
13
+ "Deferred tax liabilities, net values: {\"2024\": \"4754\", \"2025\": \"2526\"} Other non-current liabilities values: {\"2024\": \"12443\", \"2025\": \"12396\"} Total non-current liabilities values: {\"2024\": \"246085\", \"2025\": \"43697\"} Bank overdraft values: {\"2025\": \"536\"} Loans and borrowings values: {\"2024\": \"4806\", \"2025\": \"222142\"} Trade and other payables values: {\"2024\": \"118548\", \"2025\": \"146999\"} Contract liabilities values: {\"2024\": \"92958\", \"2025\": \"120098\"} Other current liabilities values: {\"2024\": \"81262\", \"2025\": \"86839\"} Total current liabilities values: {\"2024\": \"297574\", \"2025\": \"576614\"} Total liabilities values: {\"2024\": \"543659\", \"2025\": \"620311\"} Total equity and liabilities values: {\"2024\": \"1660077\", \"2025\": \"1828288\"} Air ticketing values: {\"2023\": \"147793\", \"2024\": \"201246\", \"2025\": \"241529\"}",
14
+ "Hotels and packages values: {\"2023\": \"337686\", \"2024\": \"435542\", \"2025\": \"520411\"} Bus ticketing values: {\"2023\": \"74873\", \"2024\": \"92693\", \"2025\": \"119361\"} Other revenue values: {\"2023\": \"32684\", \"2024\": \"53043\", \"2025\": \"97035\"} Total revenue values: {\"2023\": \"593036\", \"2024\": \"782524\", \"2025\": \"978336\"} Other income values: {\"2023\": \"2798\", \"2024\": \"770\", \"2025\": \"317\"} Procurement cost of hotels and packages services values: {\"2023\": \"168387\", \"2024\": \"210357\", \"2025\": \"246550\"} Other cost of providing services values: {\"2023\": \"9180\", \"2024\": \"4732\", \"2025\": \"27798\"} Personnel expenses values: {\"2023\": \"131968\", \"2024\": \"147587\", \"2025\": \"160065\"} Marketing and sales promotion expenses values: {\"2023\": \"101601\", \"2024\": \"123304\", \"2025\": \"165324\"}",
15
+ "Other operating expenses values: {\"2023\": \"133698\", \"2024\": \"204833\", \"2025\": \"231905\"} Depreciation, amortization and impairment values: {\"2023\": \"27396\", \"2024\": \"27267\", \"2025\": \"27122\"} Results from operating activities values: {\"2023\": \"23604\", \"2024\": \"65214\", \"2025\": \"119889\"} Finance income values: {\"2023\": \"10974\", \"2024\": \"24365\", \"2025\": \"28256\"} Finance costs values: {\"2023\": \"46732\", \"2024\": \"(3307)\", \"2025\": \"32191\"} Net finance income (costs) values: {\"2023\": \"(35758)\", \"2024\": \"27672\", \"2025\": \"(3935)\"} Share of profit (loss) of equity-accounted investees values: {\"2023\": \"10\", \"2024\": \"52\", \"2025\": \"(64)\"} Profit (loss) before tax values: {\"2023\": \"(12144)\", \"2024\": \"92938\", \"2025\": \"115890\"} Income tax benefit (expense) values: {\"2023\": \"976\", \"2024\": \"123805\", \"2025\": \"(20616)\"}",
16
+ "Profit (loss) for the year values: {\"2023\": \"(11168)\", \"2024\": \"216743\", \"2025\": \"95274\"} Remeasurements of defined benefit liability values: {\"2023\": \"468\", \"2024\": \"(964)\", \"2025\": \"(642)\"} Equity instruments at fair value through other values: {\"2025\": \"(452)\"} operations values: {\"2023\": \"(48879)\", \"2024\": \"(9862)\", \"2025\": \"(20898)\"} Other comprehensive loss for the year, net of tax values: {\"2023\": \"(48411)\", \"2024\": \"(10826)\", \"2025\": \"(21992)\"} Total comprehensive income (loss) for the year values: {\"2023\": \"(59579)\", \"2024\": \"205917\", \"2025\": \"73282\"} Owners of the Company values: {\"2023\": \"(11321)\", \"2024\": \"216801\", \"2025\": \"95101\"} Non-controlling interests values: {\"2023\": \"153\", \"2024\": \"(58)\", \"2025\": \"173\"}",
17
+ "Profit (loss) for the year values: {\"2023\": \"(11168)\", \"2024\": \"216743\", \"2025\": \"95274\"} Owners of the Company values: {\"2023\": \"(59176)\", \"2024\": \"206059\", \"2025\": \"73255\"} Non-controlling interests values: {\"2023\": \"(403)\", \"2024\": \"(142)\", \"2025\": \"27\"} Total comprehensive income (loss) for the year values: {\"2023\": \"(59579)\", \"2024\": \"205917\", \"2025\": \"73282\"} Basic values: {\"2023\": \"(0.10)\", \"2024\": \"1.95\", \"2025\": \"0.84\"} Diluted values: {\"2023\": \"(0.10)\", \"2024\": \"1.74\", \"2025\": \"0.83\"} Profit (loss) for the year values: {\"2023\": \"(11168)\", \"2024\": \"216743\", \"2025\": \"95274\"} Depreciation values: {\"2023\": \"6096\", \"2024\": \"7436\", \"2025\": \"9110\"} Amortization values: {\"2023\": \"21150\", \"2024\": \"19809\", \"2025\": \"18012\"}",
18
+ "Impairment of intangible assets values: {\"2023\": \"150\", \"2024\": \"22\"} Impairment provision for non-financial assets values: {\"2024\": \"10047\"} Intangible assets written off values: {\"2024\": \"982\", \"2025\": \"1481\"} Gain on discontinuation of equity accounted investments values: {\"2023\": \"(2017)\"} Net gain on de-recognition of property, plant and equipment values: {\"2023\": \"(177)\", \"2024\": \"(132)\", \"2025\": \"(61)\"} Gain on lease modification values: {\"2023\": \"(100)\", \"2024\": \"(12)\", \"2025\": \"(20)\"} Net finance costs (income) values: {\"2023\": \"35758\", \"2024\": \"(27672)\", \"2025\": \"3935\"} Share of (profit) loss of equity-accounted investees values: {\"2023\": \"(10)\", \"2024\": \"(52)\", \"2025\": \"64\"}",
19
+ "Share based payment values: {\"2023\": \"35643\", \"2024\": \"36963\", \"2025\": \"36018\"} Income tax (benefit) expense values: {\"2023\": \"(976)\", \"2024\": \"(123805)\", \"2025\": \"20616\"} Operating cash flows before changes in following assets and liabilities values: {\"2023\": \"84349\", \"2024\": \"140329\", \"2025\": \"184429\"} Inventories values: {\"2023\": \"(6)\", \"2024\": \"(195)\", \"2025\": \"(145)\"} Trade and other receivables and contract assets values: {\"2023\": \"(37675)\", \"2024\": \"(25112)\", \"2025\": \"(52424)\"} Other assets values: {\"2023\": \"(51035)\", \"2024\": \"(42455)\", \"2025\": \"427\"} Trade and other payables and contract liabilities values: {\"2023\": \"42675\", \"2024\": \"42524\", \"2025\": \"51183\"} Employee benefits values: {\"2023\": \"879\", \"2024\": \"1705\", \"2025\": \"2272\"}",
20
+ "Other liabilities values: {\"2023\": \"(2767)\", \"2024\": \"18608\", \"2025\": \"5092\"} Cash generated from operating activities values: {\"2023\": \"36420\", \"2024\": \"135404\", \"2025\": \"190834\"} Income tax paid, net values: {\"2023\": \"(4207)\", \"2024\": \"(9664)\", \"2025\": \"(5548)\"} Net cash generated from operating activities values: {\"2023\": \"32213\", \"2024\": \"125740\", \"2025\": \"185286\"} Interest received values: {\"2023\": \"8184\", \"2024\": \"21935\", \"2025\": \"24747\"} Acquisition of property, plant and equipment (refer note (a) below) values: {\"2023\": \"(7489)\", \"2024\": \"(5904)\", \"2025\": \"(4473)\"} Acquisition of intangible assets values: {\"2023\": \"(9412)\", \"2024\": \"(6920)\", \"2025\": \"(7289)\"} Proceeds from sale of property, plant and equipment values: {\"2023\": \"410\", \"2024\": \"389\", \"2025\": \"437\"}",
21
+ "Redemption of term deposits values: {\"2023\": \"308308\", \"2024\": \"345903\", \"2025\": \"403195\"} Investment in term deposits values: {\"2023\": \"(251681)\", \"2024\": \"(423612)\", \"2025\": \"(379211)\"} 7 (e)) (refer note (b) below) values: {\"2023\": \"(1457)\", \"2024\": \"(6476)\", \"2025\": \"(10394)\"} Loan given to equity-accounted investee received back (refer note 37) values: {\"2024\": \"24\", \"2025\": \"24\"} Acquisition of other securities measured at FVTPL values: {\"2023\": \"(87)\", \"2024\": \"(11)\", \"2025\": \"(73)\"} Income tax paid on term deposits values: {\"2023\": \"(148)\", \"2024\": \"(918)\", \"2025\": \"(519)\"} Net cash generated from (used in) investing activities values: {\"2023\": \"46628\", \"2024\": \"(75590)\", \"2025\": \"26444\"}",
22
+ "Repurchase of treasury shares (refer note 26) values: {\"2025\": \"(21722)\"} Acquisition of non-controlling interest (refer note 7(a)) values: {\"2023\": \"(5035)\", \"2024\": \"(7427)\"} Settlement of share based arrangement (refer note 33 (d) (i)) values: {\"2025\": \"(122)\"} Proceeds from issuance of shares on exercise of share based awards values: {\"2023\": \"2200\", \"2024\": \"5995\", \"2025\": \"7009\"} Proceeds from bank loans (refer note 28) values: {\"2023\": \"2168\", \"2024\": \"2114\"} Repayment of bank loans (refer note 28) values: {\"2023\": \"(749)\", \"2024\": \"(1009)\", \"2025\": \"(1455)\"} Payment of principal portion of lease liabilities (refer note 28) values: {\"2023\": \"(2415)\", \"2024\": \"(3105)\", \"2025\": \"(3763)\"}",
23
+ "Interest paid, including finance and other charges (refer note 16 and 28) values: {\"2023\": \"(2376)\", \"2024\": \"(2804)\", \"2025\": \"(2838)\"} Net cash used in financing activities values: {\"2023\": \"(6207)\", \"2024\": \"(6236)\", \"2025\": \"(22891)\"} Net increase in cash and cash equivalents values: {\"2023\": \"72634\", \"2024\": \"43914\", \"2025\": \"188839\"} Cash and cash equivalents at beginning of the year values: {\"2023\": \"213283\", \"2024\": \"284018\", \"2025\": \"327065\"} Effect of exchange rate fluctuations on cash held values: {\"2023\": \"(1899)\", \"2024\": \"(867)\", \"2025\": \"(7542)\"} Cash and cash equivalents at end of the year (refer note 22) values: {\"2023\": \"284018\", \"2024\": \"327065\", \"2025\": \"508362\"}"
24
+ ]
src/data/index_merged/chunks_400.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ [
2
+ "Property, plant and equipment values: {\"2023\": \"25380\", \"2024\": \"25895\"} Intangible assets and goodwill values: {\"2023\": \"628974\", \"2024\": \"613386\"} Trade and other receivables values: {\"2023\": \"6179\", \"2024\": \"7696\"} Investment in equity-accounted investees values: {\"2023\": \"2070\", \"2024\": \"2022\"} Other investments values: {\"2023\": \"1268\", \"2024\": \"1361\"} Term deposits values: {\"2023\": \"5618\", \"2024\": \"966\"} Non-current tax assets values: {\"2023\": \"18373\", \"2024\": \"22071\"} Deferred tax assets, net values: {\"2024\": \"129317\"} Other non-current assets values: {\"2023\": \"53\", \"2024\": \"85\"} Total non-current assets values: {\"2023\": \"687915\", \"2024\": \"802799\"} Inventories values: {\"2023\": \"25\", \"2024\": \"218\"} Contract assets values: {\"2024\": \"253\"} Current tax assets values: {\"2024\": \"4947\"} Trade and other receivables values: {\"2023\": \"68847\", \"2024\": \"91950\"} Term deposits values: {\"2023\": \"197056\", \"2024\": \"279722\"} Other current assets values: {\"2023\": \"121964\", \"2024\": \"153123\"} Cash and cash equivalents values: {\"2023\": \"284018\", \"2024\": \"327065\"} Total current assets values: {\"2023\": \"671910\", \"2024\": \"857278\"} Total assets values: {\"2023\": \"1359825\", \"2024\": \"1660077\"} Share capital values: {\"2023\": \"53\", \"2024\": \"55\"} Share premium values: {\"2023\": \"2057362\", \"2024\": \"2161217\"} Other components of equity values: {\"2023\": \"40137\", \"2024\": \"(29899)\"} Accumulated deficit values: {\"2023\": \"(1227986)\", \"2024\": \"(1020518)\"} Total equity attributable to owners of the Company values: {\"2023\": \"869566\", \"2024\": \"1110855\"} Non-controlling interests values: {\"2023\": \"6490\", \"2024\": \"5563\"} Total equity values: {\"2023\": \"876056\", \"2024\": \"1116418\"} Loans and borrowings values: {\"2023\": \"15650\", \"2024\": \"216818\"} Employee benefits values: {\"2023\": \"8886\", \"2024\": \"11662\"} Contract liabilities values: {\"2023\": \"163\", \"2024\": \"408\"} Deferred tax liabilities, net values: {\"2023\": \"822\", \"2024\": \"4754\"} Other non-current liabilities values: {\"2023\": \"4590\", \"2024\": \"12443\"} Total non-current liabilities values: {\"2023\": \"30111\", \"2024\": \"246085\"} Loans and borrowings values: {\"2023\": \"219514\", \"2024\": \"4806\"} Trade and other payables values: {\"2023\": \"89780\", \"2024\": \"118548\"} Contract liabilities values: {\"2023\": \"75206\", \"2024\": \"92958\"} Other current liabilities values: {\"2023\": \"69158\", \"2024\": \"81262\"} Total current liabilities values: {\"2023\": \"453658\", \"2024\": \"297574\"} Total liabilities values: {\"2023\": \"483769\", \"2024\": \"543659\"} Total equity and liabilities values: {\"2023\": \"1359825\", \"2024\": \"1660077\"} Air ticketing values: {\"2022\": \"88712\", \"2023\": \"147793\", \"2024\": \"201246\"} Hotels and packages values: {\"2022\": \"157267\", \"2023\": \"337686\", \"2024\": \"435542\"} Bus ticketing values: {\"2022\": \"39896\", \"2023\": \"74873\", \"2024\": \"92693\"} Other revenue values: {\"2022\": \"18047\", \"2023\": \"32684\", \"2024\": \"53043\"} Total revenue values: {\"2022\": \"303922\", \"2023\": \"593036\", \"2024\": \"782524\"} Other income values: {\"2022\": \"3490\", \"2023\": \"2798\", \"2024\": \"770\"} Procurement cost of hotels and packages services values: {\"2022\": \"54760\", \"2023\": \"168387\", \"2024\": \"210357\"} Other cost of providing services values: {\"2022\": \"3990\", \"2023\": \"9180\", \"2024\": \"4732\"}",
3
+ "Personnel expenses values: {\"2022\": \"116924\", \"2023\": \"131968\", \"2024\": \"147587\"} Marketing and sales promotion expenses values: {\"2022\": \"51033\", \"2023\": \"101601\", \"2024\": \"123304\"} Other operating expenses values: {\"2022\": \"81575\", \"2023\": \"133698\", \"2024\": \"204833\"} Depreciation, amortization and impairment values: {\"2022\": \"29496\", \"2023\": \"27396\", \"2024\": \"27267\"} Results from operating activities values: {\"2022\": \"(30366)\", \"2023\": \"23604\", \"2024\": \"65214\"} Finance income values: {\"2022\": \"9984\", \"2023\": \"10974\", \"2024\": \"24365\"} Finance costs values: {\"2022\": \"26326\", \"2023\": \"46732\", \"2024\": \"(3307)\"} Net finance income (costs) values: {\"2022\": \"(16342)\", \"2023\": \"(35758)\", \"2024\": \"27672\"} Share of profit of equity-accounted investees values: {\"2022\": \"34\", \"2023\": \"10\", \"2024\": \"52\"} Profit (loss) before tax values: {\"2022\": \"(46674)\", \"2023\": \"(12144)\", \"2024\": \"92938\"} Income tax benefit values: {\"2022\": \"1107\", \"2023\": \"976\", \"2024\": \"123805\"} Profit (loss) for the year values: {\"2022\": \"(45567)\", \"2023\": \"(11168)\", \"2024\": \"216743\"} Remeasurement of defined benefit liability values: {\"2022\": \"(426)\", \"2023\": \"468\", \"2024\": \"(964)\"} Equity instruments at fair value through other values: {\"2022\": \"33543\"} operations values: {\"2022\": \"(18943)\", \"2023\": \"(48879)\", \"2024\": \"(9862)\"} Other comprehensive income (loss) for the year, net of tax values: {\"2022\": \"14174\", \"2023\": \"(48411)\", \"2024\": \"(10826)\"} Total comprehensive income (loss) for the year values: {\"2022\": \"(31393)\", \"2023\": \"(59579)\", \"2024\": \"205917\"} Owners of the Company values: {\"2022\": \"(45405)\", \"2023\": \"(11321)\", \"2024\": \"216801\"} Non-controlling interests values: {\"2022\": \"(162)\", \"2023\": \"153\", \"2024\": \"(58)\"} Profit (loss) for the year values: {\"2022\": \"(45567)\", \"2023\": \"(11168)\", \"2024\": \"216743\"} Owners of the Company values: {\"2022\": \"(31216)\", \"2023\": \"(59176)\", \"2024\": \"206059\"} Non-controlling interests values: {\"2022\": \"(177)\", \"2023\": \"(403)\", \"2024\": \"(142)\"} Total comprehensive income (loss) for the year values: {\"2022\": \"(31393)\", \"2023\": \"(59579)\", \"2024\": \"205917\"} Basic values: {\"2022\": \"(0.42)\", \"2023\": \"(0.10)\", \"2024\": \"1.95\"} Diluted values: {\"2022\": \"(0.42)\", \"2023\": \"(0.10)\", \"2024\": \"1.74\"} Profit (loss) for the year values: {\"2022\": \"(45567)\", \"2023\": \"(11168)\", \"2024\": \"216743\"} Depreciation values: {\"2022\": \"6023\", \"2023\": \"6096\", \"2024\": \"7436\"} Amortization values: {\"2022\": \"23335\", \"2023\": \"21150\", \"2024\": \"19809\"} Impairment of intangible assets values: {\"2022\": \"138\", \"2023\": \"150\", \"2024\": \"22\"} Impairment provision for non-financial assets values: {\"2024\": \"10047\"} Intangible assets written off values: {\"2022\": \"17\", \"2024\": \"982\"} Gain on discontinuation of equity accounted investments values: {\"2022\": \"(2251)\", \"2023\": \"(2017)\"} Net gain on de-recognition of property, plant and equipment values: {\"2022\": \"(6)\", \"2023\": \"(177)\", \"2024\": \"(132)\"} Gain on lease modification values: {\"2022\": \"(417)\", \"2023\": \"(100)\", \"2024\": \"(12)\"} Net finance costs (income) values: {\"2022\": \"16342\", \"2023\": \"35758\", \"2024\": \"(27672)\"}",
4
+ "Share of profit of equity-accounted investees values: {\"2022\": \"(34)\", \"2023\": \"(10)\", \"2024\": \"(52)\"} Share based payment values: {\"2022\": \"36645\", \"2023\": \"35643\", \"2024\": \"36963\"} Income tax benefit values: {\"2022\": \"(1107)\", \"2023\": \"(976)\", \"2024\": \"(123805)\"} Property, plant and equipment values: {\"2024\": \"25895\", \"2025\": \"26457\"} Intangible assets and goodwill values: {\"2024\": \"613386\", \"2025\": \"597791\"} Trade and other receivables values: {\"2024\": \"7696\", \"2025\": \"8879\"} Investment in equity-accounted investees values: {\"2024\": \"2022\", \"2025\": \"1914\"} Other investments values: {\"2024\": \"1361\", \"2025\": \"972\"} Term deposits values: {\"2024\": \"966\", \"2025\": \"2130\"} Non-current tax assets, net values: {\"2024\": \"22071\", \"2025\": \"18044\"} Deferred tax assets, net values: {\"2024\": \"129317\", \"2025\": \"106431\"} Other non-current assets values: {\"2024\": \"85\", \"2025\": \"402\"} Total non-current assets values: {\"2024\": \"802799\", \"2025\": \"763020\"} Inventories values: {\"2024\": \"218\", \"2025\": \"363\"} Contract assets values: {\"2024\": \"253\", \"2025\": \"507\"} Current tax assets, net values: {\"2024\": \"4947\", \"2025\": \"9140\"} Trade and other receivables values: {\"2024\": \"91950\", \"2025\": \"141143\"} Term deposits values: {\"2024\": \"279722\", \"2025\": \"252286\"} Other current assets values: {\"2024\": \"153123\", \"2025\": \"152931\"} Cash and cash equivalents values: {\"2024\": \"327065\", \"2025\": \"508898\"} Total current assets values: {\"2024\": \"857278\", \"2025\": \"1065268\"} Total assets values: {\"2024\": \"1660077\", \"2025\": \"1828288\"} Share capital values: {\"2024\": \"55\", \"2025\": \"56\"} Share premium values: {\"2024\": \"2161217\", \"2025\": \"2203445\"} Other components of equity values: {\"2024\": \"(29899)\", \"2025\": \"(71003\"} Accumulated deficit values: {\"2024\": \"(1020518)\", \"2025\": \"(929868\"} Total equity attributable to owners of the Company values: {\"2024\": \"1110855\", \"2025\": \"1202630\"} Non-controlling interests values: {\"2024\": \"5563\", \"2025\": \"5347\"} Total equity values: {\"2024\": \"1116418\", \"2025\": \"1207977\"} Loans and borrowings values: {\"2024\": \"216818\", \"2025\": \"13895\"} Employee benefits values: {\"2024\": \"11662\", \"2025\": \"14705\"} Contract liabilities values: {\"2024\": \"408\", \"2025\": \"175\"} Deferred tax liabilities, net values: {\"2024\": \"4754\", \"2025\": \"2526\"} Other non-current liabilities values: {\"2024\": \"12443\", \"2025\": \"12396\"} Total non-current liabilities values: {\"2024\": \"246085\", \"2025\": \"43697\"} Bank overdraft values: {\"2025\": \"536\"} Loans and borrowings values: {\"2024\": \"4806\", \"2025\": \"222142\"} Trade and other payables values: {\"2024\": \"118548\", \"2025\": \"146999\"} Contract liabilities values: {\"2024\": \"92958\", \"2025\": \"120098\"} Other current liabilities values: {\"2024\": \"81262\", \"2025\": \"86839\"} Total current liabilities values: {\"2024\": \"297574\", \"2025\": \"576614\"} Total liabilities values: {\"2024\": \"543659\", \"2025\": \"620311\"} Total equity and liabilities values: {\"2024\": \"1660077\", \"2025\": \"1828288\"} Air ticketing values: {\"2023\": \"147793\", \"2024\": \"201246\", \"2025\": \"241529\"} Hotels and packages values: {\"2023\": \"337686\", \"2024\": \"435542\", \"2025\": \"520411\"} Bus ticketing values: {\"2023\": \"74873\", \"2024\": \"92693\", \"2025\": \"119361\"} Other revenue values: {\"2023\": \"32684\", \"2024\": \"53043\", \"2025\": \"97035\"}",
5
+ "Total revenue values: {\"2023\": \"593036\", \"2024\": \"782524\", \"2025\": \"978336\"} Other income values: {\"2023\": \"2798\", \"2024\": \"770\", \"2025\": \"317\"} Procurement cost of hotels and packages services values: {\"2023\": \"168387\", \"2024\": \"210357\", \"2025\": \"246550\"} Other cost of providing services values: {\"2023\": \"9180\", \"2024\": \"4732\", \"2025\": \"27798\"} Personnel expenses values: {\"2023\": \"131968\", \"2024\": \"147587\", \"2025\": \"160065\"} Marketing and sales promotion expenses values: {\"2023\": \"101601\", \"2024\": \"123304\", \"2025\": \"165324\"} Other operating expenses values: {\"2023\": \"133698\", \"2024\": \"204833\", \"2025\": \"231905\"} Depreciation, amortization and impairment values: {\"2023\": \"27396\", \"2024\": \"27267\", \"2025\": \"27122\"} Results from operating activities values: {\"2023\": \"23604\", \"2024\": \"65214\", \"2025\": \"119889\"} Finance income values: {\"2023\": \"10974\", \"2024\": \"24365\", \"2025\": \"28256\"} Finance costs values: {\"2023\": \"46732\", \"2024\": \"(3307)\", \"2025\": \"32191\"} Net finance income (costs) values: {\"2023\": \"(35758)\", \"2024\": \"27672\", \"2025\": \"(3935)\"} Share of profit (loss) of equity-accounted investees values: {\"2023\": \"10\", \"2024\": \"52\", \"2025\": \"(64)\"} Profit (loss) before tax values: {\"2023\": \"(12144)\", \"2024\": \"92938\", \"2025\": \"115890\"} Income tax benefit (expense) values: {\"2023\": \"976\", \"2024\": \"123805\", \"2025\": \"(20616)\"} Profit (loss) for the year values: {\"2023\": \"(11168)\", \"2024\": \"216743\", \"2025\": \"95274\"} Remeasurements of defined benefit liability values: {\"2023\": \"468\", \"2024\": \"(964)\", \"2025\": \"(642)\"} Equity instruments at fair value through other values: {\"2025\": \"(452)\"} operations values: {\"2023\": \"(48879)\", \"2024\": \"(9862)\", \"2025\": \"(20898)\"} Other comprehensive loss for the year, net of tax values: {\"2023\": \"(48411)\", \"2024\": \"(10826)\", \"2025\": \"(21992)\"} Total comprehensive income (loss) for the year values: {\"2023\": \"(59579)\", \"2024\": \"205917\", \"2025\": \"73282\"} Owners of the Company values: {\"2023\": \"(11321)\", \"2024\": \"216801\", \"2025\": \"95101\"} Non-controlling interests values: {\"2023\": \"153\", \"2024\": \"(58)\", \"2025\": \"173\"} Profit (loss) for the year values: {\"2023\": \"(11168)\", \"2024\": \"216743\", \"2025\": \"95274\"} Owners of the Company values: {\"2023\": \"(59176)\", \"2024\": \"206059\", \"2025\": \"73255\"} Non-controlling interests values: {\"2023\": \"(403)\", \"2024\": \"(142)\", \"2025\": \"27\"} Total comprehensive income (loss) for the year values: {\"2023\": \"(59579)\", \"2024\": \"205917\", \"2025\": \"73282\"} Basic values: {\"2023\": \"(0.10)\", \"2024\": \"1.95\", \"2025\": \"0.84\"} Diluted values: {\"2023\": \"(0.10)\", \"2024\": \"1.74\", \"2025\": \"0.83\"} Profit (loss) for the year values: {\"2023\": \"(11168)\", \"2024\": \"216743\", \"2025\": \"95274\"} Depreciation values: {\"2023\": \"6096\", \"2024\": \"7436\", \"2025\": \"9110\"} Amortization values: {\"2023\": \"21150\", \"2024\": \"19809\", \"2025\": \"18012\"} Impairment of intangible assets values: {\"2023\": \"150\", \"2024\": \"22\"} Impairment provision for non-financial assets values: {\"2024\": \"10047\"} Intangible assets written off values: {\"2024\": \"982\", \"2025\": \"1481\"} Gain on discontinuation of equity accounted investments values: {\"2023\": \"(2017)\"}",
6
+ "Net gain on de-recognition of property, plant and equipment values: {\"2023\": \"(177)\", \"2024\": \"(132)\", \"2025\": \"(61)\"} Gain on lease modification values: {\"2023\": \"(100)\", \"2024\": \"(12)\", \"2025\": \"(20)\"} Net finance costs (income) values: {\"2023\": \"35758\", \"2024\": \"(27672)\", \"2025\": \"3935\"} Share of (profit) loss of equity-accounted investees values: {\"2023\": \"(10)\", \"2024\": \"(52)\", \"2025\": \"64\"} Share based payment values: {\"2023\": \"35643\", \"2024\": \"36963\", \"2025\": \"36018\"} Income tax (benefit) expense values: {\"2023\": \"(976)\", \"2024\": \"(123805)\", \"2025\": \"20616\"} Operating cash flows before changes in following assets and liabilities values: {\"2023\": \"84349\", \"2024\": \"140329\", \"2025\": \"184429\"} Inventories values: {\"2023\": \"(6)\", \"2024\": \"(195)\", \"2025\": \"(145)\"} Trade and other receivables and contract assets values: {\"2023\": \"(37675)\", \"2024\": \"(25112)\", \"2025\": \"(52424)\"} Other assets values: {\"2023\": \"(51035)\", \"2024\": \"(42455)\", \"2025\": \"427\"} Trade and other payables and contract liabilities values: {\"2023\": \"42675\", \"2024\": \"42524\", \"2025\": \"51183\"} Employee benefits values: {\"2023\": \"879\", \"2024\": \"1705\", \"2025\": \"2272\"} Other liabilities values: {\"2023\": \"(2767)\", \"2024\": \"18608\", \"2025\": \"5092\"} Cash generated from operating activities values: {\"2023\": \"36420\", \"2024\": \"135404\", \"2025\": \"190834\"} Income tax paid, net values: {\"2023\": \"(4207)\", \"2024\": \"(9664)\", \"2025\": \"(5548)\"} Net cash generated from operating activities values: {\"2023\": \"32213\", \"2024\": \"125740\", \"2025\": \"185286\"} Interest received values: {\"2023\": \"8184\", \"2024\": \"21935\", \"2025\": \"24747\"} Acquisition of property, plant and equipment (refer note (a) below) values: {\"2023\": \"(7489)\", \"2024\": \"(5904)\", \"2025\": \"(4473)\"} Acquisition of intangible assets values: {\"2023\": \"(9412)\", \"2024\": \"(6920)\", \"2025\": \"(7289)\"} Proceeds from sale of property, plant and equipment values: {\"2023\": \"410\", \"2024\": \"389\", \"2025\": \"437\"} Redemption of term deposits values: {\"2023\": \"308308\", \"2024\": \"345903\", \"2025\": \"403195\"} Investment in term deposits values: {\"2023\": \"(251681)\", \"2024\": \"(423612)\", \"2025\": \"(379211)\"} 7 (e)) (refer note (b) below) values: {\"2023\": \"(1457)\", \"2024\": \"(6476)\", \"2025\": \"(10394)\"} Loan given to equity-accounted investee received back (refer note 37) values: {\"2024\": \"24\", \"2025\": \"24\"} Acquisition of other securities measured at FVTPL values: {\"2023\": \"(87)\", \"2024\": \"(11)\", \"2025\": \"(73)\"} Income tax paid on term deposits values: {\"2023\": \"(148)\", \"2024\": \"(918)\", \"2025\": \"(519)\"} Net cash generated from (used in) investing activities values: {\"2023\": \"46628\", \"2024\": \"(75590)\", \"2025\": \"26444\"} Repurchase of treasury shares (refer note 26) values: {\"2025\": \"(21722)\"} Acquisition of non-controlling interest (refer note 7(a)) values: {\"2023\": \"(5035)\", \"2024\": \"(7427)\"} Settlement of share based arrangement (refer note 33 (d) (i)) values: {\"2025\": \"(122)\"} Proceeds from issuance of shares on exercise of share based awards values: {\"2023\": \"2200\", \"2024\": \"5995\", \"2025\": \"7009\"}",
7
+ "Proceeds from bank loans (refer note 28) values: {\"2023\": \"2168\", \"2024\": \"2114\"} Repayment of bank loans (refer note 28) values: {\"2023\": \"(749)\", \"2024\": \"(1009)\", \"2025\": \"(1455)\"} Payment of principal portion of lease liabilities (refer note 28) values: {\"2023\": \"(2415)\", \"2024\": \"(3105)\", \"2025\": \"(3763)\"} Interest paid, including finance and other charges (refer note 16 and 28) values: {\"2023\": \"(2376)\", \"2024\": \"(2804)\", \"2025\": \"(2838)\"} Net cash used in financing activities values: {\"2023\": \"(6207)\", \"2024\": \"(6236)\", \"2025\": \"(22891)\"} Net increase in cash and cash equivalents values: {\"2023\": \"72634\", \"2024\": \"43914\", \"2025\": \"188839\"} Cash and cash equivalents at beginning of the year values: {\"2023\": \"213283\", \"2024\": \"284018\", \"2025\": \"327065\"} Effect of exchange rate fluctuations on cash held values: {\"2023\": \"(1899)\", \"2024\": \"(867)\", \"2025\": \"(7542)\"} Cash and cash equivalents at end of the year (refer note 22) values: {\"2023\": \"284018\", \"2024\": \"327065\", \"2025\": \"508362\"}"
8
+ ]
src/data/index_merged/chunks_merged.json ADDED
@@ -0,0 +1,142 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "id": "100-0",
4
+ "chunk_size": 100,
5
+ "content": "Property, plant and equipment values: {\"2023\": \"25380\", \"2024\": \"25895\"} Intangible assets and goodwill values: {\"2023\": \"628974\", \"2024\": \"613386\"} Trade and other receivables values: {\"2023\": \"6179\", \"2024\": \"7696\"} Investment in equity-accounted investees values: {\"2023\": \"2070\", \"2024\": \"2022\"} Other investments values: {\"2023\": \"1268\", \"2024\": \"1361\"} Term deposits values: {\"2023\": \"5618\", \"2024\": \"966\"} Non-current tax assets values: {\"2023\": \"18373\", \"2024\": \"22071\"} Deferred tax assets, net values: {\"2024\": \"129317\"} Other non-current assets values: {\"2023\": \"53\", \"2024\": \"85\"} Total non-current assets values: {\"2023\": \"687915\", \"2024\": \"802799\"} Inventories values: {\"2023\": \"25\", \"2024\": \"218\"} Contract assets values: {\"2024\": \"253\"}"
6
+ },
7
+ {
8
+ "id": "100-1",
9
+ "chunk_size": 100,
10
+ "content": "Current tax assets values: {\"2024\": \"4947\"} Trade and other receivables values: {\"2023\": \"68847\", \"2024\": \"91950\"} Term deposits values: {\"2023\": \"197056\", \"2024\": \"279722\"} Other current assets values: {\"2023\": \"121964\", \"2024\": \"153123\"} Cash and cash equivalents values: {\"2023\": \"284018\", \"2024\": \"327065\"} Total current assets values: {\"2023\": \"671910\", \"2024\": \"857278\"} Total assets values: {\"2023\": \"1359825\", \"2024\": \"1660077\"} Share capital values: {\"2023\": \"53\", \"2024\": \"55\"} Share premium values: {\"2023\": \"2057362\", \"2024\": \"2161217\"} Other components of equity values: {\"2023\": \"40137\", \"2024\": \"(29899)\"} Accumulated deficit values: {\"2023\": \"(1227986)\", \"2024\": \"(1020518)\"} Total equity attributable to owners of the Company values: {\"2023\": \"869566\", \"2024\": \"1110855\"}"
11
+ },
12
+ {
13
+ "id": "100-2",
14
+ "chunk_size": 100,
15
+ "content": "Non-controlling interests values: {\"2023\": \"6490\", \"2024\": \"5563\"} Total equity values: {\"2023\": \"876056\", \"2024\": \"1116418\"} Loans and borrowings values: {\"2023\": \"15650\", \"2024\": \"216818\"} Employee benefits values: {\"2023\": \"8886\", \"2024\": \"11662\"} Contract liabilities values: {\"2023\": \"163\", \"2024\": \"408\"} Deferred tax liabilities, net values: {\"2023\": \"822\", \"2024\": \"4754\"} Other non-current liabilities values: {\"2023\": \"4590\", \"2024\": \"12443\"} Total non-current liabilities values: {\"2023\": \"30111\", \"2024\": \"246085\"} Loans and borrowings values: {\"2023\": \"219514\", \"2024\": \"4806\"} Trade and other payables values: {\"2023\": \"89780\", \"2024\": \"118548\"} Contract liabilities values: {\"2023\": \"75206\", \"2024\": \"92958\"} Other current liabilities values: {\"2023\": \"69158\", \"2024\": \"81262\"}"
16
+ },
17
+ {
18
+ "id": "100-3",
19
+ "chunk_size": 100,
20
+ "content": "Total current liabilities values: {\"2023\": \"453658\", \"2024\": \"297574\"} Total liabilities values: {\"2023\": \"483769\", \"2024\": \"543659\"} Total equity and liabilities values: {\"2023\": \"1359825\", \"2024\": \"1660077\"} Air ticketing values: {\"2022\": \"88712\", \"2023\": \"147793\", \"2024\": \"201246\"} Hotels and packages values: {\"2022\": \"157267\", \"2023\": \"337686\", \"2024\": \"435542\"} Bus ticketing values: {\"2022\": \"39896\", \"2023\": \"74873\", \"2024\": \"92693\"} Other revenue values: {\"2022\": \"18047\", \"2023\": \"32684\", \"2024\": \"53043\"} Total revenue values: {\"2022\": \"303922\", \"2023\": \"593036\", \"2024\": \"782524\"} Other income values: {\"2022\": \"3490\", \"2023\": \"2798\", \"2024\": \"770\"} Procurement cost of hotels and packages services values: {\"2022\": \"54760\", \"2023\": \"168387\", \"2024\": \"210357\"}"
21
+ },
22
+ {
23
+ "id": "100-4",
24
+ "chunk_size": 100,
25
+ "content": "Other cost of providing services values: {\"2022\": \"3990\", \"2023\": \"9180\", \"2024\": \"4732\"} Personnel expenses values: {\"2022\": \"116924\", \"2023\": \"131968\", \"2024\": \"147587\"} Marketing and sales promotion expenses values: {\"2022\": \"51033\", \"2023\": \"101601\", \"2024\": \"123304\"} Other operating expenses values: {\"2022\": \"81575\", \"2023\": \"133698\", \"2024\": \"204833\"} Depreciation, amortization and impairment values: {\"2022\": \"29496\", \"2023\": \"27396\", \"2024\": \"27267\"} Results from operating activities values: {\"2022\": \"(30366)\", \"2023\": \"23604\", \"2024\": \"65214\"} Finance income values: {\"2022\": \"9984\", \"2023\": \"10974\", \"2024\": \"24365\"} Finance costs values: {\"2022\": \"26326\", \"2023\": \"46732\", \"2024\": \"(3307)\"} Net finance income (costs) values: {\"2022\": \"(16342)\", \"2023\": \"(35758)\", \"2024\": \"27672\"}"
26
+ },
27
+ {
28
+ "id": "100-5",
29
+ "chunk_size": 100,
30
+ "content": "Share of profit of equity-accounted investees values: {\"2022\": \"34\", \"2023\": \"10\", \"2024\": \"52\"} Profit (loss) before tax values: {\"2022\": \"(46674)\", \"2023\": \"(12144)\", \"2024\": \"92938\"} Income tax benefit values: {\"2022\": \"1107\", \"2023\": \"976\", \"2024\": \"123805\"} Profit (loss) for the year values: {\"2022\": \"(45567)\", \"2023\": \"(11168)\", \"2024\": \"216743\"} Remeasurement of defined benefit liability values: {\"2022\": \"(426)\", \"2023\": \"468\", \"2024\": \"(964)\"} Equity instruments at fair value through other values: {\"2022\": \"33543\"} operations values: {\"2022\": \"(18943)\", \"2023\": \"(48879)\", \"2024\": \"(9862)\"} Other comprehensive income (loss) for the year, net of tax values: {\"2022\": \"14174\", \"2023\": \"(48411)\", \"2024\": \"(10826)\"}"
31
+ },
32
+ {
33
+ "id": "100-6",
34
+ "chunk_size": 100,
35
+ "content": "Total comprehensive income (loss) for the year values: {\"2022\": \"(31393)\", \"2023\": \"(59579)\", \"2024\": \"205917\"} Owners of the Company values: {\"2022\": \"(45405)\", \"2023\": \"(11321)\", \"2024\": \"216801\"} Non-controlling interests values: {\"2022\": \"(162)\", \"2023\": \"153\", \"2024\": \"(58)\"} Profit (loss) for the year values: {\"2022\": \"(45567)\", \"2023\": \"(11168)\", \"2024\": \"216743\"} Owners of the Company values: {\"2022\": \"(31216)\", \"2023\": \"(59176)\", \"2024\": \"206059\"} Non-controlling interests values: {\"2022\": \"(177)\", \"2023\": \"(403)\", \"2024\": \"(142)\"} Total comprehensive income (loss) for the year values: {\"2022\": \"(31393)\", \"2023\": \"(59579)\", \"2024\": \"205917\"} Basic values: {\"2022\": \"(0.42)\", \"2023\": \"(0.10)\", \"2024\": \"1.95\"}"
36
+ },
37
+ {
38
+ "id": "100-7",
39
+ "chunk_size": 100,
40
+ "content": "Diluted values: {\"2022\": \"(0.42)\", \"2023\": \"(0.10)\", \"2024\": \"1.74\"} Profit (loss) for the year values: {\"2022\": \"(45567)\", \"2023\": \"(11168)\", \"2024\": \"216743\"} Depreciation values: {\"2022\": \"6023\", \"2023\": \"6096\", \"2024\": \"7436\"} Amortization values: {\"2022\": \"23335\", \"2023\": \"21150\", \"2024\": \"19809\"} Impairment of intangible assets values: {\"2022\": \"138\", \"2023\": \"150\", \"2024\": \"22\"} Impairment provision for non-financial assets values: {\"2024\": \"10047\"} Intangible assets written off values: {\"2022\": \"17\", \"2024\": \"982\"} Gain on discontinuation of equity accounted investments values: {\"2022\": \"(2251)\", \"2023\": \"(2017)\"} Net gain on de-recognition of property, plant and equipment values: {\"2022\": \"(6)\", \"2023\": \"(177)\", \"2024\": \"(132)\"}"
41
+ },
42
+ {
43
+ "id": "100-8",
44
+ "chunk_size": 100,
45
+ "content": "Gain on lease modification values: {\"2022\": \"(417)\", \"2023\": \"(100)\", \"2024\": \"(12)\"} Net finance costs (income) values: {\"2022\": \"16342\", \"2023\": \"35758\", \"2024\": \"(27672)\"} Share of profit of equity-accounted investees values: {\"2022\": \"(34)\", \"2023\": \"(10)\", \"2024\": \"(52)\"} Share based payment values: {\"2022\": \"36645\", \"2023\": \"35643\", \"2024\": \"36963\"} Income tax benefit values: {\"2022\": \"(1107)\", \"2023\": \"(976)\", \"2024\": \"(123805)\"} Property, plant and equipment values: {\"2024\": \"25895\", \"2025\": \"26457\"} Intangible assets and goodwill values: {\"2024\": \"613386\", \"2025\": \"597791\"} Trade and other receivables values: {\"2024\": \"7696\", \"2025\": \"8879\"} Investment in equity-accounted investees values: {\"2024\": \"2022\", \"2025\": \"1914\"} Other investments values: {\"2024\": \"1361\", \"2025\": \"972\"}"
46
+ },
47
+ {
48
+ "id": "100-9",
49
+ "chunk_size": 100,
50
+ "content": "Term deposits values: {\"2024\": \"966\", \"2025\": \"2130\"} Non-current tax assets, net values: {\"2024\": \"22071\", \"2025\": \"18044\"} Deferred tax assets, net values: {\"2024\": \"129317\", \"2025\": \"106431\"} Other non-current assets values: {\"2024\": \"85\", \"2025\": \"402\"} Total non-current assets values: {\"2024\": \"802799\", \"2025\": \"763020\"} Inventories values: {\"2024\": \"218\", \"2025\": \"363\"} Contract assets values: {\"2024\": \"253\", \"2025\": \"507\"} Current tax assets, net values: {\"2024\": \"4947\", \"2025\": \"9140\"} Trade and other receivables values: {\"2024\": \"91950\", \"2025\": \"141143\"} Term deposits values: {\"2024\": \"279722\", \"2025\": \"252286\"} Other current assets values: {\"2024\": \"153123\", \"2025\": \"152931\"} Cash and cash equivalents values: {\"2024\": \"327065\", \"2025\": \"508898\"}"
51
+ },
52
+ {
53
+ "id": "100-10",
54
+ "chunk_size": 100,
55
+ "content": "Total current assets values: {\"2024\": \"857278\", \"2025\": \"1065268\"} Total assets values: {\"2024\": \"1660077\", \"2025\": \"1828288\"} Share capital values: {\"2024\": \"55\", \"2025\": \"56\"} Share premium values: {\"2024\": \"2161217\", \"2025\": \"2203445\"} Other components of equity values: {\"2024\": \"(29899)\", \"2025\": \"(71003\"} Accumulated deficit values: {\"2024\": \"(1020518)\", \"2025\": \"(929868\"} Total equity attributable to owners of the Company values: {\"2024\": \"1110855\", \"2025\": \"1202630\"} Non-controlling interests values: {\"2024\": \"5563\", \"2025\": \"5347\"} Total equity values: {\"2024\": \"1116418\", \"2025\": \"1207977\"} Loans and borrowings values: {\"2024\": \"216818\", \"2025\": \"13895\"} Employee benefits values: {\"2024\": \"11662\", \"2025\": \"14705\"} Contract liabilities values: {\"2024\": \"408\", \"2025\": \"175\"}"
56
+ },
57
+ {
58
+ "id": "100-11",
59
+ "chunk_size": 100,
60
+ "content": "Deferred tax liabilities, net values: {\"2024\": \"4754\", \"2025\": \"2526\"} Other non-current liabilities values: {\"2024\": \"12443\", \"2025\": \"12396\"} Total non-current liabilities values: {\"2024\": \"246085\", \"2025\": \"43697\"} Bank overdraft values: {\"2025\": \"536\"} Loans and borrowings values: {\"2024\": \"4806\", \"2025\": \"222142\"} Trade and other payables values: {\"2024\": \"118548\", \"2025\": \"146999\"} Contract liabilities values: {\"2024\": \"92958\", \"2025\": \"120098\"} Other current liabilities values: {\"2024\": \"81262\", \"2025\": \"86839\"} Total current liabilities values: {\"2024\": \"297574\", \"2025\": \"576614\"} Total liabilities values: {\"2024\": \"543659\", \"2025\": \"620311\"} Total equity and liabilities values: {\"2024\": \"1660077\", \"2025\": \"1828288\"} Air ticketing values: {\"2023\": \"147793\", \"2024\": \"201246\", \"2025\": \"241529\"}"
61
+ },
62
+ {
63
+ "id": "100-12",
64
+ "chunk_size": 100,
65
+ "content": "Hotels and packages values: {\"2023\": \"337686\", \"2024\": \"435542\", \"2025\": \"520411\"} Bus ticketing values: {\"2023\": \"74873\", \"2024\": \"92693\", \"2025\": \"119361\"} Other revenue values: {\"2023\": \"32684\", \"2024\": \"53043\", \"2025\": \"97035\"} Total revenue values: {\"2023\": \"593036\", \"2024\": \"782524\", \"2025\": \"978336\"} Other income values: {\"2023\": \"2798\", \"2024\": \"770\", \"2025\": \"317\"} Procurement cost of hotels and packages services values: {\"2023\": \"168387\", \"2024\": \"210357\", \"2025\": \"246550\"} Other cost of providing services values: {\"2023\": \"9180\", \"2024\": \"4732\", \"2025\": \"27798\"} Personnel expenses values: {\"2023\": \"131968\", \"2024\": \"147587\", \"2025\": \"160065\"} Marketing and sales promotion expenses values: {\"2023\": \"101601\", \"2024\": \"123304\", \"2025\": \"165324\"}"
66
+ },
67
+ {
68
+ "id": "100-13",
69
+ "chunk_size": 100,
70
+ "content": "Other operating expenses values: {\"2023\": \"133698\", \"2024\": \"204833\", \"2025\": \"231905\"} Depreciation, amortization and impairment values: {\"2023\": \"27396\", \"2024\": \"27267\", \"2025\": \"27122\"} Results from operating activities values: {\"2023\": \"23604\", \"2024\": \"65214\", \"2025\": \"119889\"} Finance income values: {\"2023\": \"10974\", \"2024\": \"24365\", \"2025\": \"28256\"} Finance costs values: {\"2023\": \"46732\", \"2024\": \"(3307)\", \"2025\": \"32191\"} Net finance income (costs) values: {\"2023\": \"(35758)\", \"2024\": \"27672\", \"2025\": \"(3935)\"} Share of profit (loss) of equity-accounted investees values: {\"2023\": \"10\", \"2024\": \"52\", \"2025\": \"(64)\"} Profit (loss) before tax values: {\"2023\": \"(12144)\", \"2024\": \"92938\", \"2025\": \"115890\"} Income tax benefit (expense) values: {\"2023\": \"976\", \"2024\": \"123805\", \"2025\": \"(20616)\"}"
71
+ },
72
+ {
73
+ "id": "100-14",
74
+ "chunk_size": 100,
75
+ "content": "Profit (loss) for the year values: {\"2023\": \"(11168)\", \"2024\": \"216743\", \"2025\": \"95274\"} Remeasurements of defined benefit liability values: {\"2023\": \"468\", \"2024\": \"(964)\", \"2025\": \"(642)\"} Equity instruments at fair value through other values: {\"2025\": \"(452)\"} operations values: {\"2023\": \"(48879)\", \"2024\": \"(9862)\", \"2025\": \"(20898)\"} Other comprehensive loss for the year, net of tax values: {\"2023\": \"(48411)\", \"2024\": \"(10826)\", \"2025\": \"(21992)\"} Total comprehensive income (loss) for the year values: {\"2023\": \"(59579)\", \"2024\": \"205917\", \"2025\": \"73282\"} Owners of the Company values: {\"2023\": \"(11321)\", \"2024\": \"216801\", \"2025\": \"95101\"} Non-controlling interests values: {\"2023\": \"153\", \"2024\": \"(58)\", \"2025\": \"173\"}"
76
+ },
77
+ {
78
+ "id": "100-15",
79
+ "chunk_size": 100,
80
+ "content": "Profit (loss) for the year values: {\"2023\": \"(11168)\", \"2024\": \"216743\", \"2025\": \"95274\"} Owners of the Company values: {\"2023\": \"(59176)\", \"2024\": \"206059\", \"2025\": \"73255\"} Non-controlling interests values: {\"2023\": \"(403)\", \"2024\": \"(142)\", \"2025\": \"27\"} Total comprehensive income (loss) for the year values: {\"2023\": \"(59579)\", \"2024\": \"205917\", \"2025\": \"73282\"} Basic values: {\"2023\": \"(0.10)\", \"2024\": \"1.95\", \"2025\": \"0.84\"} Diluted values: {\"2023\": \"(0.10)\", \"2024\": \"1.74\", \"2025\": \"0.83\"} Profit (loss) for the year values: {\"2023\": \"(11168)\", \"2024\": \"216743\", \"2025\": \"95274\"} Depreciation values: {\"2023\": \"6096\", \"2024\": \"7436\", \"2025\": \"9110\"} Amortization values: {\"2023\": \"21150\", \"2024\": \"19809\", \"2025\": \"18012\"}"
81
+ },
82
+ {
83
+ "id": "100-16",
84
+ "chunk_size": 100,
85
+ "content": "Impairment of intangible assets values: {\"2023\": \"150\", \"2024\": \"22\"} Impairment provision for non-financial assets values: {\"2024\": \"10047\"} Intangible assets written off values: {\"2024\": \"982\", \"2025\": \"1481\"} Gain on discontinuation of equity accounted investments values: {\"2023\": \"(2017)\"} Net gain on de-recognition of property, plant and equipment values: {\"2023\": \"(177)\", \"2024\": \"(132)\", \"2025\": \"(61)\"} Gain on lease modification values: {\"2023\": \"(100)\", \"2024\": \"(12)\", \"2025\": \"(20)\"} Net finance costs (income) values: {\"2023\": \"35758\", \"2024\": \"(27672)\", \"2025\": \"3935\"} Share of (profit) loss of equity-accounted investees values: {\"2023\": \"(10)\", \"2024\": \"(52)\", \"2025\": \"64\"}"
86
+ },
87
+ {
88
+ "id": "100-17",
89
+ "chunk_size": 100,
90
+ "content": "Share based payment values: {\"2023\": \"35643\", \"2024\": \"36963\", \"2025\": \"36018\"} Income tax (benefit) expense values: {\"2023\": \"(976)\", \"2024\": \"(123805)\", \"2025\": \"20616\"} Operating cash flows before changes in following assets and liabilities values: {\"2023\": \"84349\", \"2024\": \"140329\", \"2025\": \"184429\"} Inventories values: {\"2023\": \"(6)\", \"2024\": \"(195)\", \"2025\": \"(145)\"} Trade and other receivables and contract assets values: {\"2023\": \"(37675)\", \"2024\": \"(25112)\", \"2025\": \"(52424)\"} Other assets values: {\"2023\": \"(51035)\", \"2024\": \"(42455)\", \"2025\": \"427\"} Trade and other payables and contract liabilities values: {\"2023\": \"42675\", \"2024\": \"42524\", \"2025\": \"51183\"} Employee benefits values: {\"2023\": \"879\", \"2024\": \"1705\", \"2025\": \"2272\"}"
91
+ },
92
+ {
93
+ "id": "100-18",
94
+ "chunk_size": 100,
95
+ "content": "Other liabilities values: {\"2023\": \"(2767)\", \"2024\": \"18608\", \"2025\": \"5092\"} Cash generated from operating activities values: {\"2023\": \"36420\", \"2024\": \"135404\", \"2025\": \"190834\"} Income tax paid, net values: {\"2023\": \"(4207)\", \"2024\": \"(9664)\", \"2025\": \"(5548)\"} Net cash generated from operating activities values: {\"2023\": \"32213\", \"2024\": \"125740\", \"2025\": \"185286\"} Interest received values: {\"2023\": \"8184\", \"2024\": \"21935\", \"2025\": \"24747\"} Acquisition of property, plant and equipment (refer note (a) below) values: {\"2023\": \"(7489)\", \"2024\": \"(5904)\", \"2025\": \"(4473)\"} Acquisition of intangible assets values: {\"2023\": \"(9412)\", \"2024\": \"(6920)\", \"2025\": \"(7289)\"} Proceeds from sale of property, plant and equipment values: {\"2023\": \"410\", \"2024\": \"389\", \"2025\": \"437\"}"
96
+ },
97
+ {
98
+ "id": "100-19",
99
+ "chunk_size": 100,
100
+ "content": "Redemption of term deposits values: {\"2023\": \"308308\", \"2024\": \"345903\", \"2025\": \"403195\"} Investment in term deposits values: {\"2023\": \"(251681)\", \"2024\": \"(423612)\", \"2025\": \"(379211)\"} 7 (e)) (refer note (b) below) values: {\"2023\": \"(1457)\", \"2024\": \"(6476)\", \"2025\": \"(10394)\"} Loan given to equity-accounted investee received back (refer note 37) values: {\"2024\": \"24\", \"2025\": \"24\"} Acquisition of other securities measured at FVTPL values: {\"2023\": \"(87)\", \"2024\": \"(11)\", \"2025\": \"(73)\"} Income tax paid on term deposits values: {\"2023\": \"(148)\", \"2024\": \"(918)\", \"2025\": \"(519)\"} Net cash generated from (used in) investing activities values: {\"2023\": \"46628\", \"2024\": \"(75590)\", \"2025\": \"26444\"}"
101
+ },
102
+ {
103
+ "id": "100-20",
104
+ "chunk_size": 100,
105
+ "content": "Repurchase of treasury shares (refer note 26) values: {\"2025\": \"(21722)\"} Acquisition of non-controlling interest (refer note 7(a)) values: {\"2023\": \"(5035)\", \"2024\": \"(7427)\"} Settlement of share based arrangement (refer note 33 (d) (i)) values: {\"2025\": \"(122)\"} Proceeds from issuance of shares on exercise of share based awards values: {\"2023\": \"2200\", \"2024\": \"5995\", \"2025\": \"7009\"} Proceeds from bank loans (refer note 28) values: {\"2023\": \"2168\", \"2024\": \"2114\"} Repayment of bank loans (refer note 28) values: {\"2023\": \"(749)\", \"2024\": \"(1009)\", \"2025\": \"(1455)\"} Payment of principal portion of lease liabilities (refer note 28) values: {\"2023\": \"(2415)\", \"2024\": \"(3105)\", \"2025\": \"(3763)\"}"
106
+ },
107
+ {
108
+ "id": "100-21",
109
+ "chunk_size": 100,
110
+ "content": "Interest paid, including finance and other charges (refer note 16 and 28) values: {\"2023\": \"(2376)\", \"2024\": \"(2804)\", \"2025\": \"(2838)\"} Net cash used in financing activities values: {\"2023\": \"(6207)\", \"2024\": \"(6236)\", \"2025\": \"(22891)\"} Net increase in cash and cash equivalents values: {\"2023\": \"72634\", \"2024\": \"43914\", \"2025\": \"188839\"} Cash and cash equivalents at beginning of the year values: {\"2023\": \"213283\", \"2024\": \"284018\", \"2025\": \"327065\"} Effect of exchange rate fluctuations on cash held values: {\"2023\": \"(1899)\", \"2024\": \"(867)\", \"2025\": \"(7542)\"} Cash and cash equivalents at end of the year (refer note 22) values: {\"2023\": \"284018\", \"2024\": \"327065\", \"2025\": \"508362\"}"
111
+ },
112
+ {
113
+ "id": "400-0",
114
+ "chunk_size": 400,
115
+ "content": "Property, plant and equipment values: {\"2023\": \"25380\", \"2024\": \"25895\"} Intangible assets and goodwill values: {\"2023\": \"628974\", \"2024\": \"613386\"} Trade and other receivables values: {\"2023\": \"6179\", \"2024\": \"7696\"} Investment in equity-accounted investees values: {\"2023\": \"2070\", \"2024\": \"2022\"} Other investments values: {\"2023\": \"1268\", \"2024\": \"1361\"} Term deposits values: {\"2023\": \"5618\", \"2024\": \"966\"} Non-current tax assets values: {\"2023\": \"18373\", \"2024\": \"22071\"} Deferred tax assets, net values: {\"2024\": \"129317\"} Other non-current assets values: {\"2023\": \"53\", \"2024\": \"85\"} Total non-current assets values: {\"2023\": \"687915\", \"2024\": \"802799\"} Inventories values: {\"2023\": \"25\", \"2024\": \"218\"} Contract assets values: {\"2024\": \"253\"} Current tax assets values: {\"2024\": \"4947\"} Trade and other receivables values: {\"2023\": \"68847\", \"2024\": \"91950\"} Term deposits values: {\"2023\": \"197056\", \"2024\": \"279722\"} Other current assets values: {\"2023\": \"121964\", \"2024\": \"153123\"} Cash and cash equivalents values: {\"2023\": \"284018\", \"2024\": \"327065\"} Total current assets values: {\"2023\": \"671910\", \"2024\": \"857278\"} Total assets values: {\"2023\": \"1359825\", \"2024\": \"1660077\"} Share capital values: {\"2023\": \"53\", \"2024\": \"55\"} Share premium values: {\"2023\": \"2057362\", \"2024\": \"2161217\"} Other components of equity values: {\"2023\": \"40137\", \"2024\": \"(29899)\"} Accumulated deficit values: {\"2023\": \"(1227986)\", \"2024\": \"(1020518)\"} Total equity attributable to owners of the Company values: {\"2023\": \"869566\", \"2024\": \"1110855\"} Non-controlling interests values: {\"2023\": \"6490\", \"2024\": \"5563\"} Total equity values: {\"2023\": \"876056\", \"2024\": \"1116418\"} Loans and borrowings values: {\"2023\": \"15650\", \"2024\": \"216818\"} Employee benefits values: {\"2023\": \"8886\", \"2024\": \"11662\"} Contract liabilities values: {\"2023\": \"163\", \"2024\": \"408\"} Deferred tax liabilities, net values: {\"2023\": \"822\", \"2024\": \"4754\"} Other non-current liabilities values: {\"2023\": \"4590\", \"2024\": \"12443\"} Total non-current liabilities values: {\"2023\": \"30111\", \"2024\": \"246085\"} Loans and borrowings values: {\"2023\": \"219514\", \"2024\": \"4806\"} Trade and other payables values: {\"2023\": \"89780\", \"2024\": \"118548\"} Contract liabilities values: {\"2023\": \"75206\", \"2024\": \"92958\"} Other current liabilities values: {\"2023\": \"69158\", \"2024\": \"81262\"} Total current liabilities values: {\"2023\": \"453658\", \"2024\": \"297574\"} Total liabilities values: {\"2023\": \"483769\", \"2024\": \"543659\"} Total equity and liabilities values: {\"2023\": \"1359825\", \"2024\": \"1660077\"} Air ticketing values: {\"2022\": \"88712\", \"2023\": \"147793\", \"2024\": \"201246\"} Hotels and packages values: {\"2022\": \"157267\", \"2023\": \"337686\", \"2024\": \"435542\"} Bus ticketing values: {\"2022\": \"39896\", \"2023\": \"74873\", \"2024\": \"92693\"} Other revenue values: {\"2022\": \"18047\", \"2023\": \"32684\", \"2024\": \"53043\"} Total revenue values: {\"2022\": \"303922\", \"2023\": \"593036\", \"2024\": \"782524\"} Other income values: {\"2022\": \"3490\", \"2023\": \"2798\", \"2024\": \"770\"} Procurement cost of hotels and packages services values: {\"2022\": \"54760\", \"2023\": \"168387\", \"2024\": \"210357\"} Other cost of providing services values: {\"2022\": \"3990\", \"2023\": \"9180\", \"2024\": \"4732\"}"
116
+ },
117
+ {
118
+ "id": "400-1",
119
+ "chunk_size": 400,
120
+ "content": "Personnel expenses values: {\"2022\": \"116924\", \"2023\": \"131968\", \"2024\": \"147587\"} Marketing and sales promotion expenses values: {\"2022\": \"51033\", \"2023\": \"101601\", \"2024\": \"123304\"} Other operating expenses values: {\"2022\": \"81575\", \"2023\": \"133698\", \"2024\": \"204833\"} Depreciation, amortization and impairment values: {\"2022\": \"29496\", \"2023\": \"27396\", \"2024\": \"27267\"} Results from operating activities values: {\"2022\": \"(30366)\", \"2023\": \"23604\", \"2024\": \"65214\"} Finance income values: {\"2022\": \"9984\", \"2023\": \"10974\", \"2024\": \"24365\"} Finance costs values: {\"2022\": \"26326\", \"2023\": \"46732\", \"2024\": \"(3307)\"} Net finance income (costs) values: {\"2022\": \"(16342)\", \"2023\": \"(35758)\", \"2024\": \"27672\"} Share of profit of equity-accounted investees values: {\"2022\": \"34\", \"2023\": \"10\", \"2024\": \"52\"} Profit (loss) before tax values: {\"2022\": \"(46674)\", \"2023\": \"(12144)\", \"2024\": \"92938\"} Income tax benefit values: {\"2022\": \"1107\", \"2023\": \"976\", \"2024\": \"123805\"} Profit (loss) for the year values: {\"2022\": \"(45567)\", \"2023\": \"(11168)\", \"2024\": \"216743\"} Remeasurement of defined benefit liability values: {\"2022\": \"(426)\", \"2023\": \"468\", \"2024\": \"(964)\"} Equity instruments at fair value through other values: {\"2022\": \"33543\"} operations values: {\"2022\": \"(18943)\", \"2023\": \"(48879)\", \"2024\": \"(9862)\"} Other comprehensive income (loss) for the year, net of tax values: {\"2022\": \"14174\", \"2023\": \"(48411)\", \"2024\": \"(10826)\"} Total comprehensive income (loss) for the year values: {\"2022\": \"(31393)\", \"2023\": \"(59579)\", \"2024\": \"205917\"} Owners of the Company values: {\"2022\": \"(45405)\", \"2023\": \"(11321)\", \"2024\": \"216801\"} Non-controlling interests values: {\"2022\": \"(162)\", \"2023\": \"153\", \"2024\": \"(58)\"} Profit (loss) for the year values: {\"2022\": \"(45567)\", \"2023\": \"(11168)\", \"2024\": \"216743\"} Owners of the Company values: {\"2022\": \"(31216)\", \"2023\": \"(59176)\", \"2024\": \"206059\"} Non-controlling interests values: {\"2022\": \"(177)\", \"2023\": \"(403)\", \"2024\": \"(142)\"} Total comprehensive income (loss) for the year values: {\"2022\": \"(31393)\", \"2023\": \"(59579)\", \"2024\": \"205917\"} Basic values: {\"2022\": \"(0.42)\", \"2023\": \"(0.10)\", \"2024\": \"1.95\"} Diluted values: {\"2022\": \"(0.42)\", \"2023\": \"(0.10)\", \"2024\": \"1.74\"} Profit (loss) for the year values: {\"2022\": \"(45567)\", \"2023\": \"(11168)\", \"2024\": \"216743\"} Depreciation values: {\"2022\": \"6023\", \"2023\": \"6096\", \"2024\": \"7436\"} Amortization values: {\"2022\": \"23335\", \"2023\": \"21150\", \"2024\": \"19809\"} Impairment of intangible assets values: {\"2022\": \"138\", \"2023\": \"150\", \"2024\": \"22\"} Impairment provision for non-financial assets values: {\"2024\": \"10047\"} Intangible assets written off values: {\"2022\": \"17\", \"2024\": \"982\"} Gain on discontinuation of equity accounted investments values: {\"2022\": \"(2251)\", \"2023\": \"(2017)\"} Net gain on de-recognition of property, plant and equipment values: {\"2022\": \"(6)\", \"2023\": \"(177)\", \"2024\": \"(132)\"} Gain on lease modification values: {\"2022\": \"(417)\", \"2023\": \"(100)\", \"2024\": \"(12)\"} Net finance costs (income) values: {\"2022\": \"16342\", \"2023\": \"35758\", \"2024\": \"(27672)\"}"
121
+ },
122
+ {
123
+ "id": "400-2",
124
+ "chunk_size": 400,
125
+ "content": "Share of profit of equity-accounted investees values: {\"2022\": \"(34)\", \"2023\": \"(10)\", \"2024\": \"(52)\"} Share based payment values: {\"2022\": \"36645\", \"2023\": \"35643\", \"2024\": \"36963\"} Income tax benefit values: {\"2022\": \"(1107)\", \"2023\": \"(976)\", \"2024\": \"(123805)\"} Property, plant and equipment values: {\"2024\": \"25895\", \"2025\": \"26457\"} Intangible assets and goodwill values: {\"2024\": \"613386\", \"2025\": \"597791\"} Trade and other receivables values: {\"2024\": \"7696\", \"2025\": \"8879\"} Investment in equity-accounted investees values: {\"2024\": \"2022\", \"2025\": \"1914\"} Other investments values: {\"2024\": \"1361\", \"2025\": \"972\"} Term deposits values: {\"2024\": \"966\", \"2025\": \"2130\"} Non-current tax assets, net values: {\"2024\": \"22071\", \"2025\": \"18044\"} Deferred tax assets, net values: {\"2024\": \"129317\", \"2025\": \"106431\"} Other non-current assets values: {\"2024\": \"85\", \"2025\": \"402\"} Total non-current assets values: {\"2024\": \"802799\", \"2025\": \"763020\"} Inventories values: {\"2024\": \"218\", \"2025\": \"363\"} Contract assets values: {\"2024\": \"253\", \"2025\": \"507\"} Current tax assets, net values: {\"2024\": \"4947\", \"2025\": \"9140\"} Trade and other receivables values: {\"2024\": \"91950\", \"2025\": \"141143\"} Term deposits values: {\"2024\": \"279722\", \"2025\": \"252286\"} Other current assets values: {\"2024\": \"153123\", \"2025\": \"152931\"} Cash and cash equivalents values: {\"2024\": \"327065\", \"2025\": \"508898\"} Total current assets values: {\"2024\": \"857278\", \"2025\": \"1065268\"} Total assets values: {\"2024\": \"1660077\", \"2025\": \"1828288\"} Share capital values: {\"2024\": \"55\", \"2025\": \"56\"} Share premium values: {\"2024\": \"2161217\", \"2025\": \"2203445\"} Other components of equity values: {\"2024\": \"(29899)\", \"2025\": \"(71003\"} Accumulated deficit values: {\"2024\": \"(1020518)\", \"2025\": \"(929868\"} Total equity attributable to owners of the Company values: {\"2024\": \"1110855\", \"2025\": \"1202630\"} Non-controlling interests values: {\"2024\": \"5563\", \"2025\": \"5347\"} Total equity values: {\"2024\": \"1116418\", \"2025\": \"1207977\"} Loans and borrowings values: {\"2024\": \"216818\", \"2025\": \"13895\"} Employee benefits values: {\"2024\": \"11662\", \"2025\": \"14705\"} Contract liabilities values: {\"2024\": \"408\", \"2025\": \"175\"} Deferred tax liabilities, net values: {\"2024\": \"4754\", \"2025\": \"2526\"} Other non-current liabilities values: {\"2024\": \"12443\", \"2025\": \"12396\"} Total non-current liabilities values: {\"2024\": \"246085\", \"2025\": \"43697\"} Bank overdraft values: {\"2025\": \"536\"} Loans and borrowings values: {\"2024\": \"4806\", \"2025\": \"222142\"} Trade and other payables values: {\"2024\": \"118548\", \"2025\": \"146999\"} Contract liabilities values: {\"2024\": \"92958\", \"2025\": \"120098\"} Other current liabilities values: {\"2024\": \"81262\", \"2025\": \"86839\"} Total current liabilities values: {\"2024\": \"297574\", \"2025\": \"576614\"} Total liabilities values: {\"2024\": \"543659\", \"2025\": \"620311\"} Total equity and liabilities values: {\"2024\": \"1660077\", \"2025\": \"1828288\"} Air ticketing values: {\"2023\": \"147793\", \"2024\": \"201246\", \"2025\": \"241529\"} Hotels and packages values: {\"2023\": \"337686\", \"2024\": \"435542\", \"2025\": \"520411\"} Bus ticketing values: {\"2023\": \"74873\", \"2024\": \"92693\", \"2025\": \"119361\"} Other revenue values: {\"2023\": \"32684\", \"2024\": \"53043\", \"2025\": \"97035\"}"
126
+ },
127
+ {
128
+ "id": "400-3",
129
+ "chunk_size": 400,
130
+ "content": "Total revenue values: {\"2023\": \"593036\", \"2024\": \"782524\", \"2025\": \"978336\"} Other income values: {\"2023\": \"2798\", \"2024\": \"770\", \"2025\": \"317\"} Procurement cost of hotels and packages services values: {\"2023\": \"168387\", \"2024\": \"210357\", \"2025\": \"246550\"} Other cost of providing services values: {\"2023\": \"9180\", \"2024\": \"4732\", \"2025\": \"27798\"} Personnel expenses values: {\"2023\": \"131968\", \"2024\": \"147587\", \"2025\": \"160065\"} Marketing and sales promotion expenses values: {\"2023\": \"101601\", \"2024\": \"123304\", \"2025\": \"165324\"} Other operating expenses values: {\"2023\": \"133698\", \"2024\": \"204833\", \"2025\": \"231905\"} Depreciation, amortization and impairment values: {\"2023\": \"27396\", \"2024\": \"27267\", \"2025\": \"27122\"} Results from operating activities values: {\"2023\": \"23604\", \"2024\": \"65214\", \"2025\": \"119889\"} Finance income values: {\"2023\": \"10974\", \"2024\": \"24365\", \"2025\": \"28256\"} Finance costs values: {\"2023\": \"46732\", \"2024\": \"(3307)\", \"2025\": \"32191\"} Net finance income (costs) values: {\"2023\": \"(35758)\", \"2024\": \"27672\", \"2025\": \"(3935)\"} Share of profit (loss) of equity-accounted investees values: {\"2023\": \"10\", \"2024\": \"52\", \"2025\": \"(64)\"} Profit (loss) before tax values: {\"2023\": \"(12144)\", \"2024\": \"92938\", \"2025\": \"115890\"} Income tax benefit (expense) values: {\"2023\": \"976\", \"2024\": \"123805\", \"2025\": \"(20616)\"} Profit (loss) for the year values: {\"2023\": \"(11168)\", \"2024\": \"216743\", \"2025\": \"95274\"} Remeasurements of defined benefit liability values: {\"2023\": \"468\", \"2024\": \"(964)\", \"2025\": \"(642)\"} Equity instruments at fair value through other values: {\"2025\": \"(452)\"} operations values: {\"2023\": \"(48879)\", \"2024\": \"(9862)\", \"2025\": \"(20898)\"} Other comprehensive loss for the year, net of tax values: {\"2023\": \"(48411)\", \"2024\": \"(10826)\", \"2025\": \"(21992)\"} Total comprehensive income (loss) for the year values: {\"2023\": \"(59579)\", \"2024\": \"205917\", \"2025\": \"73282\"} Owners of the Company values: {\"2023\": \"(11321)\", \"2024\": \"216801\", \"2025\": \"95101\"} Non-controlling interests values: {\"2023\": \"153\", \"2024\": \"(58)\", \"2025\": \"173\"} Profit (loss) for the year values: {\"2023\": \"(11168)\", \"2024\": \"216743\", \"2025\": \"95274\"} Owners of the Company values: {\"2023\": \"(59176)\", \"2024\": \"206059\", \"2025\": \"73255\"} Non-controlling interests values: {\"2023\": \"(403)\", \"2024\": \"(142)\", \"2025\": \"27\"} Total comprehensive income (loss) for the year values: {\"2023\": \"(59579)\", \"2024\": \"205917\", \"2025\": \"73282\"} Basic values: {\"2023\": \"(0.10)\", \"2024\": \"1.95\", \"2025\": \"0.84\"} Diluted values: {\"2023\": \"(0.10)\", \"2024\": \"1.74\", \"2025\": \"0.83\"} Profit (loss) for the year values: {\"2023\": \"(11168)\", \"2024\": \"216743\", \"2025\": \"95274\"} Depreciation values: {\"2023\": \"6096\", \"2024\": \"7436\", \"2025\": \"9110\"} Amortization values: {\"2023\": \"21150\", \"2024\": \"19809\", \"2025\": \"18012\"} Impairment of intangible assets values: {\"2023\": \"150\", \"2024\": \"22\"} Impairment provision for non-financial assets values: {\"2024\": \"10047\"} Intangible assets written off values: {\"2024\": \"982\", \"2025\": \"1481\"} Gain on discontinuation of equity accounted investments values: {\"2023\": \"(2017)\"}"
131
+ },
132
+ {
133
+ "id": "400-4",
134
+ "chunk_size": 400,
135
+ "content": "Net gain on de-recognition of property, plant and equipment values: {\"2023\": \"(177)\", \"2024\": \"(132)\", \"2025\": \"(61)\"} Gain on lease modification values: {\"2023\": \"(100)\", \"2024\": \"(12)\", \"2025\": \"(20)\"} Net finance costs (income) values: {\"2023\": \"35758\", \"2024\": \"(27672)\", \"2025\": \"3935\"} Share of (profit) loss of equity-accounted investees values: {\"2023\": \"(10)\", \"2024\": \"(52)\", \"2025\": \"64\"} Share based payment values: {\"2023\": \"35643\", \"2024\": \"36963\", \"2025\": \"36018\"} Income tax (benefit) expense values: {\"2023\": \"(976)\", \"2024\": \"(123805)\", \"2025\": \"20616\"} Operating cash flows before changes in following assets and liabilities values: {\"2023\": \"84349\", \"2024\": \"140329\", \"2025\": \"184429\"} Inventories values: {\"2023\": \"(6)\", \"2024\": \"(195)\", \"2025\": \"(145)\"} Trade and other receivables and contract assets values: {\"2023\": \"(37675)\", \"2024\": \"(25112)\", \"2025\": \"(52424)\"} Other assets values: {\"2023\": \"(51035)\", \"2024\": \"(42455)\", \"2025\": \"427\"} Trade and other payables and contract liabilities values: {\"2023\": \"42675\", \"2024\": \"42524\", \"2025\": \"51183\"} Employee benefits values: {\"2023\": \"879\", \"2024\": \"1705\", \"2025\": \"2272\"} Other liabilities values: {\"2023\": \"(2767)\", \"2024\": \"18608\", \"2025\": \"5092\"} Cash generated from operating activities values: {\"2023\": \"36420\", \"2024\": \"135404\", \"2025\": \"190834\"} Income tax paid, net values: {\"2023\": \"(4207)\", \"2024\": \"(9664)\", \"2025\": \"(5548)\"} Net cash generated from operating activities values: {\"2023\": \"32213\", \"2024\": \"125740\", \"2025\": \"185286\"} Interest received values: {\"2023\": \"8184\", \"2024\": \"21935\", \"2025\": \"24747\"} Acquisition of property, plant and equipment (refer note (a) below) values: {\"2023\": \"(7489)\", \"2024\": \"(5904)\", \"2025\": \"(4473)\"} Acquisition of intangible assets values: {\"2023\": \"(9412)\", \"2024\": \"(6920)\", \"2025\": \"(7289)\"} Proceeds from sale of property, plant and equipment values: {\"2023\": \"410\", \"2024\": \"389\", \"2025\": \"437\"} Redemption of term deposits values: {\"2023\": \"308308\", \"2024\": \"345903\", \"2025\": \"403195\"} Investment in term deposits values: {\"2023\": \"(251681)\", \"2024\": \"(423612)\", \"2025\": \"(379211)\"} 7 (e)) (refer note (b) below) values: {\"2023\": \"(1457)\", \"2024\": \"(6476)\", \"2025\": \"(10394)\"} Loan given to equity-accounted investee received back (refer note 37) values: {\"2024\": \"24\", \"2025\": \"24\"} Acquisition of other securities measured at FVTPL values: {\"2023\": \"(87)\", \"2024\": \"(11)\", \"2025\": \"(73)\"} Income tax paid on term deposits values: {\"2023\": \"(148)\", \"2024\": \"(918)\", \"2025\": \"(519)\"} Net cash generated from (used in) investing activities values: {\"2023\": \"46628\", \"2024\": \"(75590)\", \"2025\": \"26444\"} Repurchase of treasury shares (refer note 26) values: {\"2025\": \"(21722)\"} Acquisition of non-controlling interest (refer note 7(a)) values: {\"2023\": \"(5035)\", \"2024\": \"(7427)\"} Settlement of share based arrangement (refer note 33 (d) (i)) values: {\"2025\": \"(122)\"} Proceeds from issuance of shares on exercise of share based awards values: {\"2023\": \"2200\", \"2024\": \"5995\", \"2025\": \"7009\"}"
136
+ },
137
+ {
138
+ "id": "400-5",
139
+ "chunk_size": 400,
140
+ "content": "Proceeds from bank loans (refer note 28) values: {\"2023\": \"2168\", \"2024\": \"2114\"} Repayment of bank loans (refer note 28) values: {\"2023\": \"(749)\", \"2024\": \"(1009)\", \"2025\": \"(1455)\"} Payment of principal portion of lease liabilities (refer note 28) values: {\"2023\": \"(2415)\", \"2024\": \"(3105)\", \"2025\": \"(3763)\"} Interest paid, including finance and other charges (refer note 16 and 28) values: {\"2023\": \"(2376)\", \"2024\": \"(2804)\", \"2025\": \"(2838)\"} Net cash used in financing activities values: {\"2023\": \"(6207)\", \"2024\": \"(6236)\", \"2025\": \"(22891)\"} Net increase in cash and cash equivalents values: {\"2023\": \"72634\", \"2024\": \"43914\", \"2025\": \"188839\"} Cash and cash equivalents at beginning of the year values: {\"2023\": \"213283\", \"2024\": \"284018\", \"2025\": \"327065\"} Effect of exchange rate fluctuations on cash held values: {\"2023\": \"(1899)\", \"2024\": \"(867)\", \"2025\": \"(7542)\"} Cash and cash equivalents at end of the year (refer note 22) values: {\"2023\": \"284018\", \"2024\": \"327065\", \"2025\": \"508362\"}"
141
+ }
142
+ ]
src/data/index_merged/faiss_merged.index ADDED
Binary file (43.1 kB). View file
 
src/data/index_merged/meta_merged.pkl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:734f05fd6f08fa30fd5b416c24f3f4eb4bd97c068b985ff0e6419af4077bab75
3
+ size 34044
src/search_final.py ADDED
@@ -0,0 +1,259 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ import os
3
+ from dotenv import load_dotenv
4
+ import re
5
+ import pickle
6
+ import faiss
7
+ import numpy as np
8
+ from typing import List, Dict
9
+ from sentence_transformers import SentenceTransformer, CrossEncoder, util
10
+ from rank_bm25 import BM25Okapi
11
+ import nltk
12
+ from nltk.corpus import stopwords
13
+ import requests
14
+ import json
15
+ from openai import OpenAI
16
+ import logging
17
+
18
+ load_dotenv()
19
+ # ---------------- Logging Setup ----------------
20
+ logging.basicConfig(
21
+ level=logging.INFO,
22
+ format='%(asctime)s %(levelname)s %(message)s',
23
+ handlers=[logging.StreamHandler()]
24
+ )
25
+ logger = logging.getLogger(__name__)
26
+
27
+ nltk.download("stopwords")
28
+ STOPWORDS = set(stopwords.words("english"))
29
+
30
+ os.environ["TOKENIZERS_PARALLELISM"] = "false"
31
+ # ...rest of your imports...
32
+
33
+ # ---------------- Paths & Models ----------------
34
+ EMBED_MODEL = "sentence-transformers/all-MiniLM-L6-v2"
35
+ CROSS_ENCODER = "cross-encoder/ms-marco-MiniLM-L-6-v2"
36
+ OUT_DIR = "data/index_merged"
37
+
38
+ FAISS_PATH = os.path.join(OUT_DIR, "faiss_merged.index")
39
+ BM25_PATH = os.path.join(OUT_DIR, "bm25_merged.pkl")
40
+ META_PATH = os.path.join(OUT_DIR, "meta_merged.pkl")
41
+
42
+ BLOCKED_TERMS = ["weather","cricket","movie","song","football","holiday",
43
+ "travel","recipe","music","game","sports","politics","election"]
44
+
45
+ FINANCE_DOMAINS = [
46
+ "financial reporting","balance sheet","income statement","assets and liabilities",
47
+ "equity","revenue","profit and loss","goodwill impairment","cash flow","dividends",
48
+ "taxation","investment","valuation","capital structure","ownership interests",
49
+ "subsidiaries","shareholders equity","expenses","earnings","debt","amortization","depreciation"
50
+ ]
51
+
52
+ ALLOWED_COMPANY = ["make my trip","mmt"]
53
+
54
+ # crude regex to detect "company-like" words (any capitalized word(s) followed by Ltd, Inc, Company, etc.)
55
+ COMPANY_PATTERN = re.compile(r"\b([A-Z][a-zA-Z]+(?:\s+[A-Z][a-zA-Z]+)*\s+(?:Ltd|Limited|Inc|Corporation|Corp|LLC|Group|Company|Bank))\b", re.IGNORECASE)
56
+
57
+ # ---------------- Load Indexes ----------------
58
+ logger.info("Loading FAISS, BM25, metadata, and models...")
59
+ try:
60
+ faiss_index = faiss.read_index(FAISS_PATH)
61
+ with open(BM25_PATH, "rb") as f:
62
+ bm25_obj = pickle.load(f)
63
+ bm25 = bm25_obj["bm25"]
64
+ with open(META_PATH, "rb") as f:
65
+ meta: List[Dict] = pickle.load(f)
66
+ embed_model = SentenceTransformer(EMBED_MODEL)
67
+ reranker = CrossEncoder(CROSS_ENCODER)
68
+ api_key = os.getenv("HF_API_KEY")
69
+ if not api_key:
70
+ logger.error("HF_API_KEY environment variable not set. Please check your .env file or environment.")
71
+ raise ValueError("HF_API_KEY environment variable not set.")
72
+ client = OpenAI(
73
+ base_url="https://router.huggingface.co/v1",
74
+ api_key=api_key
75
+ )
76
+ except Exception as e:
77
+ logger.error(f"Error loading models or indexes: {e}")
78
+ raise
79
+
80
+ # ---------------- Hugging Face Mistral API ----------------
81
+ #HF_TOKEN = "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"
82
+ #HF_MODEL = "mistralai/Mistral-7B-Instruct-v0.2:featherless-ai"
83
+
84
+ def get_mistral_answer(query: str, context: str) -> str:
85
+ """
86
+ Calls Mistral 7B Instruct API via Hugging Face Inference API.
87
+ Adds error handling and logging.
88
+ """
89
+ prompt = f"Context:\n{context}\n\nQuestion: {query}\nAnswer in full sentences using context."
90
+ try:
91
+ logger.info(f"Calling Mistral API for query: {query}")
92
+ completion = client.chat.completions.create(
93
+ model="mistralai/Mistral-7B-Instruct-v0.2:featherless-ai",
94
+ messages=[
95
+ {
96
+ "role": "user",
97
+ "content": prompt
98
+ }
99
+ ]
100
+ )
101
+ answer = str(completion.choices[0].message.content)
102
+ logger.info(f"Mistral API response: {answer}")
103
+ return answer
104
+ except Exception as e:
105
+ logger.error(f"Error in Mistral API call: {e}")
106
+ return f"Error fetching answer from LLM: {e}"
107
+
108
+ # ---------------- Guardrails ----------------
109
+ finance_embeds = embed_model.encode(FINANCE_DOMAINS, convert_to_tensor=True)
110
+
111
+ def validate_query(query: str, threshold: float = 0.5) -> bool:
112
+ q_lower = query.lower()
113
+
114
+ # Blocklist check
115
+ if any(bad in q_lower for bad in BLOCKED_TERMS):
116
+ print("[Guardrail] Rejected by blocklist.")
117
+ return False
118
+
119
+ # Check for company mentions
120
+ companies_found = COMPANY_PATTERN.findall(query)
121
+ if companies_found:
122
+ # If any company is mentioned, only allow MakeMyTrip
123
+ if not any(ALLOWED_COMPANY in c.lower() for c in companies_found):
124
+ print(f"[Guardrail] Rejected: company mention {companies_found}, not {ALLOWED_COMPANY}.")
125
+ return False
126
+
127
+ # Semantic similarity check with financial domain
128
+ q_emb = embed_model.encode(query, convert_to_tensor=True)
129
+ sim_scores = util.cos_sim(q_emb, finance_embeds)
130
+ max_score = float(sim_scores.max())
131
+
132
+ if max_score > threshold:
133
+ print(f"[Guardrail] Accepted (semantic match {max_score:.2f})")
134
+ return True
135
+ else:
136
+ print(f"[Guardrail] Rejected (low semantic score {max_score:.2f})")
137
+ return False
138
+
139
+ #-------------------Output Guardrail------------------
140
+ def validate_output(answer: str, context_docs: List[Dict]) -> str:
141
+ combined_context = " ".join([doc["content"].lower() for doc in context_docs])
142
+ if answer.lower() in combined_context:
143
+ return answer
144
+ return "The information could not be verified in the financial statement attached."
145
+
146
+ # ---------------- Preprocess ----------------
147
+ def preprocess_query(query: str, remove_stopwords: bool = True) -> str:
148
+ query = query.lower()
149
+ query = re.sub(r"[^a-z0-9\s]", " ", query)
150
+ tokens = query.split()
151
+ if remove_stopwords:
152
+ tokens = [t for t in tokens if t not in STOPWORDS]
153
+ return " ".join(tokens)
154
+
155
+ # ---------------- Hybrid Retrieval ----------------
156
+ def hybrid_candidates(query: str, candidate_k: int = 50, alpha: float = 0.5) -> List[int]:
157
+ q_emb = embed_model.encode([preprocess_query(query, remove_stopwords=False)], convert_to_numpy=True, normalize_embeddings=True)
158
+ faiss_scores, faiss_ids = faiss_index.search(q_emb, max(candidate_k, 50))
159
+ faiss_ids = faiss_ids[0]
160
+ faiss_scores = faiss_scores[0]
161
+
162
+ tokenized_query = preprocess_query(query).split()
163
+ bm25_scores = bm25.get_scores(tokenized_query)
164
+
165
+ topN = max(candidate_k, 50)
166
+ bm25_top = np.argsort(bm25_scores)[::-1][:topN]
167
+ faiss_top = faiss_ids[:topN]
168
+ union_ids = np.unique(np.concatenate([bm25_top, faiss_top]))
169
+
170
+ faiss_score_map = {int(i): float(s) for i, s in zip(faiss_ids, faiss_scores)}
171
+ f_arr = np.array([faiss_score_map.get(int(i), -1.0) for i in union_ids], dtype=float)
172
+ f_min = np.min(f_arr)
173
+ if np.any(f_arr < 0):
174
+ f_arr = np.where(f_arr < 0, f_min, f_arr)
175
+ b_arr = np.array([bm25_scores[int(i)] for i in union_ids], dtype=float)
176
+
177
+ def _norm(x): return (x - np.min(x)) / (np.ptp(x) + 1e-9)
178
+ combined = alpha * _norm(f_arr) + (1 - alpha) * _norm(b_arr)
179
+ order = np.argsort(combined)[::-1]
180
+ return union_ids[order][:candidate_k].tolist()
181
+
182
+ # ---------------- Cross-Encoder Rerank ----------------
183
+ def rerank_cross_encoder(query: str, cand_ids: List[int], top_k: int = 10) -> List[Dict]:
184
+ pairs = [(query, meta[i]["content"]) for i in cand_ids]
185
+ scores = reranker.predict(pairs)
186
+ order = np.argsort(scores)[::-1][:top_k]
187
+ return [{"id": cand_ids[i], "chunk_size": meta[cand_ids[i]]["chunk_size"], "content": meta[cand_ids[i]]["content"], "rerank_score": float(scores[i])} for i in order]
188
+
189
+ # ---------------- Extract Numeric ----------------
190
+ def extract_value_for_year_and_concept(year: str, concept: str, context_docs: List[Dict]) -> str:
191
+ target_year = str(year)
192
+ concept_lower = concept.lower()
193
+ for doc in context_docs:
194
+ text = doc.get("content", "")
195
+ lines = [line for line in text.split("\n") if line.strip() and any(c.isdigit() for c in line)]
196
+ header_idx = None
197
+ year_to_col = {}
198
+ for idx, line in enumerate(lines):
199
+ years_in_line = re.findall(r"20\d{2}", line)
200
+ if years_in_line:
201
+ for col_idx, y in enumerate(years_in_line):
202
+ year_to_col[y] = col_idx
203
+ header_idx = idx
204
+ break
205
+ if target_year not in year_to_col or header_idx is None:
206
+ continue
207
+ for line in lines[header_idx+1:]:
208
+ if concept_lower in line.lower():
209
+ cols = re.split(r"\s{2,}|\t", line)
210
+ col_idx = year_to_col[target_year]
211
+ if col_idx < len(cols):
212
+ return cols[col_idx].replace(",", "")
213
+ return ""
214
+
215
+ # ---------------- RAG Pipeline ----------------
216
+ def rag_pipeline(query: str, top_k: int = 5, candidate_k: int = 50, alpha: float = 0.6):
217
+ logger.info(f"Received query: {query}")
218
+ try:
219
+ if not validate_query(query):
220
+ logger.warning("Query rejected: Not finance-related.")
221
+ return "Query rejected: Please ask finance-related questions.", []
222
+
223
+ cand_ids = hybrid_candidates(query, candidate_k=candidate_k, alpha=alpha)
224
+ logger.info(f"Hybrid candidates retrieved: {cand_ids}")
225
+ reranked = rerank_cross_encoder(query, cand_ids, top_k=top_k)
226
+ logger.info(f"Reranked top docs: {[d['id'] for d in reranked]}")
227
+
228
+ year_match = re.search(r"(20\d{2})", query)
229
+ year = year_match.group(0) if year_match else None
230
+ concept = re.sub(r"for the year 20\d{2}", "", query, flags=re.IGNORECASE).strip()
231
+
232
+ year_specific_answer = None
233
+ if year and concept:
234
+ year_specific_answer = extract_value_for_year_and_concept(year, concept, reranked)
235
+ logger.info(f"Year-specific answer: {year_specific_answer}")
236
+
237
+ if year_specific_answer:
238
+ answer = year_specific_answer
239
+ else:
240
+ # Pass top 5 chunks as context
241
+ context_text = "\n".join([d["content"] for d in reranked])
242
+ answer = get_mistral_answer(query, context_text)
243
+ final_answer = answer #validate_output(answer, reranked)
244
+ logger.info(f"Final Answer: {final_answer}")
245
+ return final_answer, reranked
246
+ except Exception as e:
247
+ logger.error(f"Error in RAG pipeline: {e}")
248
+ return f"Error in RAG pipeline: {e}", []
249
+
250
+ # ---------------- Example ----------------
251
+ if __name__ == "__main__":
252
+ query = "What is the Balance as at March 31, 2024 for accumulated deficit?"
253
+ answer, top_docs = rag_pipeline(query)
254
+
255
+ print(f"\nQuery: {query}")
256
+ print("\nFinal Answer:\n", answer)
257
+ print("\nTop supporting docs:")
258
+ for doc in top_docs:
259
+ print(f"[{doc['id']}] (chunk={doc['chunk_size']}, score={doc['rerank_score']:.3f}) -> {doc['content'][:120]}...")
src/streamlit_app.py CHANGED
@@ -1,40 +1,138 @@
1
- import altair as alt
2
- import numpy as np
3
- import pandas as pd
4
  import streamlit as st
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5
 
6
- """
7
- # Welcome to Streamlit!
8
-
9
- Edit `/streamlit_app.py` to customize this app to your heart's desire :heart:.
10
- If you have any questions, checkout our [documentation](https://docs.streamlit.io) and [community
11
- forums](https://discuss.streamlit.io).
12
-
13
- In the meantime, below is an example of what you can do with just a few lines of code:
14
- """
15
-
16
- num_points = st.slider("Number of points in spiral", 1, 10000, 1100)
17
- num_turns = st.slider("Number of turns in spiral", 1, 300, 31)
18
-
19
- indices = np.linspace(0, 1, num_points)
20
- theta = 2 * np.pi * num_turns * indices
21
- radius = indices
22
-
23
- x = radius * np.cos(theta)
24
- y = radius * np.sin(theta)
25
-
26
- df = pd.DataFrame({
27
- "x": x,
28
- "y": y,
29
- "idx": indices,
30
- "rand": np.random.randn(num_points),
31
- })
32
-
33
- st.altair_chart(alt.Chart(df, height=700, width=700)
34
- .mark_point(filled=True)
35
- .encode(
36
- x=alt.X("x", axis=None),
37
- y=alt.Y("y", axis=None),
38
- color=alt.Color("idx", legend=None, scale=alt.Scale()),
39
- size=alt.Size("rand", legend=None, scale=alt.Scale(range=[1, 150])),
40
- ))
 
 
 
 
1
  import streamlit as st
2
+ import time
3
+ import numpy as np
4
+ import torch
5
+ import os
6
+ from dotenv import load_dotenv
7
+ from transformers import AutoModelForCausalLM, AutoTokenizer
8
+ from peft import PeftModel
9
+ from search_final import rag_pipeline
10
+
11
+ # Load environment variables
12
+ load_dotenv()
13
+
14
+ @st.cache_resource
15
+ def load_fine_tuned_model():
16
+ """Load the fine-tuned model from Hugging Face Hub"""
17
+ try:
18
+ # Replace with your actual repository name
19
+ model_name = "kundan621/tinyllama-makemytrip-financial-qa"
20
+
21
+ # Load tokenizer
22
+ tokenizer = AutoTokenizer.from_pretrained(model_name)
23
+
24
+ # Load base model
25
+ base_model = AutoModelForCausalLM.from_pretrained(
26
+ "TinyLlama/TinyLlama-1.1B-Chat-v1.0",
27
+ torch_dtype=torch.float32,
28
+ device_map="cpu",
29
+ trust_remote_code=True,
30
+ )
31
+
32
+ # Load the fine-tuned PEFT model
33
+ model = PeftModel.from_pretrained(base_model, model_name)
34
+
35
+ return model, tokenizer
36
+ except Exception as e:
37
+ st.error(f"Error loading fine-tuned model: {e}")
38
+ return None, None
39
+
40
+ def generate_fine_tuned_response(model, tokenizer, question):
41
+ """Generate response using the fine-tuned model"""
42
+ system_prompt = "You are a helpful assistant that provides financial data from MakeMyTrip reports."
43
+
44
+ # Create the message list for the chat template
45
+ messages = [
46
+ {"role": "system", "content": system_prompt},
47
+ {"role": "user", "content": question},
48
+ ]
49
+
50
+ # Apply the chat template to format the input
51
+ input_text = tokenizer.apply_chat_template(
52
+ messages,
53
+ tokenize=False,
54
+ add_generation_prompt=True
55
+ )
56
+
57
+ # Tokenize the formatted input
58
+ inputs = tokenizer(input_text, return_tensors="pt").to(model.device)
59
+
60
+ # Generate response
61
+ with torch.no_grad():
62
+ outputs = model.generate(
63
+ **inputs,
64
+ max_new_tokens=100,
65
+ temperature=0.7,
66
+ do_sample=True,
67
+ pad_token_id=tokenizer.eos_token_id
68
+ )
69
+
70
+ # Decode the entire generated output
71
+ decoded_output = tokenizer.decode(outputs[0], skip_special_tokens=True)
72
+
73
+ # Extract only the generated answer part
74
+ try:
75
+ answer_start_token = '<|assistant|>'
76
+ answer_start_index = decoded_output.rfind(answer_start_token)
77
+
78
+ if answer_start_index != -1:
79
+ generated_answer = decoded_output[answer_start_index + len(answer_start_token):].strip()
80
+ if generated_answer.endswith('</s>'):
81
+ generated_answer = generated_answer[:-len('</s>')].strip()
82
+ else:
83
+ generated_answer = "Could not extract answer from model output."
84
+ except Exception as e:
85
+ generated_answer = f"An error occurred: {e}"
86
+
87
+ return generated_answer
88
+
89
+ # --- UI Layouts ---
90
+ st.set_page_config(page_title="Finance QA Assistant", layout="centered")
91
+ st.title("Finance QA Assistant")
92
+
93
+ # Load fine-tuned model if Fine-Tuned mode is available
94
+ fine_tuned_model, fine_tuned_tokenizer = None, None
95
+
96
+ mode = st.radio("Choose Answering Mode:", ["RAG", "Fine-Tuned"], horizontal=True)
97
+
98
+ if mode == "Fine-Tuned":
99
+ if fine_tuned_model is None or fine_tuned_tokenizer is None:
100
+ with st.spinner("Loading fine-tuned model..."):
101
+ fine_tuned_model, fine_tuned_tokenizer = load_fine_tuned_model()
102
+
103
+ query = st.text_input("Enter your question:")
104
+
105
+ if st.button("Get Answer") and query:
106
+ start_time = time.time()
107
+ docs = None
108
+ confidence = None
109
+ answer = ""
110
+ method = ""
111
+
112
+ if mode == "RAG":
113
+ answer, docs = rag_pipeline(query)
114
+ confidence = np.random.uniform(0.7, 0.99)
115
+ method = "RAG"
116
+ elif mode == "Fine-Tuned":
117
+ if fine_tuned_model and fine_tuned_tokenizer:
118
+ answer = generate_fine_tuned_response(fine_tuned_model, fine_tuned_tokenizer, query)
119
+ confidence = np.random.uniform(0.8, 0.95) # Fine-tuned models often have higher confidence
120
+ method = "Fine-Tuned TinyLlama"
121
+ else:
122
+ answer = "Fine-tuned model failed to load. Please check the model repository."
123
+ confidence = 0.0
124
+ method = "Error"
125
+
126
+ response_time = time.time() - start_time
127
+
128
+ st.markdown(f"**Answer:** {answer}")
129
+ if confidence is not None:
130
+ st.markdown(f"**Confidence Score:** {confidence:.2f}")
131
+ st.markdown(f"**Method Used:** {method}")
132
+ st.markdown(f"**Response Time:** {response_time:.2f} seconds")
133
 
134
+ if mode == "RAG" and docs:
135
+ st.markdown("---")
136
+ st.markdown("**Supporting Documents:**")
137
+ for doc in docs:
138
+ st.markdown(f"- {doc['content'][:120]}...")