Skip to content

Python: Fix for SemanticTextMemory Embedding issue#1816

Merged
shawncal merged 1 commit intomicrosoft:mainfrom
cschadewitz:python_fix_sem_txt_mem_emb
Jul 3, 2023
Merged

Python: Fix for SemanticTextMemory Embedding issue#1816
shawncal merged 1 commit intomicrosoft:mainfrom
cschadewitz:python_fix_sem_txt_mem_emb

Conversation

@cschadewitz
Copy link
Contributor

@cschadewitz cschadewitz commented Jul 3, 2023

Motivation and Context

  1. Why is this change required? To fix the SemanticTextMemory functionality
  2. What problem does it solve? Python: SemanticTextMemory creates MemoryRecord with improper embedding type #1815
  3. What scenario does it contribute to? All scenarios that intend on using RAG
  4. If it fixes an open issue, please link to the issue here. Python: SemanticTextMemory creates MemoryRecord with improper embedding type #1815

Description

Simple decomposition of the list of embeddings returned via generate_embeddings_async

Contribution Checklist

@cschadewitz cschadewitz requested a review from a team as a code owner July 3, 2023 10:09
@github-actions github-actions bot added the python Pull requests for the Python Semantic Kernel label Jul 3, 2023
@shawncal shawncal changed the title Fix for python SemanticTextMemory Embedding issue Python: Fix for SemanticTextMemory Embedding issue Jul 3, 2023
@shawncal shawncal force-pushed the python_fix_sem_txt_mem_emb branch from e4a9fb3 to b27ec44 Compare July 3, 2023 17:24
@shawncal
Copy link
Contributor

shawncal commented Jul 3, 2023

@cschadewitz Good find -- thanks for the fix.

Welcome to Semantic Kernel!

@shawncal shawncal enabled auto-merge July 3, 2023 17:25
@shawncal shawncal added this pull request to the merge queue Jul 3, 2023
Merged via the queue into microsoft:main with commit c6f783d Jul 3, 2023
shawncal pushed a commit to shawncal/semantic-kernel that referenced this pull request Jul 6, 2023
### Motivation and Context
<!-- Thank you for your contribution to the semantic-kernel repo!
Please help reviewers and future users, providing the following
information:
1. Why is this change required? To fix the SemanticTextMemory
functionality
  2. What problem does it solve? microsoft#1815 
3. What scenario does it contribute to? All scenarios that intend on
using RAG
  4. If it fixes an open issue, please link to the issue here. microsoft#1815 
-->
1. Why is this change required? To fix the SemanticTextMemory
functionality
  2. What problem does it solve? microsoft#1815 
3. What scenario does it contribute to? All scenarios that intend on
using RAG
  4. If it fixes an open issue, please link to the issue here. microsoft#1815 


### Description
<!-- Describe your changes, the overall approach, the underlying design.
These notes will help understanding how your code works. Thanks! -->
Simple decomposition of the list of embeddings returned via
`generate_embeddings_async`


### Contribution Checklist
<!-- Before submitting this PR, please make sure: -->
- [x] The code builds clean without any errors or warnings
- [x] The PR follows SK Contribution Guidelines
(https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md)
- [ ] The code follows the .NET coding conventions
(https://learn.microsoft.com/dotnet/csharp/fundamentals/coding-style/coding-conventions)
verified with `dotnet format`
- [x] All unit tests pass, and I have added new tests where possible
- [x] I didn't break anyone 😄
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

python Pull requests for the Python Semantic Kernel

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants