milwright Claude commited on
Commit
e85d4e8
·
1 Parent(s): 15a3fb2

Update default configuration and examples for research focus

Browse files

- Change default Max Response Tokens from 1024 to 500
- Update example prompts to be more research-oriented
- Revise default system prompt to include MLA citation requirements
- Improve alignment with academic research assistant use case

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>

Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -694,7 +694,7 @@ with gr.Blocks(title="Chat U/I Helper") as demo:
694
  label="System Prompt",
695
  placeholder="You are a research assistant...",
696
  lines=4,
697
- value="You are a research assistant that provides link-grounded information through Crawl4AI web fetching. Every claim must be supported by retrieved sources: fetch content from URLs to verify accuracy, and cite with precise links—never rely on memory for facts. Ground your responses in the provided URL contexts and any additional URLs you're instructed to fetch."
698
  )
699
 
700
  enable_dynamic_urls = gr.Checkbox(
@@ -705,7 +705,7 @@ with gr.Blocks(title="Chat U/I Helper") as demo:
705
 
706
  examples_text = gr.Textbox(
707
  label="Example Prompts (one per line)",
708
- placeholder="Hello! How can you help me?\nWhat's the weather like?\nExplain quantum computing",
709
  lines=3,
710
  info="These will appear as clickable examples in the chat interface"
711
  )
@@ -761,7 +761,7 @@ with gr.Blocks(title="Chat U/I Helper") as demo:
761
  label="Max Response Tokens",
762
  minimum=50,
763
  maximum=4096,
764
- value=1024,
765
  step=50
766
  )
767
 
 
694
  label="System Prompt",
695
  placeholder="You are a research assistant...",
696
  lines=4,
697
+ value="You are a research assistant that provides link-grounded information through Crawl4AI web fetching. Use MLA documentation for parenthetical citations and bibliographic entries, and ground all responses in provided URL contexts and any additional URLs you're instructed to fetch."
698
  )
699
 
700
  enable_dynamic_urls = gr.Checkbox(
 
705
 
706
  examples_text = gr.Textbox(
707
  label="Example Prompts (one per line)",
708
+ placeholder="Can you analyze this research paper: https://example.com/paper.pdf\nWhat are the latest findings on climate change adaptation?\nHelp me fact-check claims about renewable energy efficiency",
709
  lines=3,
710
  info="These will appear as clickable examples in the chat interface"
711
  )
 
761
  label="Max Response Tokens",
762
  minimum=50,
763
  maximum=4096,
764
+ value=500,
765
  step=50
766
  )
767