crossmem_cite
Look up a citation by cite key and return it in the requested format.
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
cite_key | string | yes | — | Citation key, e.g. vaswani2017attention |
format | string | no | bibtex | One of: bibtex, apa, mla, chicago, ieee |
Returns
The formatted citation string extracted from the wiki file’s citation section.
Success
Vaswani, A., & Shazeer, N. (2017). Attention Is All You Need. arXiv preprint arXiv:1706.03762.
Cite key not found
If the cite key doesn’t match any wiki entry, returns the top 5 fuzzy matches:
Error: cite_key 'vaswani' not found. Did you mean:
- vaswani2017attention — Attention Is All You Need
Format not found
If the cite key exists but the wiki file is missing the requested citation section:
Error: cite_key 'vaswani2017attention' found but no APA citation section in wiki file.
File: /Users/you/crossmem/wiki/1776227300_vaswani2017attention.md
Fuzzy matching
When an exact match fails, the tool scores candidates by:
- Full cite key substring match (+10)
- Full title substring match (+5)
- Per-token cite key match (+3 each)
- Per-token title match (+2 each)
The top 5 candidates are returned as suggestions.