Skip to content

Commit

Permalink
Update prompts.py
Browse files Browse the repository at this point in the history
  • Loading branch information
RCW2000 authored Mar 3, 2024
1 parent 857669b commit 3d8bd4d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions helpers/prompts.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ def extractConcepts(prompt: str, metadata):
" }, \n"
"{ }, \n"
"]\n"
"only output the json, include no notes or introductory statements"
"The entire output should be readable by a program that can interpret json"
)
bprompt="Using this: "+prompt+"/n"+SYS_PROMPT
messages = [
Expand Down Expand Up @@ -78,6 +80,9 @@ def graphPrompt(input: str, metadata:{}):
' "edge": "relationship between the two concepts, node_1 and node_2 in one or two sentences"\n'
" }, {...}\n"
"]"
"try to keep edges as short sumerized statements or single words"
"only output the json, include no notes or introductory statements"
"The entire output should be readable by a program that can interpret json"
)

USER_PROMPT = f"context: ```{input}``` \n\n output: "
Expand Down

0 comments on commit 3d8bd4d

Please sign in to comment.