01 / Temeller
Models process tokens, not words.
Token count affects context capacity and API cost. Language, model and tokenizer change the result. Measure your text instead of assuming a fixed percentage.
Read the insight →BAHADIR ERDUN / INSIGHTS
My AI and software engineering posts: visual explanations, comparisons and practical notes.
01 / Temeller
Token count affects context capacity and API cost. Language, model and tokenizer change the result. Measure your text instead of assuming a fixed percentage.
Read the insight →02 / Prompt tasarımı
In the card’s experiment, the answer shrank from 194 to 50 tokens. A brevity instruction can reduce output, but total cost and latency need not fall proportionally.
Read the insight →03 / Güvenlik
Read keys from the environment and exclude .env from Git. .gitignore does not remove history or tracked files. Revoke leaked keys and scan for secrets. Budget alerts are not necessarily hard caps.
Read the insight →04 / AI
Both. The real question is which model should handle each request.
Read the insight →05 / RAG
Chunk and embed the document, retrieve passages and provide context. The card’s 0.50 threshold is experiment-specific, not universal. State when evidence is insufficient.
Read the insight →06 / Ajanlar
Think, call a tool, observe and reassess. Enforce step limits and detect repeated tool calls with identical arguments in application code. A larger model alone does not fix endless loops.
Read the insight →07 / Güvenlik
External content can carry malicious instructions. Treating documents as data helps, but a prompt alone is no guarantee. Restrict tool permissions, validate outputs and run adversarial tests.
Read the insight →08 / RAG
Embeddings map text to vectors. Dimensionality depends on the model; 1,024 is one example. Similarity helps retrieve related text but does not prove truth or equivalence.
Read the insight →09 / RAG
A similar topic is not the same question. Test false cache matches and calibrate thresholds on real examples. Invalidate answers when models, permissions or source data change.
Read the insight →10 / Uygulama geliştirme
Streaming displays chunks before completion. Measure time to first token separately from total duration. Handle cancellation, disconnects and partial answers; total generation is not necessarily faster.
Read the insight →11 / Prompt tasarımı
Input-output examples make classification concrete. A “none” example teaches the boundary. Compare on unseen and difficult cases rather than generalizing from a small test.
Read the insight →12 / Uygulama geliştirme
A fake client enables deterministic tests of history, instructions and errors. This does not measure model quality. Add separate evaluations and integration tests for model behavior.
Read the insight →13 / Ajanlar
The model emits a tool request and arguments. Your application checks permissions, schema and approval, executes the function and returns the result. Tool calling is not authorization.
Read the insight →14 / Prompt tasarımı
Low temperature can reduce variation. Seed support depends on the provider; do not assume identical text. Test schemas, required fields and task success instead of exact wording.
Read the insight →15 / Güvenlik
Show the scope of writes or deletions and obtain approval. Do not execute after rejection. Keep an audit trail and design recovery. Read tools can expose sensitive data; restrict their permissions too.
Read the insight →16 / RAG
Learn similarity with NumPy; consider a vector database for persistence and filters. Arrays can also be saved. A database alone does not improve accuracy; it adds index and update management.
Read the insight →17 / Uygulama geliştirme
Log input, output and cached tokens. Apply current model rates and add tool or service charges. Compare local and cloud routes using actual usage logs.
Read the insight →18 / Prompt tasarımı
Separate role, context, tone, data, examples, history, procedure, reminders and output format. This helps testing and maintenance; it is not necessarily the best order for every model or task.
Read the insight →No results found.