Skip to content
Ivars Bajārs

Ivars Bajārs

lawyer and AI developer

Owner and board member of SIA LexAI — 17 years in law

Seventeen years of legal work in the public and private sectors — and large-language-model tools that make Latvian legal documents more precise. Public procurement, contract law, litigation and AI engineering in one professional practice.

Now

updated October 2026

  • Building LexAI: next module — appeals and cassation complaints
  • Open to conversations about legal-tech projects and collaboration
  • Available for consulting from November 2026

About

I am a lawyer with 17 years of experience in the public and private sectors, most of them leading legal functions. I have led the legal and procurement function of a state-owned company with around 250 employees, and a litigation department in a private company. Since June 2026 I am the owner and board member of SIA LexAI — the company where my two professions meet.

I believe a good lawyer is not just a problem-solver but a process architect — someone who structures the work so that problems do not arise.

My specialisation: public procurement, contract law, corporate governance, litigation and assignment transactions.

That is why, alongside legal practice, I build AI tools that generate, structure and check legal documents in Latvian — with all the nuances of its grammar, diacritics and legal terminology. I am interested in one specific question: how technology can make legal work more precise, not merely faster.

Experience

How the weight of my work has shifted: from law to management and technology.

  1. 2026–present
    Board member and ownerSIA "LexAI"
    • Design and development of the LexAI legal document generation platform
    • Product architecture, AI pipeline and legal content quality
    • Company management and B2B client relationships
  2. 2019–2025
    Head of Legal and Procurement DepartmentLatvian Environment, Geology and Meteorology Centre (state-owned)
    • Led the legal and procurement function in an organisation of around 250 employees
    • Developed and improved internal regulations and procedures
    • Organised public procurements, including within international projects
  3. 2011–2019
    Head of Litigation DepartmentSIA "Hiponia"
    • Managed litigation and court representation
    • Asset portfolio management and assignment transactions
    • Debt recovery and solutions in complex cases
  4. 2008–2013
    LawyerAS "Latvijas Krājbanka", SIA "LKB līzings", AS "VEF banka" (in liquidation)
    • Legal support in banking and leasing
    • Chairman of the board, housing cooperative "Saulesloka nams 10"
  5. 2005
    Bachelor of LawsTurība University

Projects

LexAI

active
lexai.lv

LexAI is an AI legal platform for the Baltic legal system: legal opinions with references to the law, legal documents, contract risk reviews and procedures with statutory deadlines. Services cost from €6.99 each, with no subscription, for companies and private individuals alike.

The provision from the source, not from memory

Every provision a document refers to is loaded from the current version on likumi.lv or EUR-Lex. After drafting, every reference is compared against the loaded text, and if a section cannot be loaded, the document says so plainly.

Two-level check

Every document is automatically checked for invented sections, outdated provisions and contradictions. In high-risk cases LexAI flags that a lawyer should review it, and it does not draft opinions in areas it is not built for.

Technology

The generation pipeline handles Latvian diacritics, UTF-8 offsets and page breaks in PDF and DOCX export — the details that usually break general-purpose tools. The platform runs on the Gemini API and Firebase, with Stripe payments and a document vault for every user.

Why me

LexAI is where my two professions meet: every prompt is written to a lawyer's standard, every line of code with an understanding of how the document will be read in court.

LexAI home page with the headline “Artificial intelligence. The Baltic legal system.” (in Latvian)
Screenshots from lexai.lv, October 2026. The interface is in Latvian.
Your questionlikumi.lv · EUR-LexGemini APITwo-level checkinvented sections,outdated provisionsPDF / DOCX
Services
legal opinions, documents, contract risk reviews, procedures with statutory deadlines
Sources
current versions from likumi.lv and EUR-Lex; Latvian, Estonian and Lithuanian law
Technology
Gemini API, Firebase, React, TypeScript, Stripe
Price
from €6.99 per service, no subscription

One of the free LexAI tools

Late-payment interest calculator

Statutory interest on a late payment in Latvia is 6% a year (Section 1765 of the Civil Law), unless the contract sets a different rate.

Statutory interest (6% a year, Civil Law s. 1765)

€14.79

Total with the principal: €1,014.79

For information only: 6% a year pro rata per day (365). If the contract sets another rate, or commercial late-payment interest applies, the amount will differ.

Prepare a pre-trial demand with LexAI

Expertise

Law

  • Public procurement process and its organisation
  • Contract drafting and management
  • Commercial law and corporate governance
  • Administrative law
  • Litigation: claims, appeals, cassation complaints, settlements
  • Legal risk analysis and internal regulatory frameworks
  • Legal team leadership

Technology

  • LLM engineering: Gemini API, Claude API, prompt systems
  • Structured legal document generation in Latvian
  • React, TypeScript, Node.js/Express, Firebase
  • Product architecture: freemium models, payments (Stripe), abuse prevention
  • Document pipelines: HTML to PDF, UTF-8 and diacritics handling
  • E-signature, e-procurement platforms, legal databases
Languages: Latvian (native), English (good), Russian (good), German (basic)
Additional training: data protection updates; insolvency administrator training programme; management fundamentals; advanced AI tools for daily work and business

Writing

Notes on legal work, artificial intelligence and how to make one more precise with the other.

  1. 12 min read

    While you still can choose: three documents that keep your family out of disputes

    A will, a lasting power of attorney and a marriage contract are three documents that decide for you at the moment you can no longer decide yourself. Without them, the law, a court or the orphan's court decides in your place, and not always the way you would have wanted.

    Read the article
  2. Presentation · 9 slides

    Europe already uses AI. So does Latvia

    A presentation: what Eurostat and 2026 studies show about AI use in Latvia and Europe, what lawyers and consumers expect from legal AI, and how LexAI meets those expectations.

    View the presentation
  3. 6 min read

    The AI Act: what a Latvian company needs to do

    Which EU AI Act obligations already apply, what changed on 2 August 2026, what the Digital Omnibus postponed, and five steps a company can take today. With a self-check tool.

    Read the article
  4. 4 min read

    How LexAI was built: what a lawyer learned by writing code

    Why general AI tools get legal references wrong, how LexAI loads provisions from the official source, and what I learned building a tool for Latvian legal language.

    Read the article
  5. 5 min read

    Seven mistakes AI makes in Latvian legal text

    Invented sections, outdated versions, the wrong terms and other mistakes AI tools make in Latvian legal language, and how to spot them.

    Read the article
  6. 4 min read

    Contracts and AI: how to use it safely

    Where AI helps in contract work, where it should not be trusted without checking, and how to protect confidential information.

    Read the article

Frequently asked questions

Short answers with references to the law. This is general information, not advice on a specific matter.

What is the statutory interest on a late payment in Latvia?

If the contract sets no rate, statutory interest is 6% a year (Civil Law, Section 1765(1)). For late payment for goods or services under a contract that does not involve a consumer, interest is eight percentage points above the base rate — the European Central Bank's most recent main refinancing rate (Civil Law, Section 1765(2) and (3)).

How long until a claim becomes time-barred?

The general limitation period is 10 years (Civil Law, Section 1895). Claims arising from commercial transactions become time-barred in three years unless the law sets another period (Commercial Law, Section 406). The period can be interrupted, for example by bringing a claim in court or by the debtor acknowledging the debt.

When does the EU AI Act apply?

In stages. Prohibited AI practices and the AI literacy obligation have applied since 2 February 2025, most of the Act since 2 August 2026. For high-risk systems in the Annex III areas (such as recruitment or creditworthiness assessment), obligations apply from 2 December 2027 (Article 113 of Regulation (EU) 2024/1689, as amended by Regulation (EU) 2026/1744).

Does a website chatbot have to say it is AI?

Yes. From 2 August 2026, people must be informed that they are interacting with an AI system unless that is obvious, at the latest at the first interaction (AI Act, Article 50(1) and (5)).

Can AI draft a contract for me?

AI can help with the structure and a first draft, but responsibility for the content stays with whoever signs the contract. Check every legal reference against the official source (likumi.lv) and make sure the contract fits the facts of your deal.

Does LexAI replace a lawyer?

No. LexAI prepares opinions and documents with references to checked provisions, but in high-risk cases it recommends review by a lawyer and it does not draft opinions in areas it is not built for.

How do I book a consultation, and is the first call free?

Yes, the 30-minute introductory call is free. You can send a request in the Consulting section; I consult from November 2026, on weekday evenings.

Answers checked in October 2026. The law changes — check the current version on likumi.lv or EUR-Lex before acting.

Consulting

From November 2026 I consult on public procurement, contracts, litigation and the use of AI in legal work. Choose a format and briefly describe your question, and I will reply with a proposed time.

Weekday evenings, online or as agreed.

Format

The request comes straight to me. I use your name, contact details and question only to reply, and delete them no later than a year after we last spoke.

Contact

Open to conversations about legal-tech projects, collaboration and speaking.

I usually reply within one working day.

© 2026 Ivars Bajārs

SIA “LexAI”, reg. no. 40203752338

The information on this page is general and is not legal advice.

Privacy

This site uses no cookies. Visits are counted with GoatCounter, which does not store IP addresses or follow visitors across other sites. Consultation requests (name, contact details and question) are stored in a Google Cloud Firestore database (United States, Oregon region) only so that I can reply. Questions to the AI assistant are processed by the Google Gemini API; conversations are not stored, and your IP address is used briefly only to limit the number of requests. Your chosen colour mode is stored only in your browser.