English

Extracting Knowledge Graphs from User Stories using LangChain

Software Engineering 2025-06-16 v1 Artificial Intelligence

Abstract

This thesis introduces a novel methodology for the automated generation of knowledge graphs from user stories by leveraging the advanced capabilities of Large Language Models. Utilizing the LangChain framework as a basis, the User Story Graph Transformer module was developed to extract nodes and relationships from user stories using an LLM to construct accurate knowledge graphs.This innovative technique was implemented in a script to fully automate the knowledge graph extraction process. Additionally, the evaluation was automated through a dedicated evaluation script, utilizing an annotated dataset for assessment. By enhancing the visualization and understanding of user requirements and domain concepts, this method fosters better alignment between software functionalities and user expectations, ultimately contributing to more effective and user-centric software development processes.

Keywords

Cite

@article{arxiv.2506.11020,
  title  = {Extracting Knowledge Graphs from User Stories using LangChain},
  author = {Thayná Camargo da Silva},
  journal= {arXiv preprint arXiv:2506.11020},
  year   = {2025}
}

Comments

Master thesis work

R2 v1 2026-07-01T03:14:09.907Z