Uppsats
PReFoRCE-ES: Natural Language to Elasticsearch : An Agent Specialized for ES Query Generation in a Complex Business Context
Kandidat-uppsats
KTH/Hälsoinformatik och logistik
Publicerad: 2026
Språk: Engelska
Sammanfattning
Enabling non-technical users to query large-scale databases using natural language is a growing challenge in the field of data analysis. This study addresses the problem of generating correctly executable code for the Elasticsearch database, where standard language models often fail due to complex data structures. The proposed solution is PReFoRCE-ES, an iterative agentic architecture developed using LangChain4j which is a Java framework. This is an adapted version of ReFoRCE for non-relational databases that use context compression, self-refinement and consensus enforcement to validate generated queries prior to execution. The Agent was evaluated on a dataset within the telecommunications domain and benchmarked against a baseline GPT-4o. Results demonstrate that the agent outperforms the baseline on complex reasoning tasks, achieving an Execution Accuracy of 52.5% on reasoning queries and 80% on standard retrieval tasks, compared to the baseline’s 0% .The study concludes that agentic workflows are necessary for ensuring reliability in complex logical operations, though this comes at the expense of increased latency.
Information
- Författare
- Olsson, Herman, Afshar, Mahsih
- Lärosäte / institution
- KTH/Hälsoinformatik och logistik
- Publiceringsdatum
- 2026
- Uppsatstyp
- Kandidat-uppsats
- Språk
- Engelska
Utforska vidare
Liknande uppsatser
Uppsatser med liknande ämnen och nyckelord.
Yrkesexamen på avancerad nivå, Uppsala universitet/Avdelningen för systemteknik
Vigholm, Albin
Publicerad: 2026
Master-uppsats, KTH/Skolan för elektroteknik och datavetenskap (EECS)
Saleh, Abdelrahman
Publicerad: 2026
Kandidat-uppsats, Högskolan i Halmstad/Akademin för informationsteknologi
Ekbali, Ali, Jönne, Theodor
Publicerad: 2026
Kandidat-uppsats, Högskolan i Gävle/Avdelningen för datavetenskap och samhällsbyggnad
Vambe, Vimbainaishe
Publicerad: 2026
Kandidat-uppsats, Högskolan i Halmstad/Akademin för informationsteknologi
Johansson, Nathalie, Jonsson, Liam
Publicerad: 2026
Kandidat-uppsats, Stockholms universitet/Institutionen för data- och systemvetenskap
Balci, Zekeriya, Heimdahl, Josefine
Publicerad: 2026