Skip to content

Commit 1989605

Browse files
committed
style: fixed misspelled word
1 parent d6fa79a commit 1989605

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ PINECONE_API_KEY=PLEASE-ADD-ME
5050

5151
```console
5252
# example 1 - generic assistant
53-
python3 -m models.examples.prompt "your are a helpful assistant" "What analytics and accounting courses does Wharton offer?"
53+
python3 -m models.examples.prompt "you are a helpful assistant" "What analytics and accounting courses does Wharton offer?"
5454

5555
# example 2 - assistant with improved system prompting
5656
python3 -m models.examples.prompt "You are a student advisor at University of Pennsylvania. You provide concise answers of 100 words or less." "What analytics and accounting courses does Wharton offer?"

models/hybrid_search_retreiver.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,9 +160,9 @@ def rag(self, human_message: Union[str, HumanMessage]):
160160
following bullet points that follow are completely factual.
161161
You should prioritize these enumerated facts when formulating your response:"""
162162
)
163-
system_message_content = f"{leader} {'\n\n'.join(document_texts)}"
164-
system_message_content = (
165-
f"{leader} {''.join([f'\n\n{40 * "-"}\n{i + 1}.) {text}\n' for i, text in enumerate(document_texts)])}"
163+
separator = "\n\n" + "-" * 40 + "\n"
164+
system_message_content = f"{leader} " + "".join(
165+
[separator + f"{i + 1}.) {text}\n" for i, text in enumerate(document_texts)]
166166
)
167167
system_message = SystemMessage(content=system_message_content)
168168
# ---------------------------------------------------------------------

models/tests/test_openai.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ def test_03_test_openai_connectivity(self):
1717

1818
hsr = HybridSearchRetriever()
1919
retval = hsr.cached_chat_request(
20-
"your are a helpful assistant", "please return the value 'CORRECT' in all upper case."
20+
"you are a helpful assistant", "please return the value 'CORRECT' in all upper case."
2121
)
2222
assert retval.content == "CORRECT"

0 commit comments

Comments
 (0)