semantic-kernel
semantic-kernel copied to clipboard
Integrate cutting-edge LLM technology quickly and easily into your apps
Consider Checking for Malformed {{ and }} brackets and Give Nice Error in prompt_template_engine.py
https://github.com/microsoft/semantic-kernel/blob/8590ec5e446715e4ec8e0cd7aa59bb54e3f2d09a/python/semantic_kernel/template_engine/prompt_template_engine.py#L161-L172 Consider adding in a check of open / closed ```{{``` and ```}}``` to give a nice error clue: Possible solution if leading ```}}``` is valid: ``` while cursor <...
https://github.com/microsoft/semantic-kernel/blob/8590ec5e446715e4ec8e0cd7aa59bb54e3f2d09a/python/semantic_kernel/memory/volatile_memory_store.py#L35-L38 Possible divide by zero if ```linalg.norm``` returns a 0. Possible fix: ``` # Calculate the L2 norm (Euclidean norm) of the query embedding query_norm = linalg.norm(embedding) # Calculate the...
We have a few configuration classes in the python version like `BackendConfig`, `OpenAIConfig`, `AzureOpenAIConfig` etc. We perform operations like loading these configs from .env files using helper methods like `utils.settings::openai_settings_from_dot_env`...
**Describe the bug** GitHub Repo Q&A Bot Sample app returns following error: Something went wrong. Please try again. Details: {Bad Request => FunctionNotFound: Function `textmemoryskill.recall` not found} A clear and...
### Motivation and Context Attempt to make the code slightly more pythonic (work in progress). ### Description The builder pattern (including the chained configuration) felt a bit out of place...
**Describe the bug** Following the same code in [README](https://github.com/microsoft/semantic-kernel/blob/main/README.md) using the gpt-35-turbo model, returned bad request from azure openai. The reason is best_of is not supported at 3.5-turbo model. **To...
### Motivation and Context It is not obvious to users that Sample 4 currently only processes markdown files. ### Description 1. Add a paragraph in the sample 4 readme that...
### Motivation and Context This PR simplifies `@sk_*` decorators while porting the core TextSkill ### Description This PR is a first step at adapting the python codebase to be more...
Add a new SharePoint List Connector. Happy to contribute a PR for this :) Example feature SharePoint List Connector would unlock: "Create a SharePoint List of action items with these...
### Motivation and Context ### Description ### Contribution Checklist - [ ] The code builds clean without any errors or warnings - [ ] The PR follows SK Contribution Guidelines...