You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+9-16Lines changed: 9 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -114,32 +114,25 @@ print(chat) # {'message': "It's been great! How about yours?", 'time': '11', 'e
114
114
115
115
116
116
### Context
117
-
YouDotCom YouChat also supports context to be used.
118
-
you can pass a list or a file (.json)
119
-
120
-
```json
121
-
{
122
-
"context": [
123
-
"my name is test",
124
-
"i love coding",
125
-
"my hobby's are taking pictures in nature"
126
-
]
127
-
}
128
-
```
117
+
YouDotCom's YouChat feature is a powerful tool that allows for context to be utilized in your conversations. By passing a list or a file in the JSON format, you can provide the chatbot with additional information to better understand and respond to your questions.
118
+
119
+
To use the context option, you can change the way you send your message by using the `Chat.send_message` method. This method allows you to pass in a driver, a message, and a context_form_file or a context parameter.
129
120
130
-
to use the context option change your .send_message to:
121
+
For example, if you want to use a file, you can pass the file name as the `context_form_file` parameter, like this:
By providing context to your conversations, you can expect more accurate and personalized responses from YouChat, which can help to improve your overall experience.
0 commit comments