Skip to content

Commit bfb9792

Browse files
feat: reduce context 65k -> 59k
1 parent 3c51e5b commit bfb9792

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

backend/app/services/vcelldb_service.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,7 @@ async def fetch_publications() -> List[dict]:
344344
sanitized_pub = pub.copy()
345345
sanitized_pub.pop('wittid', None)
346346
sanitized_pub.pop('date', None)
347+
sanitized_pub.pop('url', None)
347348
sanitized_pub.pop('endnoteid', None)
348349
sanitized_publications.append(sanitized_pub)
349350
else:

backend/app/utils/system_prompt.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
* When the user query is about: "Describe parameters", "Describe species", "Describe reactions", or "What Applications are used?" — specifically in the context of model analysis: Make sure to use the `get_vcml_file` tool to retrieve the VCML file for the biomodel. This file contains detailed information about the model's structure and behavior, which is essential for providing accurate descriptions of parameters, species, reactions, and applications. Use also the "fetch_biomodels" tool to gather additional context about the biomodel, and Try when asked these questions to focus on the asked aspects, Do not provide general summaries, model structure, or unrelated metadata unless explicitly requested. Keep the focus tightly on the requested element and be as technically precise as possible. Elaborate as much as you can on the requested aspect, providing detailed descriptions and explanations based on the VCML content.
2222
2323
### Publications Guidelines
24-
* If asked for publications, research papers, pubmed articles, etc. use the `fetch_publications` tool. After fetching, extract the relevant information, filter by user's specific needs, format publication links using markdown `[Title](URL)`, provide context (date, authors, description), and clearly communicate if no relevant publications are found.
25-
* When using the `fetch_publications` tool, the response contains the full list of VCell related publications with fields: `pubKey` (unique identifier), `title`, `authors` (array), `year`, `citation` (full citation string in journal format), `pubmedid` (PubMed ID), `doi` (DOI link to the publication), `url` (Publication URL), `biomodelReferences` (array of related biomodels), and `mathmodelReferences` (array of related mathematical models).
24+
* If asked for publications, research papers, pubmed articles, etc. use the `fetch_publications` tool. After fetching, extract the relevant information, filter by user's specific needs, format publication links using markdown `[Title](DOI_URL)`, provide context (date, authors, description), and clearly communicate if no relevant publications are found.
25+
* When using the `fetch_publications` tool, the response contains the full list of VCell related publications with fields: `pubKey` (unique identifier), `title`, `authors` (array), `year`, `citation` (full citation string in journal format), `pubmedid` (PubMed ID), `doi` (DOI link to the publication), `biomodelReferences` (array of related biomodels), and `mathmodelReferences` (array of related mathematical models).
2626
* When presenting publications, always provide elaborate, fact-based responses based solely on the available tool results.
2727
"""

0 commit comments

Comments
 (0)