MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / get_unpushed_papers

Function get_unpushed_papers

skills/storage-helper/scripts/db_ops.py:787–798  ·  view source on GitHub ↗

Get papers that haven't been pushed yet

(limit: int = 100)

Source from the content-addressed store, hash-verified

785 (arxiv_id, doi, title, authors, institution, abstract, venue,
786 publish_date, embedding, embedding_model)
787 VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
788 """, (
789 paper_data.get("arxiv_id"),
790 paper_data.get("doi"),
791 paper_data.get("title"),
792 json.dumps(paper_data.get("authors", [])),
793 paper_data.get("institution"),
794 paper_data.get("abstract"),
795 paper_data.get("venue"),
796 paper_data.get("publish_date"),
797 json.dumps(paper_data.get("embedding", [])) if paper_data.get("embedding") else None,
798 paper_data.get("embedding_model", "text-embedding-3-small")
799 ))
800 conn.commit()
801 paper_id = cursor.lastrowid

Callers

nothing calls this directly

Calls 5

cursorMethod · 0.80
get_connectionFunction · 0.70
executeMethod · 0.45
fetchallMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected