Skip to content

feat: tab completion for citation keys (from staging)#120

Open
wjiayis wants to merge 19 commits intomainfrom
staging
Open

feat: tab completion for citation keys (from staging)#120
wjiayis wants to merge 19 commits intomainfrom
staging

Conversation

@wjiayis
Copy link
Member

@wjiayis wjiayis commented Feb 17, 2026

Tested on staging. Functionality works as expected. Latency increased from 2s to 5s, but I suspect it's because the API key was at the brink of having no credits left. Will look into the latency more.

Junyi-99 and others added 18 commits January 27, 2026 02:58
#33 

In short, it'll

1. [Frontend] Recognize that user is trying to add a citation (trigger
text is `\cite{`)
2. [Frontend] Temporarily suppress default Overleaf dropdown suggestions
3. [Frontend] Get the last sentence as context for LLM
4. [Backend] Fetch bibliography in `.bib` files as raw text, and remove
irrelevant fields to save tokens
5. [Backend] Call XtraMCP to get paper abstract, using paper title as
key
6. [Backend] Query a fast LLM (hardcoded to `gpt-5.2` for now) to get at
most 3 citation keys
7. [Frontend] Suppress default Overleaf tab-completion to allow users to
accept citation suggestions
@wjiayis
Copy link
Member Author

wjiayis commented Feb 17, 2026

@Junyi-99 Are your changes on staging meant to be merged to main? If they are not, then feel free to merge #121 and close this PR.

@wjiayis wjiayis changed the title feat: tab completion for citation keys feat: tab completion for citation keys (from staging) Feb 17, 2026
@wjiayis wjiayis requested a review from Junyi-99 February 17, 2026 08:56
@wjiayis wjiayis self-assigned this Feb 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants