Downloads · 30 days
7
8% of all-time downloads
nvsngurram/cai-group123-assignment
cai-group123-assignment is a text generation model from nvsngurram. Use it when you need the model to write or continue text. It is set up for transformers.
Comparative Financial QA System: RAG vs Fine-Tuning
Downloads · 30 days
7
8% of all-time downloads
All-time downloads
92
Public
Parameters
124M
498 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors498 MB · 99%
From the Hugging Face model README
Comparative Financial QA System: RAG vs Fine-Tuning
Objective: Develop and compare two systems for answering questions based on company financial statements (last two years):
Retrieval-Augmented Generation (RAG) Chatbot: Combines document retrieval and generative response. Fine-Tuned Language Model (FT) Chatbot: Directly fine-tunes a small open-source language model on financial Q&A.
This model is Desinged as part of Conversation AI Asignment 2, we used IRFC Annual reports of 2023-24 and 2024-25 and extracted the data then used for model training and evaluation.
Question and Answer based System for the learning of implementation of RAG and Fine-Tuning the model.
Used to Analyse the pdf documents, let's say financial reports of a company can be analysed and give summary of it based on the user query in a short and compact manner.
[More Information Needed]
[More Information Needed]
responsive text generation
[More Information Needed]
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
Use the code below to get started with the model. Step 1: clone the git repo into local Step 2: install the required libraries by running pip install -r requirement.txt Step 3: check if Annual reports are under data/annual_reports and QandA.txt in the data/raw/QandA.txt Step 4: run the data_extraction.py(python src/data_extraction.py) script to convert from .PDF to .txt Step 5: run the rag_ft_qa.py(python src/rag_ft_qa.py) script to pre-process, segmentation of data, tokenization, creation of model, pre-train the model then Implement of RAG techniques(cross encoder), Fine-tune the model with dataset prepared, re-ranking the results and extracting best of it, compared the results and represented in tabular format. Step 6: run the streamlit_cli.py(python streamlit_cli.py) script to run the application on streamlit
[More Information Needed]
Training moto is to train the model with sample 10 questions and evaluate the performace after training the model.
used Annual Report 2023-24.pdf and Annual Report 2024-25.pdf annual reports for raw data, then converted into .txt files and then segmented and trained with 400 chunck dataset.
[More Information Needed]
[More Information Needed]
[More Information Needed]
[More Information Needed]
[More Information Needed]
[More Information Needed]

[More Information Needed]
Carbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019).
[More Information Needed]
[More Information Needed]
[More Information Needed]
[More Information Needed]
BibTeX:
[More Information Needed]
APA:
[More Information Needed]
[More Information Needed]
[More Information Needed]
[More Information Needed]
[More Information Needed]