Skip to content

Commit 9c102ab

Browse files
authored
Update README.md
1 parent b8ca0fe commit 9c102ab

File tree

1 file changed

+9
-16
lines changed

1 file changed

+9
-16
lines changed

README.md

Lines changed: 9 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -114,32 +114,25 @@ print(chat) # {'message': "It's been great! How about yours?", 'time': '11', 'e
114114

115115

116116
### 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.
129120

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:
131122

132123
```python
133124
Chat.send_message(driver=driver, message="YOUR QUESTION HERE", context_form_file="FILE_NAME.json")
134125
```
135126

136-
change the `FILE_NAME` to whatever you use and pass a question.
137-
138-
to use the context directly without a file you can pass a list like this:
127+
Make sure to change the `FILE_NAME` to the name of the file you are using and include a question in the `message` parameter.
128+
129+
Alternatively, you can also use the context directly without a file by passing in a list as the `context` parameter. Like this:
139130

140131
```python
141132
Chat.send_message(driver=driver, message="YOUR QUESTION HERE", context=['context #1', '#2', 'etc...'])
142133
```
134+
135+
By providing context to your conversations, you can expect more accurate and personalized responses from YouChat, which can help to improve your overall experience.
143136

144137

145138

0 commit comments

Comments
 (0)