Enter a research topic or paper description. This demo calls Exa's /search endpoint with category: "research paper" and requests highlights content, scoped to top research domains via includeDomains. 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.
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: "research paper",
startPublishedDate: "2025-01-01",
includeDomains: [
"arxiv.org",
"papers.nips.cc",
"proceedings.mlr.press",
"openreview.net",
"aclanthology.org",
"dl.acm.org",
"ieeexplore.ieee.org",
"semanticscholar.org",
"proceedings.neurips.cc",
],
contents: {
highlights: { maxCharacters: 4000 },
},
});
// response.results → array of search results
// Each result includes: title, url, highlights, publishedDate, author