Skip to content

Commit 3750686

Browse files
authored
Fix typos in the repo (agentscope-ai#530)
1 parent 5d13129 commit 3750686

12 files changed

Lines changed: 20 additions & 20 deletions

File tree

docs/tutorial/en/source/tutorial/rag.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272

7373
flex_knowledge_config = {
7474
"knowledge_id": "agentscope_qa_flex",
75-
"knowlege_type": "llamaindex_knowledge",
75+
"knowledge_type": "llamaindex_knowledge",
7676
"emb_model_config_name": "qwen_emb_config",
7777
"chunk_size": 1024,
7878
"chunk_overlap": 40,

docs/tutorial/zh/source/tutorial/rag.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767

6868
flex_knowledge_config = {
6969
"knowledge_id": "agentscope_qa_flex",
70-
"knowlege_type": "llamaindex_knowledge",
70+
"knowledge_type": "llamaindex_knowledge",
7171
"emb_model_config_name": "qwen_emb_config",
7272
"chunk_size": 1024,
7373
"chunk_overlap": 40,
@@ -119,8 +119,8 @@
119119
# %%
120120
# Create a Batch of Knowledge Instances
121121
# ----------------------------------------------
122-
# For some cases where different knowledge sources exists and require different preprocessing and/or post-proprocess, a good strategy is to create multiple knolwedge instances.
123-
# Thus, we introduce `KnowledgeBank` to better manage the knowledge instances. One can initialize a batch of knowledge with a file of mulltiple knodledge configurations.
122+
# For some cases where different knowledge sources exists and require different preprocessing and/or post-process, a good strategy is to create multiple knowledge instances.
123+
# Thus, we introduce `KnowledgeBank` to better manage the knowledge instances. One can initialize a batch of knowledge with a file of multiple knowledge configurations.
124124
#
125125
# .. code-block:: python
126126
#

examples/conversation_nl2sql/sql_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,8 @@ def __init__(self) -> None:
112112
self.template_info = "/* Given the following database schema: */\n{}"
113113
self.template_question = "/* Answer the following: {} */"
114114
self.template_agent_prompt = (
115-
"You are a helpful agent that preform"
116-
"SQL querys base on natural language instructions."
115+
"You are a helpful agent that perform"
116+
"SQL queries base on natural language instructions."
117117
"Please describe the database schema provided"
118118
"in a simple and understandable manner. "
119119
)

examples/conversation_with_RAG_agents/configs/knowledge_config.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[
22
{
33
"knowledge_id": "agentscope_code_rag",
4-
"knowlege_type": "llamaindex_knowledge",
4+
"knowledge_type": "llamaindex_knowledge",
55
"emb_model_config_name": "qwen_emb_config",
66
"chunk_size": 2048,
77
"chunk_overlap": 40,
@@ -39,7 +39,7 @@
3939
},
4040
{
4141
"knowledge_id": "agentscope_api_rag",
42-
"knowlege_type": "llamaindex_knowledge",
42+
"knowledge_type": "llamaindex_knowledge",
4343
"emb_model_config_name": "qwen_emb_config",
4444
"chunk_size": 1024,
4545
"chunk_overlap": 40,

examples/conversation_with_RAG_agents/rag_example.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def main() -> None:
9191
},
9292
)
9393

94-
# let knowledgebank to equip rag agent with a (set of) knowledge
94+
# let knowledge_bank to equip rag agent with a (set of) knowledge
9595
# corresponding to its knowledge_id_list
9696
for agent in rag_agent_list:
9797
knowledge_bank.equip(agent, agent.knowledge_id_list)

examples/conversation_with_codeact_agent/codeact_agent_example_tools.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"More details can be found in the project's related [github repo](https://github.com/xingyaoww/code-act). \n",
1111
"\n",
1212
"In the following CodeAct agent example, we demonstrate another method of empowering the agent with the capability to invoke tools, specifically by directly providing the agent with the corresponding code for the tools and then allowing the agent to utilize them independently.\n",
13-
"Interm of tool usage, ReAct agent also enables the agent to use tools to solve problems, but in a different way. You can refer to the [ReAct agent](https://github.com/modelscope/agentscope/blob/main/examples/conversation_with_react_agent/main.ipynb) example for more details and compare the two.\n",
13+
"In term of tool usage, ReAct agent also enables the agent to use tools to solve problems, but in a different way. You can refer to the [ReAct agent](https://github.com/modelscope/agentscope/blob/main/examples/conversation_with_react_agent/main.ipynb) example for more details and compare the two.\n",
1414
"\n",
1515
"## Prerequisites\n",
1616
"\n",

examples/conversation_with_swe-agent/main.ipynb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@
1010
"More details can be found in the project's [homepage](https://swe-agent.com/) and related [github repo](https://swe-agent.com/).\n",
1111
"\n",
1212
"In the example here, we partially implement the SWE-agent, and provide a simple example of how to use the implemented SWE-agent to fix a bug in a python file.\n",
13-
"You should note that currently how to enable agents with stronger programming capabilities remains an open challenge, and the performance of the paritially implemented SWE-agent is not guaranteed.\n",
13+
"You should note that currently how to enable agents with stronger programming capabilities remains an open challenge, and the performance of the partially implemented SWE-agent is not guaranteed.\n",
1414
"\n",
1515
"## Prerequisites\n",
1616
"\n",
17-
"- Follow [READMD.md](https://github.com/modelscope/agentscope) to install AgentScope. We require the lastest version, so you should build from source by running `pip install -e .` instead of intalling from pypi. \n",
17+
"- Follow [README.md](https://github.com/modelscope/agentscope) to install AgentScope. We require the latest version, so you should build from source by running `pip install -e .` instead of installing from pypi. \n",
1818
"- Prepare a model configuration. AgentScope supports both local deployed model services (CPU or GPU) and third-party services. More details and example model configurations please refer to our [tutorial](https://doc.agentscope.io/build_tutorial/model.html).\n",
1919
"- Understand the ServiceToolkit module and how to use it to pre-process the tool functions for LLMs. You can refer to the [ReAct agent example](../conversation_with_react_agent/main.ipynb) and you should also refer to the [tutorial](https://doc.agentscope.io/build_tutorial/tool.html) for service functions.\n",
2020
"\n",
@@ -55,7 +55,7 @@
5555
"\n",
5656
"The code of SWE-agent is in `swe_agent.py`, and the related prompts are in `swe_agent_prompts.py`.\n",
5757
"\n",
58-
"If you are interested in the details, please refer to the code and the origianl SWE-agent repo [here](https://github.com/princeton-nlp/SWE-agent)."
58+
"If you are interested in the details, please refer to the code and the original SWE-agent repo [here](https://github.com/princeton-nlp/SWE-agent)."
5959
]
6060
},
6161
{
@@ -228,7 +228,7 @@
228228
"}\n",
229229
"assistant: \n",
230230
"====Observation====\n",
231-
"Current task finished, exitting.\n"
231+
"Current task finished, exiting.\n"
232232
]
233233
}
234234
],
@@ -261,7 +261,7 @@
261261
"Above we shown a example of how to use the SWE-agent to fix code errors.\n",
262262
"Although the design of the SWE-agent is primarily aimed at addressing GitHub issues, with modifications, it can also be utilized for more general programming tasks.\n",
263263
"\n",
264-
"Currently, how to enable agent with general programming ablities remains a challenging open question, with the efficacy of agent programming potentially influenced by factors such as prompt construction, model capabilities, and the complexity of the task at hand. Here we just provide an interesting toy example. \n",
264+
"Currently, how to enable agent with general programming abilities remains a challenging open question, with the efficacy of agent programming potentially influenced by factors such as prompt construction, model capabilities, and the complexity of the task at hand. Here we just provide an interesting toy example. \n",
265265
"\n",
266266
"We encourage users to experiment by altering the prompts within this example or by assigning different tasks to the agent, among other methods of exploration. Please feel free to experiment and explore on your own. The AgentScope team will continue to provide updates, enhancing the capabilities of the Programming Agents in the future!"
267267
]

src/agentscope/rag/knowledge.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ def build_knowledge_instance(
154154
"""
155155
raise NotImplementedError(
156156
f"{knowledge_id} of {cls.__name__} does not support "
157-
"auto build knowledgebase",
157+
"auto build knowledge base instance",
158158
)
159159

160160
def post_processing(

src/agentscope/rag/llama_index_knowledge.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -826,7 +826,7 @@ def build_knowledge_instance(
826826
"""
827827
{
828828
"knowledge_id": "xxx_rag",
829-
"knowlege_type": "llamaindex_knowledge",
829+
"knowledge_type": "llamaindex_knowledge",
830830
"emb_model_config_name": "qwen_emb_config",
831831
....
832832
}

src/agentscope/service/multi_modality/dashscope_services.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ def dashscope_text_to_audio(
233233
The model to use. Full model list can be found in
234234
https://help.aliyun.com/zh/dashscope/model-list
235235
sample_rate (`int`, defaults to 48000):
236-
Samplerate of the audio.
236+
Sample rate of the audio.
237237
238238
Returns:
239239
`ServiceResponse`:

0 commit comments

Comments
 (0)