arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2604.16425cs.DBcs.LG
收藏

利用大语言模型聚合非结构化数据的方法

Method for Aggregating Unstructured Data Using Large Language Models

ITMO University(ITMO大学)

Vsevolod Lazebnyi, Natalia Tereshkina, Maria Shabarina, Dmitriy Fedorov

AI总结:

本文提出一种利用大语言模型自动收集和聚合来自不同网页源的非结构化数据的方法,通过混合网页爬虫、非关系型数据库存储及LLM智能提取,解决现有技术在网页结构变化时的不稳定性及动态内容加载问题。

摘要:

本文提出了一种利用大语言模型自动收集和聚合来自不同网页源的非结构化数据的方法。现有技术的主要挑战包括在网页结构变化时的不稳定性、对动态加载内容的支持有限以及数据预处理过程需要大量人工设计。所提出的算法集成了混合网页爬虫(Goose3用于静态页面,Selenium+WebDriver用于动态页面)、数据存储在非关系型MongoDB数据库管理系统中,以及利用LLM进行信息的智能提取和规范化,按照预定的JSON模式。该研究的主要科学贡献是提出一个两阶段验证过程,用于消除生成数据中的潜在幻觉,通过比较不同温度参数值获得的多个LLM输出的嵌入,并结合正式化的规则来监控数据的一致性和完整性。实验结果表明,关键字段的完成精度较高,且所提出的方法在网页结构变化时具有良好的鲁棒性。这使其适用于新闻内容聚合、监控和日志分析等近实时任务,并且在数据源数量方面具有快速扩展的能力。

英文摘要:

This paper presents a method for the automated collection and aggregation of unstructured data from diverse web sources, utilizing Large Language Models (LLMs). The primary challenge with existing techniques is their instability when the structure of webpages changes, their limited support for dynamically loaded content during information collection, and the requirement for labor-intensive manual design of data pre-processing processes. The proposed algorithm integrates hybrid web scraping (Goose3 for static pages and Selenium+WebDriver for dynamic ones), data storage in a non-relational MongoDB database management system (DBMS), and intelligent extraction and normalization of information using LLMs into a predetermined JSON schema. A key scientific contribution of this study is a two-stage verification process for the generated data, designed to eliminate potential hallucinations byy comparing the embeddings of multiple LLM outputs obtained with different temperature parameter values, combined with formalized rules for monitoring data consistency and integrity. The experimental findings indicate a high level of accuracy in the completion of key fields, as well as the robustness of the proposed methodology to changes in web page structures. This makes it suitable for use in tasks such as news content aggregation, monitoring, and log analysis in near real-time mode, with the capacity to scale rapidly in terms of the number of sources.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑