Skip to main content
Isaacus is a foundational legal AI research company building AI models, apps, and tools for the legal tech ecosystem. Isaacus’ offering includes Kanon 2 Embedder, the world’s best legal embedding model (as measured on the Massive Legal Embedding Benchmark), as well as legal zero-shot classification and legal extractive question answering models. Isaacus offers first-class support for LangChain’s embedding interface, accessible via the langchain-isaacus integration package.

Setup

To get started using Isaacus models with LangChain, head to the Isaacus Platform and create a new account. Once signed up, add a payment method (thereby claiming your free credits) and generate an API key. Next, install the langchain-isaacus integration package:
You should then set your ISAACUS_API_KEY environment variable to your Isaacus API key.

Embeddings

The code snippet below demonstrates how you might use Isaacus’ Kanon 2 Embedder model to assess the semantic similarity of legal queries to a legal document with LangChain. A more detailed walkthrough of how to generate embeddings with the Isaacus LangChain integration is available in the Isaacus embeddings guide.