LawForge
ReferenceTools

legal_qa

Ask legal questions and get AI-powered answers grounded in case law

legal_qa

Pro

Ask a legal question and receive an AI-generated answer that cites relevant case law. Uses retrieval-augmented generation (RAG) to ground responses in actual court opinions.

Parameters

ParameterTypeRequiredDescription
questionstringYesYour legal question in plain English
jurisdictionstringNoLimit to specific jurisdiction (e.g., scotus, ca9)
max_sourcesnumberNoMaximum cases to use as context (1-10, default: 5)

Example Request

{
  "question": "What is the standard for qualified immunity in excessive force cases?",
  "jurisdiction": "scotus",
  "max_sources": 5
}

Example Response

{
  "answer": "The Supreme Court has established a two-prong test for qualified immunity in excessive force cases. First, a court must determine whether the officer's conduct violated a constitutional right. Second, the court must determine whether the right was 'clearly established' at the time of the incident. A right is clearly established when existing precedent places the constitutional question 'beyond debate.' Officers are entitled to qualified immunity unless their conduct violates clearly established law that a reasonable officer would have known.",
  "sources": [
    {
      "cluster_id": 2812345,
      "case_name": "Harlow v. Fitzgerald",
      "citation": "457 U.S. 800 (1982)",
      "relevance": "Established the 'clearly established law' standard"
    },
    {
      "cluster_id": 3456789,
      "case_name": "Saucier v. Katz",
      "citation": "533 U.S. 194 (2001)",
      "relevance": "Applied qualified immunity to excessive force claims"
    }
  ],
  "confidence": 0.89
}

How It Works

  1. Your question is embedded using AI
  2. Relevant cases are retrieved from the database
  3. The AI generates an answer using only the retrieved cases
  4. Sources are cited for verification

Best Practices

  • Be specific in your questions
  • Use jurisdiction filters to get relevant law
  • Always verify cited sources

Limitations

  • Answers are based on available case law
  • Not a substitute for professional legal advice
  • May not include most recent decisions

See Also

On this page