ТЕХНИКАЛЫҚ ҒЫЛЫМДАР - ТЕХНИЧЕСКИЕ НАУКИ - TECHNICAL SCIENCE · УДК 004.85 · Қазақша
Үлкен тілдік модельдердің архитектурасы және оларды қолданбаларға интеграциялау тәсілдері
Аңдатпа
Мақалада үлкен тілдік модельдердің (ҮТМ) архитектурасы және оларды қолданбаларға интеграциялау тәсілдері әдебиеттерге шолу негізінде қарастырылады. Дереккөз ретінде іргелі ғылыми жұмыстар мен ресми техникалық құжаттама іріктелді. Transformer архитектурасынан бастап модельді бейімдеу, іздеумен толықтыру (RAG) және сыртқы құралдарды шақыру тәсілдері салыстырылып, қолданбаның жалпы архитектурасы ұсынылады. Талдау көрсеткендей, тәсілді таңдау шешілетін міндетке (білім, мінез-құлық немесе әрекет) байланысты, ал галлюцинация мен prompt injection тәуекелдерін бөлек басқару қажет. Мақала теориялық сипатта және авторлық эксперимент қамтымайды.
Түйін сөздер: үлкен тілдік модельдер, Transformer, RAG, құралдарды шақыру, Model Context Protocol, галлюцинация, prompt injection
Аннотация
В статье на основе обзора литературы рассматриваются архитектура больших языковых моделей (БЯМ) и способы их интеграции в приложения. В качестве источников отобраны основополагающие научные работы и официальная техническая документация. От архитектуры Transformer до адаптации модели, расширения поиском (RAG) и вызова внешних инструментов сопоставляются подходы, предлагается общая архитектура приложения. Анализ показывает, что выбор подхода зависит от решаемой задачи (знания, поведение или действие), а риски галлюцинаций и prompt injection требуют отдельного управления. Статья носит теоретический характер и не содержит авторского эксперимента.
Ключевые слова: большие языковые модели, Transformer, RAG, вызов инструментов, Model Context Protocol, галлюцинации, prompt injection
Abstract
The paper reviews the architecture of large language models (LLMs) and the ways of integrating them into applications on the basis of the literature. Foundational research papers and official technical documentation were selected as sources. Starting from the Transformer architecture, the approaches of model adaptation, retrieval-augmented generation (RAG) and external tool calling are compared, and a general application architecture is proposed. The analysis shows that the choice of an approach depends on the task being solved (knowledge, behaviour or action), while the risks of hallucination and prompt injection require separate management. The work is theoretical and contains no original experiment.
Keywords: large language models, Transformer, RAG, tool calling, Model Context Protocol, hallucination, prompt injection
Список литературы
- Zhao W.X. et al. A Survey of Large Language Models // Frontiers of Computer Science. – 2026. – Vol. 20, No. 12. – Art. 2012627. – DOI: 10.1007/s11704-026-60308-3.
- Vaswani A., Shazeer N., Parmar N. et al. Attention Is All You Need // Advances in Neural Information Processing Systems 30 (NeurIPS 2017). – 2017. – P. 5998–6008. – URL: https://proceedings.neurips.cc/paper_files/paper/2017/file/3f5ee243547dee91fbd053c1c4a845aa-Paper.pdf (қаралған күні: 17.11.2026).
- Devlin J., Chang M.-W., Lee K., Toutanova K. BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding // Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies. Vol. 1. – Minneapolis: ACL, 2019. – P. 4171–4186. – DOI: 10.18653/v1/N19-1423.
- Brown T., Mann B., Ryder N. et al. Language Models are Few-Shot Learners // Advances in Neural Information Processing Systems 33 (NeurIPS 2020). – 2020. – P. 1877–1901. – URL: https://proceedings.neurips.cc/paper_files/paper/2020/hash/1457c0d6bfcb4967418bfb8ac142f64a-Abstract.html (қаралған күні: 17.11.2026).
- Ouyang L., Wu J., Jiang X. et al. Training language models to follow instructions with human feedback // Advances in Neural Information Processing Systems 35 (NeurIPS 2022). – 2022. – URL: https://proceedings.neurips.cc/paper_files/paper/2022/hash/b1efde53be364a73914f58805a001731-Abstract.html (қаралған күні: 17.11.2026).
- Wei J., Wang X., Schuurmans D. et al. Chain-of-Thought Prompting Elicits Reasoning in Large Language Models // Advances in Neural Information Processing Systems 35 (NeurIPS 2022). – 2022. – P. 24824–24837.
- Hu E.J. et al. LoRA: Low-Rank Adaptation of Large Language Models // International Conference on Learning Representations (ICLR 2022). – 2022. – URL: https://openreview.net/forum?id=nZeVKeeFYf9 (қаралған күні: 17.11.2026).
- Lewis P., Perez E., Piktus A. et al. Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks // Advances in Neural Information Processing Systems 33 (NeurIPS 2020). – 2020. – P. 9459–9474.
- Yao S. et al. ReAct: Synergizing Reasoning and Acting in Language Models // International Conference on Learning Representations (ICLR 2023). – 2023. – URL: https://openreview.net/forum?id=WE_vluYUL-X (қаралған күні: 17.11.2026).
- Schick T., Dwivedi-Yu J., Dessi R. et al. Toolformer: Language Models Can Teach Themselves to Use Tools // Advances in Neural Information Processing Systems 36 (NeurIPS 2023). – 2023. – P. 68539–68551.
- Model Context Protocol Specification [Электронный ресурс]. – Version 2026-07-28. – URL: https://modelcontextprotocol.io/specification/2026-07-28 (қаралған күні: 17.11.2026).
- Ji Z., Lee N., Frieske R. et al. Survey of Hallucination in Natural Language Generation // arXiv:2202.03629 [cs.CL]. – 2022 (v7, 2024). – URL: https://arxiv.org/abs/2202.03629 (қаралған күні: 17.11.2026).
- OWASP Top 10 for LLM Applications 2025 [Электронный ресурс] / OWASP Gen AI Security Project. – URL: https://genai.owasp.org/resource/owasp-top-10-for-llm-applications-2025/ (қаралған күні: 17.11.2026).
Как цитировать
Серіков А.А., Туреханова Г.И. Үлкен тілдік модельдердің архитектурасы және оларды қолданбаларға интеграциялау тәсілдері // Central Asian Scientific Journal. – 2026. – №4(32), Т. 2. – Б. 595–600.
CC BY 4.0 Статья в открытом доступе по лицензии CC BY 4.0: её можно свободно читать, копировать и распространять с указанием авторов и ссылки на статью. Подробнее о лицензии