Перевірити рівеньКурсиПрограмиДля командТарифи
RUУвійтиРеєстрація
Перевірити рівеньКурсиПрограмиДля командТарифиТест із ClaudeПромптиБлогПитання та відповідіПошукРеєстраціяRU
AcademlКурсиOpenAI Cookbook: Based on OpenAI MaterialsFunction Calling for Knowledge Retrieval
Помічник із математики розвʼязує рівняння 3x + 11 = 14 покроковоСхема сценарію: повідомлення в Telegram розходиться на команду, голос і текст і приходить до агентаЗаявка з форми потрапляє в рядок таблиці з міткою «Скарга»
Курс

OpenAI Cookbook: Based on OpenAI Materials

Модуль 1 · Assistants API and Agents
01Stateful Assistants on the Responses API
Модуль 2 · Function Calling and Retrieval
02Function Calling for Knowledge Retrieval
Модуль 3 · Embeddings and Search
03Embedding Wikipedia Articles for Semantic Search
Модуль 4 · Prompting and Optimization
04Meta-Prompting: Automated Prompt Optimization
Модуль 5 · Vision and Multimodality
05GPT Vision for Video Understanding
Модуль 6 · Reliability and Quality
06Hallucination Guardrails for Support Agents
Модуль 7 · Data Extraction and Transformation
07Data Extraction from PDFs: GPT as OCR
Модуль 8 · Fine-Tuning
08Accurate Function Calling Without Fine-Tuning
OpenAI Cookbook: Based on OpenAI Materials · Урок 2

Function Calling for Knowledge Retrieval

Build an agent with two functions on the Responses API: arXiv paper search with embeddings and PDF summarization. The agent decides which function to call; covers strict mode, multiple calls per turn and the built-in file_search and web_search tools.

ENМатеріали курсів поки англійською. Інтерфейс, ШІ-наставник і перевірка завдань — українською.

25 хв читанняОновлено 02.12.20263 питання у квізіГотовий промпт включено

Agent Architecture

In this example the agent has access to two functions:

  • get_articles — searches arXiv for papers, downloads PDFs, computes embeddings
  • read_article_and_summarize — reads a PDF from the local library and summarizes it

The example comes from an OpenAI Cookbook recipe that is now marked as archived: it uses older models and Chat Completions. Below is the same agent on the Responses API, which OpenAI recommends for new projects. gpt-6-luna is inexpensive and fits this kind of loop. The recipe's gpt-4o-mini is deprecated and shuts down on January 14, 2027, and OpenAI names gpt-6-luna as its replacement.

Далі урок відкривається після безкоштовної реєстрації

Реєстрація через email або Google відкриває перші два уроки кожного курсу назавжди і 7 днів повного доступу до всього каталогу. Картка не потрібна.

Зареєструватися безкоштовноАбо пробний урок без реєстрації →
У цьому уроці
Agent ArchitectureDefining FunctionsRanking by Cosine SimilarityAgent LoopBuilt-in Tools Instead of Hand-Rolled SearchПрактикаГотовий промптКвіз
КурсиКурси з LLMДля командТарифиПитання та відповідіБлогПро насКонфіденційність
© 2026 AcademlРозробка та просування сайтів —MMIX — Marketing Mix
Почати безкоштовно