Skip to content

mongodb-industry-solutions/Credit_score

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GenAI Credit Scoring Demo

Credit scoring has always faced persistent challenges, from biases and discrimination to limitations in adapting to evolving economic landscapes. The challenges of traditional models are being overcome through the adoption of alternative credit scoring methods by offering a more inclusive and nuanced assessment of creditworthiness. This prompted a paradigm shift towards leveraging artificial intelligence (AI) and alternative data to reshape the foundations of credit scoring. In this solution, we are using a machine learning algorithm to create a customer/user banking profile by combining relevant data points. Below you can see the architectural diagram of the data processing pipeline for the predicting probability of delinquency and credit scoring.

image

Note

The notebooks present in this image are the ones coming from this repo. You do not need them to proceed with the demo's installation.

If you want to delve into more detail, our blog sheds light on credit scoring fundamentals, challenges with traditional systems, and the role of AI in creating more inclusive models.

Read the Blog!

This GitHub repository presents a demo in which you will be able to log on to a client that has already submitted a Credit card application. This approach can be applied to other credit products – like personal loans, mortgages, corporate loans, and trade finance credit lines – and their applications without necessarily confining them to a credit card product only. Its main functionality is for the customer to use generative AI (GenAI) to get a detailed explanation of why the application was rejected. We will also leverage MongoDB vector search capabilities to provide recommendations of different cards that might be more adapted for the customer.

Warning

This demo uses LLMs. We will be using Fireworks.ai and therefore will need an API key, which is not included here. However, you can still sign up for free with your Google account here. Fireworks.ai is a partner of MongoDB AI Applications Program (MAAP), which you can read more about here. You can also choose to use Google Gemini by switching to the "main" branch.

Installation of the Demo

The installation is divided into five:

{
  "mappings": {
    "dynamic": true,
    "fields": {
      "embedding": [
        {
          "dimensions": 768,
          "similarity": "euclidean",
          "type": "knnVector"
        }
      ]
    }
  }
}

Build the backend and frontend with Docker (faster)

To build the Docker images and start the services, run the following command:

make build

Stopping the Application

To stop all running services, use the command:

make stop

Cleaning Up

To remove all images and containers associated with the application, execute:

make clean

Summary

This demonstration serves as an interesting example for how the adoption of alternative credit scoring methods, leveraging artificial intelligence, can reshape traditional credit scoring experience.

In the previous sections, we explored how to:

  • To insert your own dataset
  • Set up your collection for vector search.

Are you prepared to harness these capabilities for your projects? Should you encounter any roadblocks or have questions, our vibrant developer forums are here to support you every step of the way. Or if you prefer to contact us directly at industry.solutions@mongodb.com.

You can also dive into the following resources:

Disclaimer

This product is not a MongoDB official product. Use at your own risk!

Authors

  • Ashwin Gangadhar, Solutions Architect, Partner Solutions, MongoDB
  • Wei You Pan, Global Director, Financial Industry Solutions, MongoDB
  • Paul Claret, Senior Specialist, Industry Solutions, MongoDB

Feel free to refer to the original repo for more content like this one.