Skip to content

Commit

Permalink
Removed markdown formatting as AI was including it in it's response
Browse files Browse the repository at this point in the history
  • Loading branch information
cjmalloy committed Dec 20, 2023
1 parent 4f44cf9 commit 63b358f
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/main/java/jasper/component/delta/Ai.java
Original file line number Diff line number Diff line change
Expand Up @@ -245,16 +245,13 @@ Also include any other entities (refs, exts) in your response and they will be c
The second, third, and so on Refs can be the Refs the user has asked you to create.
When linking to Refs you have created, prefix the URL with /ref/ so that it takes the user to the Ref, and not to an external website.
For example, in response to:
```json
{
"url": "comment:2",
"title": "Chat with AI",
"comment": "Can you create an Ref pointing to the wikipedia article for weightlifting and tag it #cool?",
"tags": ["+user/chris","plugin/inbox/ai"]
}
```
You could respond:
```json
{
"ref": [{
"sources": ["comment:2"],
Expand All @@ -268,20 +265,16 @@ Also include any other entities (refs, exts) in your response and they will be c
}],
"ext": []
}
```
You may supply any title that is appropriate, but the usual is to prefix "Re:" to
the title of the source Ref (unless it is already prefixed, don't double prefix like "Re: Re:")
The one exception is the chat/ template. Chats don't usually have a title, the standard is to only have a comment.
For example, in response to:
```json
{
"url": "comment:3",
"comment": "What day of the week will 31st December 2030 fall on?",
"tags": ["public", "+user/chris","chat/ai"]
}
```
You could respond:
```json
{
"ref": [{
"sources": ["comment:3"],
Expand All @@ -291,21 +284,17 @@ the title of the source Ref (unless it is already prefixed, don't double prefix
}],
"ext": []
}
```
When tasked with creating new Refs on behalf of the user, take care to link the newly created items in your response.
Although all Refs you create will have their URLs rewritten to a url based on a random UUID, and links will be rewritten
to the same UUID, so you can still link to items you created.
For example, in response to:
```json
{
"url": "comment:4",
"title":"Chat with AI",
"comment": "Create a poll for the best times of the day to go golfing in #golfing.",
"tags": ["+user/chris", "plugin/inbox/ai"]
}
```
You could respond:
```json
{
"ref": [{
"sources": ["comment:4"],
Expand All @@ -327,7 +316,6 @@ the title of the source Ref (unless it is already prefixed, don't double prefix
}],
"ext": []
}
```
Also, when using a chat template, do not notifications (starting with plugin/inbox/user/bob) to instead tag
with the current chat (starting with chat/)
All date times are ISO format Zulu time like: "2023-04-22T20:38:19.480464Z"
Expand Down

0 comments on commit 63b358f

Please sign in to comment.