HackerRank Projects for RAG enables you to create real-world, project-based questions to assess candidates' ability to implement Retrieval-Augmented Generation (RAG) systems. This feature helps you identify candidates with strong skills in retrieving relevant information, integrating it with generative AI models, and optimizing response accuracy.

With this capability, you can use predefined RAG assessments that evaluate key skills such as:

Additionally, you can create custom RAG-based questions, tailoring them to assess candidates on specific retrieval, augmentation, and response generation techniques relevant to your use case.

Steps to Create a RAG Question 

image.png

Step 1: Environment

Step 2: Project Setup

There are three steps in setting up a project: 

Select Project 

Once the IDE loads, you can set up your question project using one of the following options:

  1. Uploading a Zip: This option allows you to create a question by uploading the project file in ZIP format. The file size can be up to 5MB.  

  2. Clone from Github: This option lets you clone a project from your private or public Git repository. After selecting the Git option, you must provide a link to your repository source. If the repository is private, the IDE will need permission to connect with it using a one-time token. We do not save your GitHub credentials in our system at any time.

  3. Use sample project: When you choose this option, a default sample project question is added to the IDE. You can use this sample project to build your question.

Note: Do not use sample projects in a test. These projects are designed only to serve as sample projects, not to evaluate candidate skills.

IDE and Data Source Setup

When setting up a Retrieval-Augmented Generation (RAG) question, you must define a data source from which the model can retrieve information. You can choose between:

image.png

Uploading Files as a Data Source

The platform allows you to upload and manage data files directly through the UI. These files will be accessible in the IDE for further editing and processing.

File Size Limits:

Token Calculation and Warnings:

Using a Database as a Data Source

You can upload structured data as .db or .sql files for database-based storage. This allows you to manage and query your data efficiently within the project.

Data Source Limits and Constraints

Setting up an efficient data source ensures your RAG model functions optimally while staying within these limits.

IDE setup 

Default Open Files 
Read-Only Files

Scoring Settings 

Validation

Network Indicator

You can monitor the Network Indicator within the IDE to ensure that you don't encounter any issues while creating a project question. 

Blocked Domains Indicator

If your project has any blacklisted domains, the IDE will notify you about the same.

You can click on View Blocked Domains to check the domain URLs. 

Step 3: Question Details 

On the Question Details tab, specify the following:

Score

Question Type

50 points

For an easy question that can be solved in 15 minutes

75 points

For a medium question that can be solved in 30 minutes

100 points

For a hard question that can be solved in 45 to 60 minutes

You can check the candidate preview after completing the question creation to understand how the question is presented in a test. 

Note: The questions you create are stored in the HackerRank Library under the "My Company questions" section.