langextract icon indicating copy to clipboard operation
langextract copied to clipboard

How to "Extract aligned spans from a Question and an Answer"?

Open tin-xai opened this issue 4 months ago • 2 comments

Hi, I found LangExtract is really relevant to my work HoT (https://highlightedchainofthought.github.io/) that tries to extract semantically similar phrases between question and answer. And my method improve the accuracy over multiple prompting methods as well.

I did some modification to make LangExtract work with HoT, and it works pretty well:

Image

If you find this useful, please cite our work (HoT) and LangExtract: @article{nguyen2025hot, title={HoT: Highlighted Chain of Thought for Referencing Supporting Facts from Inputs}, author={Nguyen, Tin and Bolton, Logan and Taesiri, Mohammad Reza and Nguyen, Anh Totti}, journal={arXiv preprint arXiv:2503.02003}, year={2025} }

LangExtract. (2024). Google Research. Retrieved from https://github.com/google/langextract

tin-xai avatar Aug 18 '25 19:08 tin-xai

Link to this work: https://github.com/tin-xai/HoT_with_LangExtract

tin-xai avatar Aug 18 '25 19:08 tin-xai

Thanks for sharing your library @tin-xai - Looks like very interesting work!

aksg87 avatar Aug 21 '25 05:08 aksg87