peptidedigest.model_prompts#

Functions for generating model prompts for the Peptide Digest LLM.

Module Contents#

Functions#

summarize_article_segments(fulltext, tokenizer, model)

Summarizes a scientific article into bullet points and a concise summary.

summarize_article_meta(fulltext, tokenizer, model)

score_texts_peptide_research(texts_to_score, summary, ...)

peptidedigest.model_prompts.summarize_article_segments(fulltext, tokenizer, model)[source]#

Summarizes a scientific article into bullet points and a concise summary.

Parameters:

fulltext (list of str) – A list of text chunks from a scientific article.

Returns:

  • final_summary (str) – A concise summary of the scientific article.

  • bullet_points (str) – Bullet points summarizing the scientific article.

peptidedigest.model_prompts.summarize_article_meta(fulltext, tokenizer, model)[source]#
peptidedigest.model_prompts.score_texts_peptide_research(texts_to_score, summary, bullet_points, metadata, tokenizer, model)[source]#