Exa
Back to demo

How It Works

Search for the latest ML papers — powered by Exa search with highlights and synthesis

Enter a research topic or paper description. This demo calls Exa's /search endpoint with category: "publications" and requests highlights content. Exa finds the most relevant recent papers, extracts key passages, and returns structured results. The highlights are then fed to Gemini 2.0 Flash to synthesize a concise research summary.

Example

import Exa from "exa-js";
const exa = new Exa(process.env.EXA_API_KEY);

const response = await exa.search("latest breakthroughs in LLM reasoning", {
  type: "auto",
  numResults: 10,
  category: "publications",
  startPublishedDate: "2025-01-01",
  contents: {
    highlights: { maxCharacters: 4000 },
  },
});

// response.results → array of search results
// Each result includes: title, url, highlights, publishedDate, author