Please use this identifier to cite or link to this item:
http://hdl.handle.net/20.500.12188/33585
Title: | Benchmarking OpenAI’s APIs and other Large Language Models for Repeatable and Efficient Question Answering Across Multiple Documents | Authors: | Filipovska, Elena Mladenovska, Ana Bajrami, Merxhan Dobreva, Jovana Hillman, Velislava Lameski, Petre Zdravevski, Eftim |
Keywords: | OpenAI, LangChain, RAG, GPT, QA, LLM, Llama, Large Language Models, Multi-document, one-shot learn ing, few-shot learning Q&A | Issue Date: | 8-Sep-2024 | Publisher: | IEEE | Conference: | 2024 19th Conference on Computer Science and Intelligence Systems (FedCSIS) | Abstract: | The rapid growth of document volumes and com plexity in various domains necessitates advanced automated methods to enhance the efficiency and accuracy of information extraction and analysis. This paper aims to evaluate the efficiency and repeatability of OpenAI’s APIs and other Large Language Models (LLMs) in automating question-answering tasks across multiple documents, specifically focusing on analyzing Data Pri vacy Policy (DPP) documents of selected EdTech providers. We test how well these models perform on large-scale text processing tasks using the OpenAI’s LLM models (GPT 3.5 Turbo, GPT 4, GPT 4o) and APIs in several frameworks: direct API calls (i.e., one-shot learning), LangChain, and Retrieval Augmented Generation (RAG) systems. We also evaluate a local deployment of quantized versions (with FAISS) of LLM models (Llama-2- 13B-chat-GPTQ). Through systematic evaluation against pre defined use cases and a range of metrics, including response format, execution time, and cost, our study aims to provide insights into the optimal practices for document analysis. Our findings demonstrate that using OpenAI’s LLMs via API calls is a workable workaround for accelerating document analysis when using a local GPU-powered infrastructure is not a viable solution, particularly for long texts. On the other hand, the local deployment is quite valuable for maintaining the data within the private infrastructure. Our findings show that the quantized models retain substantial relevance even with fewer parameters than ChatGPT and do not impose processing restrictions on the number of tokens. This study offers insights on maximizing the use of LLMs for better efficiency and data governance in addition to confirming their usefulness in improving document analysis procedures. | URI: | http://hdl.handle.net/20.500.12188/33585 |
Appears in Collections: | Faculty of Computer Science and Engineering: Conference papers |
Show full item record
Google ScholarTM
Check
Items in DSpace are protected by copyright, with all rights reserved, unless otherwise indicated.