Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
57 commits
Select commit Hold shift + click to select a range
35d080d
Initial commit
AseelOmer Oct 10, 2025
770c403
adding the model evaluation metrics document
CaesarGhazi Oct 16, 2025
b751233
updating the model evaluation metrics document
CaesarGhazi Oct 16, 2025
7c6aead
updates
AseelOmer Oct 17, 2025
323f0c4
Merge pull request #3 from MIT-Emerging-Talent/testing_metrics
AseelOmer Oct 18, 2025
b62efdd
Merge pull request #5 from MIT-Emerging-Talent/model
doctorbanu Oct 23, 2025
7af9875
docs(apollo11/readme): add overview and instructions for Apollo 11 te…
doctorbanu Oct 28, 2025
3cd470f
docs(apollo11/source): add selected Apollo 11 text in txt format for …
doctorbanu Oct 28, 2025
07a57a1
docs(apollo11/json): add structured JSON version of Apollo 11 test da…
doctorbanu Oct 28, 2025
9646208
docs(apollo11/prompts):add 15 standardized test prompts for dataset e…
doctorbanu Oct 28, 2025
21e6af8
docs(apollo11/rationale): add detailed explanation of dataset selecti…
doctorbanu Oct 28, 2025
71b27d9
Merge pull request #9 from MIT-Emerging-Talent/test_prompts
CaesarGhazi Oct 28, 2025
7eb5da6
fix(apollo11/prompts): correct missing line breaks
doctorbanu Oct 28, 2025
3d75910
fix(apollo11/readme): correct missing line breaks
doctorbanu Oct 28, 2025
d25a40d
Fix (apollo11/readme):fix markdown line length error
doctorbanu Oct 29, 2025
3d443ee
Fix(apollo11/readme): fix trailing spaces error in README.md
doctorbanu Oct 29, 2025
0a5e020
adding the model and json test file
CaesarGhazi Oct 29, 2025
f965ed4
adding the README for the RAG + Distilled folder
CaesarGhazi Oct 29, 2025
7744549
fixing linting errors
CaesarGhazi Oct 29, 2025
660397c
fixing formatting errors
CaesarGhazi Oct 29, 2025
a2f371e
Merge branch 'main' into rag_and_distilled_model
CaesarGhazi Oct 29, 2025
77266f9
docs(meeting_minutes): create the folder and add milestone 1 meeting …
doctorbanu Oct 29, 2025
e6df924
Merge pull request #11 from MIT-Emerging-Talent/rag_and_distilled_model
AseelOmer Oct 30, 2025
47de2f1
updates
AseelOmer Oct 30, 2025
794bf86
updates
AseelOmer Oct 30, 2025
06baa5b
updates
AseelOmer Oct 30, 2025
a5952aa
fix: rename folder to snake_case (commercial_models)
AseelOmer Oct 30, 2025
0234d83
fix: rename folder to snake_case (commercial_models)
AseelOmer Oct 30, 2025
78b2447
fix: rename folder to snake_case (commercial_models)
AseelOmer Oct 30, 2025
7007c0a
temp rename to force case-sensitive change
AseelOmer Oct 30, 2025
1dc6416
docs(meeting_minutes): added milestone 2 meeting notes to the relevan…
reunicorn1 Nov 1, 2025
d2ae928
Merge pull request #15 from MIT-Emerging-Talent/meeting_minutes
doctorbanu Nov 1, 2025
d0086e1
updates
AseelOmer Nov 5, 2025
c179cb4
readme
AseelOmer Nov 5, 2025
d8d06d0
Merge branch 'main' of https://github.com/MIT-Emerging-Talent/ELO2_GR…
AseelOmer Nov 5, 2025
2ff4e74
fixed links
AseelOmer Nov 6, 2025
801ef10
fixed links
AseelOmer Nov 7, 2025
79b6ba7
fixed links
AseelOmer Nov 7, 2025
f6e241e
fixed links
AseelOmer Nov 7, 2025
1c6fb52
fixed links
AseelOmer Nov 7, 2025
99a93a0
updates
AseelOmer Nov 7, 2025
8f3a14f
fix(models.md): fix broken link
doctorbanu Nov 7, 2025
de33198
Merge pull request #14 from MIT-Emerging-Talent/Commercial-models
doctorbanu Nov 7, 2025
2cf4039
docs(apollo11): add paraphrasing & creative generation categories and…
doctorbanu Nov 8, 2025
33a5b0c
chore(apollo11/json): add master and task-specific instructions, para…
doctorbanu Nov 8, 2025
aebe476
docs(apollo11/prompts): add paraphrasing & creative generation prompt…
doctorbanu Nov 9, 2025
f0f5512
docs(apollo11/images): add images folder to apollo11 folder
doctorbanu Nov 9, 2025
a42eb53
docs(apollo11): add images to relevant files
doctorbanu Nov 9, 2025
fa0cdf5
Merge pull request #18 from MIT-Emerging-Talent/test_prompts
CaesarGhazi Nov 10, 2025
097b18b
bla
AseelOmer Nov 13, 2025
3a45a42
Remove sensitive .env file and update .gitignore
AseelOmer Nov 13, 2025
58cfae4
Ensure .env is ignored
AseelOmer Nov 13, 2025
467af4b
Merge main into phi3_nod to enable PR
AseelOmer Nov 13, 2025
5cd38e4
Add QUIN 2.5 RAG pipeline with recursive editing and energy tracking
reunicorn1 Nov 19, 2025
ff7b7fb
fixing linting errors in qwen man.ipynb
reunicorn1 Dec 3, 2025
7ac880e
ruff formating to phi and qwen models
reunicorn1 Dec 3, 2025
b349b51
removing phi3 folder
reunicorn1 Dec 3, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified .gitignore
Binary file not shown.
57 changes: 57 additions & 0 deletions qwen_model/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
<!-- markdownlint-disable MD013 -->
# QwenModel: Qwen 2.5 + RAG + Recursive Editing

This project experiments with the open-sourced model **Qwen 2.5** (2.5B parameters) combined with **Retrieval-Augmented Generation (RAG)** and **recursive editing** to test its performance across different prompt categories from the Apollo 11 dataset.

## Project Structure

* **main.ipynb** – The core notebook where Qwen 2.5 is set up, RAG is integrated, and recursive editing is implemented.
* **output.md** – Contains the final prompts and responses generated through recursive editing, along with tracked energy and CO₂ emission metrics.

## Workflow Overview

### 1. Prompt Setup

The notebook defines three structured prompts for iterative refinement:

* **Draft Prompt** – Produces the initial answer.
* **Critic Prompt** – Analyzes weaknesses in the draft.
* **Refiner Prompt** – Improves the answer based on the critique.

This setup enables controlled recursive editing, especially useful for summarization, creative writing, and paraphrasing.

### 2. RAG Pipeline

* Connected to the Hugging Face API to generate **embeddings**.
* Built a **vector index** from the Apollo 11 dataset.
* Prepared a **retriever** to supply relevant context for Qwen.

### 3. Qwen Integration

A custom function handles:

* Retrieval of context
* Construction of Qwen API calls
* Application of recursive editing logic (3 iterations)

### 4. Energy Tracking

Each query is wrapped with **CodeCarbon** to record:

* CPU usage
* Energy consumption
* CO₂ emissions

All tracked metrics appear in `output.md`.

## Output

The final markdown file contains:

* The prompts used
* Recursive-editing improved final responses
* Per-question energy and emission statistics

## Purpose

This setup provides a compact testing environment to evaluate Qwen 2.5’s performance with RAG and recursive editing, enabling comparison with larger or alternative models.
Loading
Loading