
🌐 Machine-translated from Russian. Show original
In this part:
What cannot be sent to public services
- Passwords, API keys, tokens, certificates — even "for a moment to fix the config."
- Personal data: full name with IIN, phone numbers, addresses, medical information, data of candidates and employees. Databases with personal data of citizens of the Republic of Kazakhstan must be stored in Kazakhstan (more details), and neural network services process requests abroad.
- Trade secrets: contracts, financial data, client databases, NDA source code.
- Client data — if the contract with the client restricts this.
How to work safely
- Anonymize: replace names, IINs, amounts, and company names with conditional ones.
- Minimize: send the code or log snippet related to the issue, not the entire repository.
- Corporate rates and contracted services where data usage for training is disabled — for work tasks.
- Local models — for sensitive data (part 2.
Risks besides leaks
Read more
🌐 Machine-translated from Russian. Show original
In this part:
When a local model is needed
- data cannot be sent to external services (trade secrets, personal data);
- need to work without the internet;
- a large volume of similar tasks, where API fees become noticeable.
The price is hardware: for comfortable work, you need a video card with a large amount of memory or a computer with a large amount of shared memory. Small models run on regular PCs as well, but the response quality is lower than that of large cloud ones.
Quick start
Tools like Ollama or LM Studio download and run open models (families Qwen, Llama, Mistral, DeepSeek, etc.) with a single command and provide a local API compatible with the OpenAI format. About open models — a post about Qwen from the Vibcoding series.
What is RAG
Retrieval-Augmented Generation — the model responds not "from memory," but based on found fragments of your documents:
- Indexing: documents (regulations, instructions, knowledge base) are cut into fragments, each counted as embedding — a numerical vector of meaning.
- Search: the user's question also turns into a vector, finding the most similar fragments.
- Answer: the model passes the question and the found fragments with the instruction "answer only based on these materials and indicate the source."
Simple RAG architecture
Read more
🌐 Machine-translated from Russian. Show original
In this part:
The formula for a good query
- Role and context: who are you, what kind of system is this, what are the limitations.
- Task: what exactly needs to be obtained.
- Input data: code, log, table, requirements.
- Response format: list, table, code, half-page letter.
- Criteria: what is considered a good answer, what to avoid.
Bad: "Write a function for the report." Good: "Service on Node.js 22 and PostgreSQL. Write a function that returns monthly revenue for the year for the orders(amount, status, created_at) table, considering only status='paid'. Need SQL and TypeScript, without ORM, with empty result processing."
For developers
- "Explain this code and find possible errors: ..." — a quick glance from the side.
- "Write tests for the function, including boundary cases: ..."
- "Here is the error and the stacktrace, here is the code. Suggest 3 hypotheses of the cause and how to verify each."
- Review: "Check this diff for vulnerabilities: access to someone else's data, injections, secret leak."
For administrators
- "Analyze this log and find what started before the service crashed: ..."
- "Write a PowerShell script that finds AD accounts without logging in for more than 90 days, without deletion — just a report."
- "Explain what this command does before I execute it: ..." — especially for something found on the internet.
Analysts
Read more