AAP-SQL 候選重排序器是完整 AAP-SQL 設定中的 cross-encoder。它對欄位檢索器召回的候選欄位重新評分,保留前 10 個核心欄位供後續提示增強使用。
AAP-SQL candidate reranker is the cross-encoder used after the first stage of schema retrieval. It scores the retrieved candidate columns and retains the top 10 core columns for prompt augmentation.
The complete AAP-SQL workflow, research method terminology, BIRD directory layout, and reproduction instructions are maintained in the
GitHub publication branch.
1from sentence_transformers import CrossEncoder
2
3model = CrossEncoder("TommyPanLab/AAP-SQL-Candidate-Reranker")
4scores = model.predict([ ("user question", "table.column: column description") ])
The training examples were derived from the BIRD benchmark. Review the
BIRD project terms before using the model. No additional license has been declared for these fine-tuned weights; the upstream model and dataset terms still apply.