# Training in a long prompt

**URL:** <https://discuss.huggingface.co/t/training-in-a-long-prompt/69000>\
**Category:** Beginners\
**Created:** [January 13, 2024, 6:58am UTC](https://discuss.huggingface.co/t/training-in-a-long-prompt/69000 "2024-01-13T06:58:47Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![markpeace](https://avatars.discourse-cdn.com/v4/letter/m/aca169/32.png) [@markpeace](https://discuss.huggingface.co/u/markpeace)\
**Post date:** [January 13, 2024, 6:58am UTC](https://discuss.huggingface.co/t/training-in-a-long-prompt/69000/1 "2024-01-13T06:58:47Z")

</div>

Hi! I’m just getting started so hopefully this isn’t too daft a question! I’ve constructed a prompt that instructs the LLM on how it should coach users to form goals and finds ways of achieving them. It also explains how it should format it outputs in JSON to interact with a front-end JS chatbot

At the moment, its included as a prompt template, but its pretty big … is there a way of ‘training in’ the prompt so that it doesn’t have to be sent for every interaction?

---

<div class="post-metadata">

**Author:** ![dblakely](https://avatars.discourse-cdn.com/v4/letter/d/54ee81/32.png) [@dblakely](https://discuss.huggingface.co/u/dblakely)\
**Post date:** [January 14, 2024, 9:38pm UTC](https://discuss.huggingface.co/t/training-in-a-long-prompt/69000/2 "2024-01-14T21:38:24Z")

</div>

Hi @markpeace, is the prompt always the same?

---

<div class="post-metadata">

**Author:** ![markpeace](https://avatars.discourse-cdn.com/v4/letter/m/aca169/32.png) [@markpeace](https://discuss.huggingface.co/u/markpeace)\
**Post date:** [January 14, 2024, 10:04pm UTC](https://discuss.huggingface.co/t/training-in-a-long-prompt/69000/3 "2024-01-14T22:04:01Z")

</div>

Yup - and then user input appended to the end

---

<div class="post-metadata">

**Author:** ![dblakely](https://avatars.discourse-cdn.com/v4/letter/d/54ee81/32.png) [@dblakely](https://discuss.huggingface.co/u/dblakely)\
**Post date:** [January 15, 2024, 5:44pm UTC](https://discuss.huggingface.co/t/training-in-a-long-prompt/69000/4 "2024-01-15T17:44:15Z")

</div>

@markpeace Then yeah if you finetune your model with the user inputs and the desired outputs, you can probably omit the prompt and the model will implicitly learn it. Or maybe you can train with a simplified/condensed version instead of the long version.
