Skip to content

Commit

Permalink
infinitive
Browse files Browse the repository at this point in the history
  • Loading branch information
slobentanzer committed Nov 30, 2023
1 parent 57a2acc commit 201d64c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/chat.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

BioChatter provides access to chat functionality via the `Conversation` class, which is implemented in several child classes (in the `llm_connect.py` module) to account for differences in APIs of the LLMs.

## Set up the conversation
## Setting up the conversation

To start a conversation, we can initialise the Conversation class (here exemplified by GPT):

Expand All @@ -23,7 +23,7 @@ conversation.append_system_message("System Message")

Similarly, the user queries (`HumanMessage`) are passed to the conversation using `convo.append_user_message("User Message")`. For purposes of keeping track of the conversation history, we can also append the model's responses as `AIMessage` using `convo.append_ai_message`.

## Query the model
## Querying the model

After setting up the conversation in this way, for instance by establishing a flattery component (e.g. 'You are an assistant to a researcher ...'), the model can be queried using the `query` function.

Expand Down

0 comments on commit 201d64c

Please sign in to comment.