Skip to content

Commit caa52e3

Browse files
committed
Fixed spelling error
1 parent 60223db commit caa52e3

File tree

8 files changed

+15
-15
lines changed

8 files changed

+15
-15
lines changed

src/neo4j_graphrag/llm/anthropic_llm.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def invoke(
9999
Args:
100100
input (str): The text to send to the LLM.
101101
message_history (Optional[list]): A collection previous messages, with each message having a specific role assigned.
102-
system_instruction (Optional[str]): An option to override the llm system message for this invokation.
102+
system_instruction (Optional[str]): An option to override the llm system message for this invocation.
103103
104104
Returns:
105105
LLMResponse: The response from the LLM.
@@ -132,7 +132,7 @@ async def ainvoke(
132132
Args:
133133
input (str): The text to send to the LLM.
134134
message_history (Optional[list]): A collection previous messages, with each message having a specific role assigned.
135-
system_instruction (Optional[str]): An option to override the llm system message for this invokation.
135+
system_instruction (Optional[str]): An option to override the llm system message for this invocation.
136136
137137
Returns:
138138
LLMResponse: The response from the LLM.

src/neo4j_graphrag/llm/base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def invoke(
5353
Args:
5454
input (str): Text sent to the LLM.
5555
message_history (Optional[list]): A collection previous messages, with each message having a specific role assigned.
56-
system_instruction (Optional[str]): An option to override the llm system message for this invokation.
56+
system_instruction (Optional[str]): An option to override the llm system message for this invocation.
5757
5858
Returns:
5959
LLMResponse: The response from the LLM.
@@ -74,7 +74,7 @@ async def ainvoke(
7474
Args:
7575
input (str): Text sent to the LLM.
7676
message_history (Optional[list]): A collection previous messages, with each message having a specific role assigned.
77-
system_instruction (Optional[str]): An option to override the llm system message for this invokation.
77+
system_instruction (Optional[str]): An option to override the llm system message for this invocation.
7878
7979
Returns:
8080
LLMResponse: The response from the LLM.

src/neo4j_graphrag/llm/cohere_llm.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def invoke(
104104
Args:
105105
input (str): The text to send to the LLM.
106106
message_history (Optional[list]): A collection previous messages, with each message having a specific role assigned.
107-
system_instruction (Optional[str]): An option to override the llm system message for this invokation.
107+
system_instruction (Optional[str]): An option to override the llm system message for this invocation.
108108
109109
Returns:
110110
LLMResponse: The response from the LLM.
@@ -132,7 +132,7 @@ async def ainvoke(
132132
Args:
133133
input (str): The text to send to the LLM.
134134
message_history (Optional[list]): A collection previous messages, with each message having a specific role assigned.
135-
system_instruction (Optional[str]): An option to override the llm system message for this invokation.
135+
system_instruction (Optional[str]): An option to override the llm system message for this invocation.
136136
137137
Returns:
138138
LLMResponse: The response from the LLM.

src/neo4j_graphrag/llm/mistralai_llm.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def invoke(
9595
Args:
9696
input (str): Text sent to the LLM.
9797
message_history (Optional[list]): A collection previous messages, with each message having a specific role assigned.
98-
system_instruction (Optional[str]): An option to override the llm system message for this invokation.
98+
system_instruction (Optional[str]): An option to override the llm system message for this invocation.
9999
100100
Returns:
101101
LLMResponse: The response from MistralAI.
@@ -131,7 +131,7 @@ async def ainvoke(
131131
Args:
132132
input (str): Text sent to the LLM.
133133
message_history (Optional[list]): A collection previous messages, with each message having a specific role assigned.
134-
system_instruction (Optional[str]): An option to override the llm system message for this invokation.
134+
system_instruction (Optional[str]): An option to override the llm system message for this invocation.
135135
136136
Returns:
137137
LLMResponse: The response from MistralAI.

src/neo4j_graphrag/llm/ollama_llm.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def invoke(
8686
Args:
8787
input (str): The text to send to the LLM.
8888
message_history (Optional[list]): A collection previous messages, with each message having a specific role assigned.
89-
system_instruction (Optional[str]): An option to override the llm system message for this invokation.
89+
system_instruction (Optional[str]): An option to override the llm system message for this invocation.
9090
9191
Returns:
9292
LLMResponse: The response from the LLM.
@@ -114,7 +114,7 @@ async def ainvoke(
114114
Args:
115115
input (str): Text sent to the LLM.
116116
message_history (Optional[list]): A collection previous messages, with each message having a specific role assigned.
117-
system_instruction (Optional[str]): An option to override the llm system message for this invokation.
117+
system_instruction (Optional[str]): An option to override the llm system message for this invocation.
118118
119119
Returns:
120120
LLMResponse: The response from OpenAI.

src/neo4j_graphrag/llm/openai_llm.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def invoke(
9595
Args:
9696
input (str): Text sent to the LLM.
9797
message_history (Optional[list]): A collection previous messages, with each message having a specific role assigned.
98-
system_instruction (Optional[str]): An option to override the llm system message for this invokation.
98+
system_instruction (Optional[str]): An option to override the llm system message for this invocation.
9999
100100
Returns:
101101
LLMResponse: The response from OpenAI.
@@ -126,7 +126,7 @@ async def ainvoke(
126126
Args:
127127
input (str): Text sent to the LLM.
128128
message_history (Optional[list]): A collection previous messages, with each message having a specific role assigned.
129-
system_instruction (Optional[str]): An option to override the llm system message for this invokation.
129+
system_instruction (Optional[str]): An option to override the llm system message for this invocation.
130130
131131
Returns:
132132
LLMResponse: The response from OpenAI.

src/neo4j_graphrag/llm/vertexai_llm.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ def invoke(
114114
Args:
115115
input (str): The text to send to the LLM.
116116
message_history (Optional[list]): A collection previous messages, with each message having a specific role assigned.
117-
system_instruction (Optional[str]): An option to override the llm system message for this invokation.
117+
system_instruction (Optional[str]): An option to override the llm system message for this invocation.
118118
119119
Returns:
120120
LLMResponse: The response from the LLM.
@@ -143,7 +143,7 @@ async def ainvoke(
143143
Args:
144144
input (str): The text to send to the LLM.
145145
message_history (Optional[list]): A collection previous messages, with each message having a specific role assigned.
146-
system_instruction (Optional[str]): An option to override the llm system message for this invokation.
146+
system_instruction (Optional[str]): An option to override the llm system message for this invocation.
147147
148148
Returns:
149149
LLMResponse: The response from the LLM.

tests/unit/llm/test_mistralai_llm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def test_mistralai_llm_invoke_with_message_history_and_system_instruction(
9696
]
9797
question = "What about next season?"
9898

99-
# first invokation - initial instructions
99+
# first invocation - initial instructions
100100
res = llm.invoke(question, message_history, system_instruction=system_instruction) # type: ignore
101101
assert isinstance(res, LLMResponse)
102102
assert res.content == "mistral response"

0 commit comments

Comments
 (0)