Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typos #1

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/cn/02.IntroduceSemanticKernel.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ import semantic_kernel.connectors.ai.open_ai as skaoai

kernel = sk.Kernel()
deployment, api_key, endpoint = sk.azure_openai_settings_from_dot_env()
kernel.add_chat_service("azure_chat_competion_service", skaoai.AzureChatCompletion(deployment,endpoint,api_key=api_key,api_version = "2023-07-01-preview"))
kernel.add_chat_service("azure_chat_completion_service", skaoai.AzureChatCompletion(deployment,endpoint,api_key=api_key,api_version = "2023-07-01-preview"))


```
Expand Down Expand Up @@ -135,9 +135,9 @@ pluginFunc = kernel.import_semantic_skill_from_directory(base_plugin,"TranslateP

```csharp

var transalteContent = await kernel.InvokeAsync( plugin["Basic"],new(){["input"] = "你好"});
var translateContent = await kernel.InvokeAsync( plugin["Basic"],new(){["input"] = "你好"});

transalteContent.GetValue();
translateContent.GetValue();


```
Expand Down
6 changes: 3 additions & 3 deletions docs/cn/03.Plugins.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ Translate {{$input}} into {{$language}}
{
"schema": 1,
"type": "completion",
"description": "Translate sentenses into a language of your choice",
"description": "Translate sentences into a language of your choice",
"completion": [
{
"max_tokens": 2000,
Expand All @@ -126,7 +126,7 @@ Translate {{$input}} into {{$language}}
"parameters": [
{
"name": "input",
"description": "sentense to translate",
"description": "sentence to translate",
"defaultValue": ""
},
{
Expand Down Expand Up @@ -190,7 +190,7 @@ using System.Globalization;

public class CompanySearchPlugin
{
[KernelFunction,Description("search employee infomation")]
[KernelFunction,Description("search employee information")]
public string EmployeeSearch(string input)
{
return "欢迎了解社保相关内容";
Expand Down
6 changes: 3 additions & 3 deletions docs/en/02.IntroduceSemanticKernel.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ import semantic_kernel.connectors.ai.open_ai as skaoai

kernel = sk.Kernel()
deployment, api_key, endpoint = sk.azure_openai_settings_from_dot_env()
kernel.add_chat_service("azure_chat_competion_service", skaoai.AzureChatCompletion(deployment,endpoint,api_key=api_key,api_version = "2023-07-01-preview"))
kernel.add_chat_service("azure_chat_completion_service", skaoai.AzureChatCompletion(deployment,endpoint,api_key=api_key,api_version = "2023-07-01-preview"))


```
Expand Down Expand Up @@ -134,9 +134,9 @@ pluginFunc = kernel.import_semantic_skill_from_directory(base_plugin,"TranslateP

```csharp

var transalteContent = await kernel.InvokeAsync( plugin["Basic"],new(){["input"] = "你好,我是你的 AI 编排助手 - Semantic Kernel"});
var translateContent = await kernel.InvokeAsync( plugin["Basic"],new(){["input"] = "你好,我是你的 AI 编排助手 - Semantic Kernel"});

transalteContent.GetValue();
translateContent.GetValue();


```
Expand Down
6 changes: 3 additions & 3 deletions docs/en/03.Plugins.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ Our job here is to translate the input content into a specific language. Input a
{
"schema": 1,
"type": "completion",
"description": "Translate sentenses into a language of your choice",
"description": "Translate sentences into a language of your choice",
"completion": [
{
"max_tokens": 2000,
Expand All @@ -122,7 +122,7 @@ Our job here is to translate the input content into a specific language. Input a
"parameters": [
{
"name": "input",
"description": "sentense to translate",
"description": "sentence to translate",
"defaultValue": ""
},
{
Expand Down Expand Up @@ -185,7 +185,7 @@ using System.Globalization;

public class CompanySearchPlugin
{
[KernelFunction,Description("search employee infomation")]
[KernelFunction,Description("search employee information")]
public string EmployeeSearch(string input)
{
return "talk about hr information";
Expand Down
4 changes: 2 additions & 2 deletions notebooks/dotNET/02/LearnSK.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@
},
"outputs": [],
"source": [
"var transalteContent = await kernel.InvokeAsync( plugin[\"Basic\"],new(){[\"input\"] = \"你好,我是你的 AI 编排助手 - Semantic Kernel\"});"
"var translateContent = await kernel.InvokeAsync( plugin[\"Basic\"],new(){[\"input\"] = \"你好,我是你的 AI 编排助手 - Semantic Kernel\"});"
]
},
{
Expand Down Expand Up @@ -197,7 +197,7 @@
}
],
"source": [
"transalteContent.GetValue<string>()"
"translateContent.GetValue<string>()"
]
}
],
Expand Down
4 changes: 2 additions & 2 deletions notebooks/dotNET/03/PluginWithSK.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@
},
"outputs": [],
"source": [
"var transalteContent = await kernel.InvokeAsync( translate_plugin[\"MultiLanguage\"],new(){[\"input\"] = \"hello\",[\"language\"]=\"fr\"});"
"var translateContent = await kernel.InvokeAsync( translate_plugin[\"MultiLanguage\"],new(){[\"input\"] = \"hello\",[\"language\"]=\"fr\"});"
]
},
{
Expand Down Expand Up @@ -308,7 +308,7 @@
}
],
"source": [
"transalteContent.GetValue<string>()"
"translateContent.GetValue<string>()"
]
},
{
Expand Down
4 changes: 2 additions & 2 deletions notebooks/dotNET/04/PlannerWithSK.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@
},
"outputs": [],
"source": [
"var writetPlugin = kernel.ImportPluginFromPromptDirectory(Path.Combine(pluginDirectory, \"WriterPlugin\"));\n",
"var writerPlugin = kernel.ImportPluginFromPromptDirectory(Path.Combine(pluginDirectory, \"WriterPlugin\"));\n",
"var emailPlugin = kernel.ImportPluginFromPromptDirectory(Path.Combine(pluginDirectory, \"EmailPlugin\"));\n",
"var translatePlugin = kernel.ImportPluginFromPromptDirectory(Path.Combine(pluginDirectory, \"TranslatePlugin\"));"
]
Expand All @@ -195,7 +195,7 @@
"outputs": [],
"source": [
"string goal = \"\"\"\n",
"Check the weather in Guangzhou, use spanish to write emails abount dressing tips based on the results\n",
"Check the weather in Guangzhou, use spanish to write emails about dressing tips based on the results\n",
"\"\"\";"
]
},
Expand Down
2 changes: 1 addition & 1 deletion notebooks/python/02/LearnSK.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@
}
],
"source": [
"kernel.add_text_completion_service(\"azure_text_competion_service\", skaoai.AzureTextCompletion(deployment,endpoint,api_key=api_key))"
"kernel.add_text_completion_service(\"azure_text_completion_service\", skaoai.AzureTextCompletion(deployment,endpoint,api_key=api_key))"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion notebooks/python/03/FunctionCallWithSK.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@
}
],
"source": [
"kernel.add_chat_service(\"azure_chat_competion_service\", AzureChatCompletion(deployment,endpoint,api_key=api_key,api_version = \"2023-12-01-preview\"))"
"kernel.add_chat_service(\"azure_chat_completion_service\", AzureChatCompletion(deployment,endpoint,api_key=api_key,api_version = \"2023-12-01-preview\"))"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion notebooks/python/03/PluginWithSK.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@
}
],
"source": [
"kernel.add_chat_service(\"azure_chat_competion_service\", skaoai.AzureChatCompletion(deployment,endpoint,api_key=api_key))"
"kernel.add_chat_service(\"azure_chat_completion_service\", skaoai.AzureChatCompletion(deployment,endpoint,api_key=api_key))"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion notebooks/python/04/PlannerWithSK.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
],
"source": [
"deployment, api_key, endpoint = sk.azure_openai_settings_from_dot_env()\n",
"kernel.add_chat_service(\"azure_chat_competion_service\", skaoai.AzureChatCompletion(deployment,endpoint,api_key=api_key,api_version = \"2023-12-01-preview\"))"
"kernel.add_chat_service(\"azure_chat_completion_service\", skaoai.AzureChatCompletion(deployment,endpoint,api_key=api_key,api_version = \"2023-12-01-preview\"))"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion notebooks/python/05/EmbeddingsWithSK.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@
"source": [
"\n",
"\n",
"kernel.add_chat_service(\"azure_chat_competion_service\", AzureChatCompletion(\"Your Azure OpenAI Service gpt-35-turbo Deployment Name\",endpoint,api_key=api_key,api_version = \"2023-12-01-preview\"))\n",
"kernel.add_chat_service(\"azure_chat_completion_service\", AzureChatCompletion(\"Your Azure OpenAI Service gpt-35-turbo Deployment Name\",endpoint,api_key=api_key,api_version = \"2023-12-01-preview\"))\n",
"\n",
"\n",
"kernel.add_text_embedding_generation_service(\n",
Expand Down
2 changes: 1 addition & 1 deletion plugins/CustomPlugin/CompanySearchPlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

public class CompanySearchPlugin
{
[KernelFunction,Description("search employee infomation")]
[KernelFunction,Description("search employee information")]
public string EmployeeSearch(string input)
{
return "欢迎了解社保相关内容";
Expand Down
4 changes: 2 additions & 2 deletions plugins/TranslatePlugin/MultiLanguage/config.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"schema": 1,
"type": "completion",
"description": "Translate sentenses into a language of your choice",
"description": "Translate sentences into a language of your choice",
"completion": {
"max_tokens": 2000,
"temperature": 0.7,
Expand All @@ -16,7 +16,7 @@
"parameters": [
{
"name": "input",
"description": "sentense to translate",
"description": "sentence to translate",
"defaultValue": ""
},
{
Expand Down
10 changes: 5 additions & 5 deletions workshop/dotNET/workshop1/data/notebook.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@
}
],
"source": [
"kernel.add_chat_service(\"azure_chat_competion_service\", skaoai.AzureChatCompletion(\"GPT3Model\",endpoint,api_key=api_key,api_version = \"2023-07-01-preview\"))\n",
"kernel.add_chat_service(\"azure_chat_completion_service\", skaoai.AzureChatCompletion(\"GPT3Model\",endpoint,api_key=api_key,api_version = \"2023-07-01-preview\"))\n",
"\n",
"\n",
"kernel.add_text_embedding_generation_service(\n",
Expand Down Expand Up @@ -179,7 +179,7 @@
"outputs": [],
"source": [
"nodes_files = os.listdir(\"./data/notes\")\n",
"transcrips_files = os.listdir(\"./data/transcripts\")"
"transcripts_files = os.listdir(\"./data/transcripts\")"
]
},
{
Expand Down Expand Up @@ -213,11 +213,11 @@
"metadata": {},
"outputs": [],
"source": [
"for f in transcrips_files:\n",
"for f in transcripts_files:\n",
" file = open(\"./data/transcripts/\"+f, \"r\") \n",
" content = file.read()\n",
" transcripsFunc = files_plugin[\"Transcrips\"]\n",
" result = transcripsFunc(content)\n",
" transcriptsFunc = files_plugin[\"Transcripts\"]\n",
" result = transcriptsFunc(content)\n",
" json_result = json.loads(result.result)\n",
" for item in json_result:\n",
" kblist.append(item)\n",
Expand Down
2 changes: 1 addition & 1 deletion workshop/dotNET/workshop1/notebook.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@
"foreach(var file in transcriptsFiles)\n",
"{\n",
" string content = File.ReadAllText(file.FullName);\n",
" var jsonResult = await kernel.InvokeAsync( filePlugin[\"Transcrips\"],new(){[\"input\"] = content});\n",
" var jsonResult = await kernel.InvokeAsync( filePlugin[\"Transcripts\"],new(){[\"input\"] = content});\n",
" var result = JsonSerializer.Deserialize<List<KB>>(jsonResult.ToString());\n",
" foreach(var item in result)\n",
" {\n",
Expand Down
10 changes: 5 additions & 5 deletions workshop/python/workshop1/data/notebook.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@
}
],
"source": [
"kernel.add_chat_service(\"azure_chat_competion_service\", skaoai.AzureChatCompletion(\"GPT3Model\",endpoint,api_key=api_key,api_version = \"2023-07-01-preview\"))\n",
"kernel.add_chat_service(\"azure_chat_completion_service\", skaoai.AzureChatCompletion(\"GPT3Model\",endpoint,api_key=api_key,api_version = \"2023-07-01-preview\"))\n",
"\n",
"\n",
"kernel.add_text_embedding_generation_service(\n",
Expand Down Expand Up @@ -179,7 +179,7 @@
"outputs": [],
"source": [
"nodes_files = os.listdir(\"./data/notes\")\n",
"transcrips_files = os.listdir(\"./data/transcripts\")"
"transcripts_files = os.listdir(\"./data/transcripts\")"
]
},
{
Expand Down Expand Up @@ -213,11 +213,11 @@
"metadata": {},
"outputs": [],
"source": [
"for f in transcrips_files:\n",
"for f in transcripts_files:\n",
" file = open(\"./data/transcripts/\"+f, \"r\") \n",
" content = file.read()\n",
" transcripsFunc = files_plugin[\"Transcrips\"]\n",
" result = transcripsFunc(content)\n",
" transcriptsFunc = files_plugin[\"Transcripts\"]\n",
" result = transcriptsFunc(content)\n",
" json_result = json.loads(result.result)\n",
" for item in json_result:\n",
" kblist.append(item)\n",
Expand Down
10 changes: 5 additions & 5 deletions workshop/python/workshop1/notebook.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@
}
],
"source": [
"kernel.add_chat_service(\"azure_chat_competion_service\", skaoai.AzureChatCompletion(\"GPT3Model\",endpoint,api_key=api_key,api_version = \"2023-07-01-preview\"))\n",
"kernel.add_chat_service(\"azure_chat_completion_service\", skaoai.AzureChatCompletion(\"GPT3Model\",endpoint,api_key=api_key,api_version = \"2023-07-01-preview\"))\n",
"\n",
"\n",
"kernel.add_text_embedding_generation_service(\n",
Expand Down Expand Up @@ -179,7 +179,7 @@
"outputs": [],
"source": [
"nodes_files = os.listdir(\"./data/notes\")\n",
"transcrips_files = os.listdir(\"./data/transcripts\")"
"transcripts_files = os.listdir(\"./data/transcripts\")"
]
},
{
Expand Down Expand Up @@ -213,11 +213,11 @@
"metadata": {},
"outputs": [],
"source": [
"for f in transcrips_files:\n",
"for f in transcripts_files:\n",
" file = open(\"./data/transcripts/\"+f, \"r\") \n",
" content = file.read()\n",
" transcripsFunc = files_plugin[\"Transcrips\"]\n",
" result = transcripsFunc(content)\n",
" transcriptsFunc = files_plugin[\"Transcripts\"]\n",
" result = transcriptsFunc(content)\n",
" json_result = json.loads(result.result)\n",
" for item in json_result:\n",
" kblist.append(item)\n",
Expand Down
2 changes: 1 addition & 1 deletion workshop/python/workshop2/genppt_notebook.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@
}
],
"source": [
"kernel.add_chat_service(\"azure_chat_competion_service\", skaoai.AzureChatCompletion(\"GPT3Model\",endpoint,api_key=api_key,api_version = \"2023-07-01-preview\"))"
"kernel.add_chat_service(\"azure_chat_completion_service\", skaoai.AzureChatCompletion(\"GPT3Model\",endpoint,api_key=api_key,api_version = \"2023-07-01-preview\"))"
]
},
{
Expand Down