LLM large language model #
Šta je LLM?What is an LLM?
Program koji je iz ogromne količine teksta naučio koja reč najverovatnije dolazi sledeća — i tako, komad po komad, sastavlja odgovor.
A program that learned, from an enormous amount of text, which word most likely comes next — and builds its answer that way, piece by piece.
Ne gleda ni u kakvu bazu i ne pretražuje internet dok odgovara. Sve što „zna" nalazi se u brojevima koje je dobio treniranjem. Zato ume da bude savršeno tečan i potpuno netačan u istoj rečenici.
It doesn't consult a database or search the web while answering. Everything it "knows" sits in the numbers it got during training. Hence the uncomfortable combination: perfectly fluent language wrapped around occasionally invented content.
U jednoj sliciOne image
Nije enciklopedija koja otvara stranicu. Pre je neko ko je pročitao pola biblioteke i sada priča napamet.
Not an encyclopedia looking up a page. More like someone who read half a library and is now talking from memory.
Nije isto što iNot the same as
Pretraživač ni baza podataka. Kad ti treba tačan podatak, moraš mu ga dati — u promptu ili preko alata.
A search engine or a database. When you need a fact to be right, you have to hand it over — in the prompt or through a tool.
Vidi i: token, kontekst, halucinacija · Model ispod agenta, lekcija 01
See also: token, context, hallucination · The model under the agent, lesson 01
Token #
Šta je token?What is a token?
Najmanji komad teksta koji model vidi — najčešće deo reči, ni celo slovo ni cela reč.
The smallest chunk of text the model sees — usually a piece of a word, neither a single letter nor a whole word.
Sve što pošalješ i sve što dobiješ meri se u tokenima, i po njima se naplaćuje. Engleski se pakuje u manje tokena nego srpski, pa ista rečenica kod nas po pravilu košta osetno više.
Everything you send and everything you get back is measured in tokens, and billed by them. English packs more densely than most other languages, so the same sentence elsewhere costs noticeably more.
U jednoj sliciOne image
Reč „nepravda" model možda vidi kao „ne", „prav", „da" — tri komada, ne devet slova. Zato ume da promaši kad ga pitaš koliko puta se neko slovo javlja u reči.
The model may see "unfairness" as "un", "fair", "ness" — three chunks, not ten letters. Which is why it fumbles when you ask how many times a letter appears in a word.
Vidi i: kontekst, prozor konteksta, cena · Model ispod agenta, lekcija 03
See also: context, context window, cost · The model under the agent, lesson 03
KontekstContext context #
Šta je kontekst?What is context?
Sve što model ima pred sobom u trenutku odgovaranja — uputstvo, pitanje, prethodne poruke, dovučeni dokumenti, rezultati alata.
Everything the model has in front of it at the moment it answers — instructions, the question, earlier messages, retrieved documents, tool results.
Između dva poziva ne ostaje ništa. Ceo kontekst šalješ iznova svaki put i svaki put ga iznova plaćaš. Ono što nisi stavio unutra, za model ne postoji.
Nothing survives between two calls. You resend the whole context every time and pay for it every time. Whatever you left out doesn't exist as far as the model is concerned.
U jednoj sliciOne image
Radni sto, ne sećanje. Šta staviš na sto — to model vidi; čim poziv prođe, sto se obriše.
A desk, not a memory. What you put on the desk is what it sees; the moment the call ends, the desk is wiped.
Nije isto što iNot the same as
Memorija. Memoriju čuvaš ti, van modela, i sam biraš kada je vratiš u kontekst.
Memory. Memory is something you keep outside the model and choose when to feed back in.
Vidi i: prozor konteksta, context engineering · Prompt i kontekst, lekcija 07
See also: context window, context engineering · Prompt & context, lesson 07
Prozor kontekstaContext window context window #
Šta je context window?What is a context window?
Gornja granica koliko tokena staje u jedan poziv — ulaz i izlaz zajedno.
The hard ceiling on how many tokens fit into one call — input and output together.
Pređeš li je, poziv jednostavno ne prolazi. Ali to što je prozor velik ne znači da ga treba napuniti: što više suvišnog naguraš, odgovor je slabiji, sporiji i skuplji.
Go past it and the call simply fails. But a large window is not an invitation to fill it: the more clutter you push in, the weaker, slower and pricier the answer gets.
U jednoj sliciOne image
Nije skladište nego radna površina — sve stane, ali se sve i gleda odjednom.
Not storage but a work surface — everything fits, and everything is looked at all at once.
Vidi i: kontekst, sažimanje, token · Model ispod agenta, lekcija 04
See also: context, compaction, token · The model under the agent, lesson 04
Prompt #
Šta je prompt?What is a prompt?
Tekst kojim modelu zadaješ posao — uputstvo, pitanje, materijal i oblik odgovora.
The text in which you hand the model a job — the instruction, the question, the material and the shape of the answer.
Zadaj isti posao aljkavo, pa ga onda zadaj pošteno — dobićeš dva rezultata koja nemaju veze jedan s drugim. Kad neko kaže da mu je drugi model pametniji, najčešće je razlika bila u tome kako je pitao.
The same model, given a sloppy task and a well-set one, produces results that aren't in the same league. Most of the quality gap people credit to "a stronger model" starts right here.
U jednoj sliciOne image
Bliže je pisanju zadatka za kolegu nego kucanju upita u pretraživač.
Closer to briefing a colleague than to typing a query into a search box.
Nije isto što iNot the same as
Komanda. Prompt se ne izvršava doslovno — model ga tumači, pa je svaka nedorečenost prostor za promašaj.
A command. A prompt isn't executed literally — it's interpreted, so every vague spot is room to miss.
Vidi i: system prompt, few-shot, kontekst · Prompt i kontekst, lekcija 02
See also: system prompt, few-shot, context · Prompt & context, lesson 02
System prompt #
Šta je system prompt?What is a system prompt?
Deo prompta koji postavlja ulogu i pravila igre — ko je model, šta sme i kako da se ponaša.
The part of the prompt that sets the role and the rules — who the model is, what it may do, how it should behave.
Odvojen je od korisničke poruke i nosi veću težinu. Tu ide ono što važi za svaki razgovor; a u korisničku poruku samo ono što se tiče ovog zadatka.
It's separate from the user message and carries more weight. Put what holds for every conversation here; leave today's specific task for the user message.
U jednoj sliciOne image
Opis radnog mesta, a ne današnji zadatak.
A job description, not today's assignment.
Nije isto što iNot the same as
Skrovište za tajne. Sve što napišeš u system prompt model može da prepriča ako ga neko lepo zamoli.
A hiding place for secrets. Anything you write in a system prompt can be recited back if someone asks nicely enough.
Vidi i: prompt, prompt injection · Prompt i kontekst, lekcija 02
See also: prompt, prompt injection · Prompt & context, lesson 02
Poruke i ulogeMessages and roles messages, roles #
Šta su uloge system, user i assistant?What are the system, user and assistant roles?
Razgovor sa modelom nije jedan tekst nego niz poruka, a na svakoj piše ko je šalje — sistem, korisnik ili model.
A conversation with a model isn't one blob of text but a list of messages, each marked with who is speaking — the system, the user or the model.
Podela nije ukras: uputstvo koje dolazi od sistema model shvata ozbiljnije od teksta koji dolazi od korisnika. Kod agenta se u isti niz upisuju i pozivi alata i njihovi rezultati, pa istorija poruka postaje zapisnik celog posla.
The split isn't cosmetic: the model treats an instruction arriving from the system differently from text arriving from the user. In an agent, tool calls and their results go into the same list, so the message history becomes the record of the entire job.
U jednoj sliciOne image
Nije jedan dopis nego prepiska — i na svakom pismu piše ko ga šalje.
Not one memo but a correspondence — and every letter says who sent it.
Nije isto što iNot the same as
Ćaskanje u nekoj aplikaciji. Poruke nigde ne stoje same — ceo niz ti šalješ ponovo pri svakom pozivu.
A chat window. The messages don't live anywhere on their own — you resend the whole list on every call.
Vidi i: prompt, system prompt, tool use · Model ispod agenta, lekcija 02
See also: prompt, system prompt, tool use · The model under the agent, lesson 02
Parametri (težine)Parameters (weights) weights #
Šta su parametri modela?What are model parameters?
Brojevi koje model dobija treniranjem i u kojima je sabijeno sve što je naučio.
The numbers a model gets from training, holding everything it has learned in compressed form.
Ima ih na stotine milijardi. Ne možeš da ih pročitaš kao bazu ni da u njima nađeš konkretnu rečenicu; znanje je razliveno kroz sve njih odjednom.
There are hundreds of billions of them. You can't read them like a database or find a specific sentence inside — the knowledge is smeared across all of them at once.
U jednoj sliciOne image
Ne možeš da ih otvoriš i pročitaš, kao što ne možeš da otvoriš nečiju glavu i u njoj nađeš rečenicu.
You can't open them and read them, any more than you can open a brain to find a single sentence inside.
Vidi i: LLM, trening, dotreniravanje · Model ispod agenta, lekcija 01
See also: LLM, training, fine-tuning · The model under the agent, lesson 01
TreningTraining pre-training #
Šta je trening modela?What is model training?
Faza u kojoj model prolazi kroz ogromnu količinu teksta i podešava svoje parametre.
The phase in which a model runs through an enormous amount of text and adjusts its parameters.
Traje mesecima, košta milione i ti ga ne radiš. Tvoj posao počinje posle: biraš model, pišeš prompt, daješ mu alate.
It takes months, costs millions, and you're not doing it. Your job starts afterwards: pick the model, write the prompt, hand it tools.
U jednoj sliciOne image
Meseci čitanja pre nego što je model ikome rekao prvu reč.
Months of reading before the model ever said a word to anyone.
Vidi i: parametri, granica znanja, inferencija · Model ispod agenta, lekcija 01
See also: parameters, knowledge cutoff, inference · The model under the agent, lesson 01
Otvoreni modeliOpen-weight models open weights #
Šta znači „open source" model?What does an "open source" model mean?
Model čije su težine javno objavljene, pa možeš da ga pokreneš na svojoj mašini umesto da ga zoveš preko tuđeg API-ja.
A model whose weights are published, so you can run it on your own machine instead of calling it through someone else's API.
Dobijaš kontrolu i podatke koji ne izlaze iz kuće, a plaćaš hardverom, održavanjem i time što rezultat po pravilu zaostaje za najboljim modelima na tržištu. „Otvoreno" se skoro uvek odnosi na težine, ne i na podatke i postupak treniranja.
You gain control and data that never leaves the building; you pay in hardware, maintenance and usually weaker results than the top of the market. "Open" almost always refers to the weights, not to the training data or method.
U jednoj sliciOne image
Kao razlika između iznajmljenog i kupljenog stana — jedno plaćaš mesečno, drugo održavaš sam.
The difference between renting and owning — one is a monthly bill, the other is upkeep you handle yourself.
Nije isto što iNot the same as
Besplatno. Struja i GPU koštaju — račun se samo preseli na drugo mesto.
Free. Power and GPUs cost money — the bill simply moves somewhere else.
Vidi i: parametri, inferencija, cena · Model ispod agenta, lekcija 10
See also: parameters, inference, cost · The model under the agent, lesson 10
DotreniravanjeFine-tuning fine-tuning #
Šta je fine-tuning?What is fine-tuning?
Dodatno treniranje gotovog modela na tvojim primerima, da bi trajno usvojio određeni stil ili format.
Extra training of a finished model on your own examples, so it permanently absorbs a style or a format.
Skupo je, sporo i teško za održavanje. Skoro uvek prvo probaj bolji prompt i dovlačenje podataka; dotreniravanje je poslednji potez, ne prvi.
It's expensive, slow and awkward to maintain. In the vast majority of cases, try a better prompt and retrieval first — fine-tuning is the last move, not the first.
U jednoj sliciOne image
Prompt je uputstvo pred zadatak. Dotreniravanje je slanje na kurs.
A prompt is a briefing before the task. Fine-tuning is sending someone on a course.
Nije isto što iNot the same as
RAG. Za sveže i tačne podatke služi dovlačenje, ne dotreniravanje — činjenice se u težinama ne drže pouzdano.
RAG. Fresh, accurate facts belong in retrieval, not in weights — weights hold facts unreliably.
Vidi i: RAG, prompt, few-shot
See also: RAG, prompt, few-shot
InferencijaInference inference #
Šta je inferencija?What is inference?
Trenutak u kom model zapravo radi — uzima tvoj ulaz i pravi odgovor.
The moment the model actually works — it takes your input and produces an answer.
Trening je jednom, inferencija je svaki put. Sve što plaćaš u svakodnevnom radu je inferencija.
Training happens once; inference happens every single time. Everything you pay for day to day is inference.
U jednoj sliciOne image
Trening je fakultet. Inferencija je svaki radni dan posle njega.
Training is university. Inference is every working day after it.
Vidi i: trening, latencija, cena · Model ispod agenta, lekcija 02
See also: training, latency, cost · The model under the agent, lesson 02
Sampling sampling #
Zašto isti prompt ne daje isti odgovor?Why doesn't the same prompt give the same answer?
Zato što model iz liste verovatnih nastavaka svaki put bira jedan — a izbor nije uvek isti.
Because the model picks one continuation from a list of likely ones each time — and the pick isn't always the same.
To nije kvar nego način rada. Ako ti odstupanja smetaju, ne boriš se protiv njih nego pišeš zadatak koji ostavlja manje prostora za lutanje.
That's not a defect, it's how the thing works. If the variation bothers you, you don't fight it — you write a task that leaves less room to wander.
U jednoj sliciOne image
Isto pitanje, isti sagovornik, drugi dan — odgovor po smislu isti, po rečima drugačiji.
Same question, same person, different day — the same in substance, different in words.
Nije isto što iNot the same as
Nasumičnost. Izbor je vođen verovatnoćama koje je model naučio, a ne bacanjem novčića.
Randomness. The pick follows probabilities the model learned, not a coin flip.
Vidi i: temperatura, halucinacija · Model ispod agenta, lekcija 05
See also: temperature, hallucination · The model under the agent, lesson 05
TemperaturaTemperature temperature #
Šta je temperatura kod LLM-a?What is temperature in an LLM?
Podešavanje koje određuje koliko model sme da odstupi od najverovatnijeg izbora.
A setting that decides how far the model may stray from the most likely choice.
Niža vrednost daje predvidljiviji tekst, viša raznovrsniji. Vredi znati da noviji modeli ovo podešavanje sve češće ne prihvataju — umesto da se oslanjaš na njega, isti prompt pusti nekoliko puta i pogledaj koliko odgovori odstupaju.
Lower means more predictable text, higher means more varied. Worth knowing: newer models increasingly reject this setting outright — instead of leaning on it, run the same prompt a few times and look at how far the answers drift apart.
U jednoj sliciOne image
Dugme između „recituj napamet” i „improvizuj”.
A dial between “recite it” and “improvise”.
Vidi i: sampling, eval · Model ispod agenta, lekcija 05
See also: sampling, eval · The model under the agent, lesson 05
HalucinacijaHallucination hallucination #
Zašto AI izmišlja?Why does AI make things up?
Odgovor koji zvuči tačno i sigurno, a nije tačan.
An answer that sounds accurate and confident, and isn't.
Ne nastaje iz namere da slaže, nego iz samog načina rada: model sastavlja najverovatniji nastavak, a najverovatnije nije uvek i istinito. Najbolja odbrana nije molba u promptu nego provera — daj mu izvor u kontekstu ili alat kojim rezultat može da potvrdi.
It doesn't come from an intent to lie but from the mechanism itself: the model assembles the most likely continuation, and most likely isn't always true. The best defence isn't pleading in the prompt — it's verification: give it a source in the context, or a tool that can confirm the result.
U jednoj sliciOne image
Kao svedok koji je potpuno siguran u detalj koji nije video.
Like a witness who is completely certain about a detail they never saw.
Vidi i: verifikacija, RAG, eval · Model ispod agenta, lekcija 01
See also: verification, RAG, eval · The model under the agent, lesson 01
Granica znanjaKnowledge cutoff knowledge cutoff #
Šta je knowledge cutoff?What is a knowledge cutoff?
Datum posle kog model sam od sebe ne zna ništa, jer se u treningu nije ni pojavilo.
The date after which the model knows nothing on its own, because none of it was in the training data.
Sve novije mora da mu stigne kroz prompt ili alat. Ovo je i razlog zašto se u kod ne upisuje konkretno ime modela — spisak aktuelnih modela menja se brže od bilo kog tutorijala.
Anything more recent has to arrive through the prompt or a tool. It's also why you don't hard-code a specific model name — the list of current models changes faster than any tutorial.
U jednoj sliciOne image
Načitan sagovornik koji već godinu dana nije pročitao nijednu vest.
A well-read companion who hasn't seen a newspaper in a year.
Vidi i: trening, RAG, alat
See also: training, RAG, tool
Streaming #
Šta je streaming odgovora?What is response streaming?
Način da odgovor stiže token po token, dok se piše, umesto da čekaš gotov tekst.
A way for the answer to arrive token by token as it's written, instead of waiting for the finished text.
Model time nije brži, ali čekanje prestaje da bude mrtvo vreme. Kod dugih odgovora je i praktična zaštita od pucanja veze.
It doesn't make the model faster, but the wait stops feeling dead. On long answers it also protects you from the connection timing out.
U jednoj sliciOne image
Konobar koji iznosi jelo po jelo, umesto da sve stoji dok kuhinja ne završi.
A waiter bringing course after course instead of waiting for the whole kitchen to finish.
Vidi i: latencija, token · Model ispod agenta, lekcija 09
See also: latency, token · The model under the agent, lesson 09
LatencijaLatency latency #
Šta je latencija?What is latency?
Vreme od poslatog zahteva do upotrebljivog odgovora.
The time from sending a request to having an answer you can use.
Raste sa dužinom ulaza i izlaza, a u agentu se množi — deset koraka petlje znači deset čekanja. Najviše se dobija kraćim kontekstom i manjim brojem koraka, a ne bržim modelom.
It grows with the length of input and output, and in an agent it multiplies — ten loop steps means ten waits. The biggest win usually comes from a shorter context and fewer steps, not a faster model.
U jednoj sliciOne image
Deset koraka petlje nije deset sekundi nego deset čekanja, i svako je duže od prethodnog.
Ten loop steps isn't ten seconds, it's ten waits — each longer than the one before.
Vidi i: streaming, cena, agentska petlja · Agent kao proizvod, lekcija 11
See also: streaming, cost, agent loop · The agent as a product, lesson 11
MultimodalnostMultimodality multimodality #
Šta znači da je model multimodalan?What does multimodal mean?
Da pored teksta prima i sliku, snimak ekrana ili dokument.
That it accepts images, screenshots or documents alongside text.
I slika se pretvara u tokene i takođe zauzima prozor konteksta. Skeniran ugovor nije džabe — ume da košta više nego nekoliko strana teksta.
Images become tokens too, and take up the context window like everything else. A scanned contract is not a free input — it can cost more than several pages of text.
U jednoj sliciOne image
Slika vredi hiljadu reči — i otprilike toliko i košta.
A picture is worth a thousand words — and costs about that much.
Vidi i: token, prozor konteksta
See also: token, context window
Embedding embedding #
Šta je embedding?What is an embedding?
Pretvaranje teksta u niz brojeva, tako da tekstovi bliskog značenja dobiju bliske brojeve.
Turning text into a list of numbers, so that texts close in meaning end up close in numbers.
Na tome počiva pretraga po smislu, a time i ceo RAG. Traži se „šta liči po značenju", a ne „gde se poklapaju iste reči".
It's the engine behind search by meaning, and the foundation of RAG. The question becomes "what is similar in meaning", not "where do the same words appear".
U jednoj sliciOne image
„Ceo dan sam bio na nogama” i „grozno sam umoran” nemaju nijednu zajedničku reč, a po brojevima su sasvim blizu.
“I was on my feet all day” and “I'm exhausted” share not one word, yet their numbers land right next to each other.
Vidi i: RAG · Prompt i kontekst, lekcija 08
See also: RAG · Prompt & context, lesson 08
RasuđivanjeReasoning extended thinking #
Šta znači da model „razmišlja"?What does it mean that a model "thinks"?
Da pre konačnog odgovora razradi korake, umesto da odmah izbaci zaključak.
That it works through the steps before the final answer, instead of firing off a conclusion right away.
Kod zadataka sa više koraka — logika, računanje, planiranje — ovo osetno podiže tačnost. Kod jednostavnih zadataka samo troši tokene i vreme.
On multi-step tasks — logic, arithmetic, planning — this lifts accuracy noticeably. On simple ones it just burns tokens and time.
U jednoj sliciOne image
Isplati se kad zadatak ima korake. Za „koliko je 2+2” samo plaćaš razmišljanje.
Worth it when the task has steps. For “what's 2+2” you're just paying for deliberation.
Vidi i: lanac rasuđivanja, latencija · Prompt i kontekst, lekcija 06
See also: chain of thought, latency · Prompt & context, lesson 06