
I pip-installed LangChain and Accidentally Triggered EU AI Act Compliance
Last month I was reviewing my startup's requirements.txt before a deploy. Standard stuff: FastAPI, SQLAlchemy, LangChain, some utility packages. Then I read EU AI Act Article 6 and had a bad realization: that langchain==0.2.14 line makes my app an "AI system" under EU law . Not a theoretical maybe. A concrete legal classification with obligations attached. If your Python app imports OpenAI, HuggingFace Transformers, LangChain, or any of a dozen AI frameworks — and your users include anyone in the EU — you're probably in the same boat. What I didn't know (and you might not either) The EU AI Act doesn't care whether you think you're building AI. It cares about what your code does . Specifically, Article 3 defines an "AI system" as any machine-based system that generates outputs like predictions, recommendations, or decisions. Here's the thing: if you're calling ChatOpenAI() or pipeline("text-generation") , you're generating exactly those kinds of outputs. Your import statement is the evi
Continue reading on Dev.to Python
Opens in a new tab



