Skip to content

Commit 47db936

Browse files
Update PremAI.md
1 parent 052e4c3 commit 47db936

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/api/language_model_clients/PremAI.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,9 @@ Internally, the method handles the specifics of preparing the request prompt and
7070

7171
Writing Prompt Templates can be super messy. Prompt templates are long, hard to manage, and must be continuously tweaked to improve and keep the same throughout the application.
7272

73-
With **Prem**, writing and managing prompts can be super easy. The **_Templates_** tab inside the [launchpad](https://docs.premai.io/get-started/launchpad) helps you write as many prompts you need and use it inside the SDK to make your application running using those prompts. You can read more about Prompt Templates [here](https://docs.premai.io/get-started/prem-templates).
73+
With **Prem**, writing and managing prompts can be super easy. The **_Templates_** tab inside the [launchpad](https://docs.premai.io/get-started/launchpad) helps you write as many prompts as you need and use it inside the SDK to make your application run using those prompts. You can read more about Prompt Templates [here](https://docs.premai.io/get-started/prem-templates).
7474

75-
Using templates in DsPY is quite easy. First, here is an example of a prompt template which you store / re-iterate inside Prem.
75+
Using templates in DSPy is quite easy. First, here is an example of a prompt template that you store / re-iterate inside Prem.
7676

7777
```python
7878
template = """
@@ -81,9 +81,9 @@ ${content}
8181
"""
8282
```
8383

84-
**Please note:** This prompt template is something you do not define in your python code. This is an example of template which will be present in the Platform. All you need is a template id associated with the template.
84+
**Please note:** Prompt templates are not defined in Python code. Here is an example of a Template, which has an associated template id.
8585

86-
Assuming this prompt template is stored under a template with id: `78069ce8-xxxxx-xxxxx-xxxx-xxx` then this is how you will be using it.
86+
Assuming this prompt template is stored under a template with id: `78069ce8-xxxxx-xxxxx-xxxx-xxx`:
8787

8888
```python
8989
from dspy import PremAI
@@ -106,7 +106,7 @@ response = client(
106106
print(response)
107107
```
108108

109-
When you use templates, there is no need to place `msg` / prompt inside the `prompt` argument. DsPY only accepts string prompts to conduct LLM requests, but we might require multiple string inputs when using templates. Hence, provide those in the `params` argument, which should be mapped with the template variable. Our example template had one variable `content`, so our params become: `{"content": msg}`. You can provide multiple keys and values.
109+
When you use templates, there is no need to place `msg` / prompt inside the `prompt` argument. DSPy only accepts string prompts to conduct LLM requests, but we might require multiple string inputs when using templates. Templates allow you to provide additional inputs (key:value pairs) within the `params` argument, which should be mapped with the template variable. Our example template had one variable `content`, so our params become: `{"content": msg}`.
110110

111111
### Native RAG Support
112112

0 commit comments

Comments
 (0)