Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Replication Package for Paper Under Review

This repository provides the replication package for our paper on compressing prompts of RAG-based coding task.

The full paper (ACL 2026) is available on arXiv:
https://arxiv.org/abs/2502.14925

Dataset Links:

Compression Training Set Links:

Hugginggce Link:

Framework:

CodePromptZip
  └──  Program Analysis    # JavaParser-based method to generate compressed code at varying compression ratios, constructing diverse code compression datasets.
       └── finetuning_data # Stores datasets used for fine-tuning models on compressed code representations.
  └──  Retrieval
       ├── preprocess.py   # Uses the Sparse Retriever to retrieve code examples and their compressed versions.
       └── retrieved_examples/ # JSONL files storing retrieved examples under the key demonstration.'demonstration'
  └──  Construction
       ├── construction.py # Uses retrieved examples to construct retrieval-augmented generation (RAG) prompts with predefined templates.
       └── prompt/         # JSONL files containing prompts with compressed or original code examples for the base LLM.
  └──  Generation
       ├── generation.py   # Sends requests to the base LLM to obtain responses.
       ├── evaluation.py   # Evaluates the quality of generated results.
       └── results         # Stores generated results for analysis.
  └──  CodeT5Copy
       ├── model.py  
       └── finetuning.py   # Fine-tunes CodeT5Copy using the constructed code compression datasets.    

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages