Using Lune for paper search
When the user asks for papers, call search_papers with their query verbatim (or lightly cleaned). Pass conference and year filters when the user names them.
When to drill in
After the initial search, if the user wants more on a specific paper:
get_paper(paper_id)for full metadata, AI TL;DR, keywords, citations count.get_paper_fulltext(paper_id)only when the user explicitly wants the body text or you need to verify a claim quoted in the abstract — full text is heavy, ~5–50KB per paper.get_paper_citations(paper_id, direction='cited_by')to find papers building on this one.direction='cites'for the paper's own references.
Fallback
If search_papers returns no results for a niche topic, broaden the query (drop one term, generalize a phrase) before giving up. If the corpus genuinely doesn't cover it, say so explicitly — don't hallucinate.
Don't
- Don't paginate by re-querying with
page=N. Uselimit(max 50) and either ask the user to refine or callget_conference_papers(conference, offset=…)if they want a venue dump. - Don't combine
search_paperswith web search; Lune's index covers ~year 2018+ for top conferences. Web search is appropriate only for older or non-indexed venues.