Python: Bug: Unable to Retrieve Memory for Chat Conversation with Semantic Kernel and Azure Cognitive Search #9695
Labels
bug
Something isn't working
memory connector
python
Pull requests for the Python Semantic Kernel
triage
Description:
I am encountering issues with the TextMemoryPluginACS-recall function in my Semantic Kernel setup, specifically while attempting to retrieve memory for a chat conversation using Azure Cognitive Search as the memory store. The error indicates an invalid expression related to an $select parameter and a failure to connect to the Azure Cognitive Search endpoint.
Error Details:
The error message highlights an invalid expression:
Additionally, there are connectivity issues where the connection to the Azure Cognitive Search endpoint fails:
Cannot connect to host <hidden_url>:443 ssl:default [getaddrinfo failed]
Relevant Code:
Expected Behavior:
The TextMemoryPluginACS-recall function should retrieve relevant memory content from the Azure Cognitive Search store without connection errors or expression issues.
Steps to Reproduce:
Initialize MainPlanner with the correct API keys, endpoints, and configurations.
Use populate_memory() to save chat content into the memory store.
Attempt to retrieve stored memory with the TextMemoryPluginACS-recall function.
Environment:
semantic-kernel==1.14.0
Python version: 3.11
openai==1.54.4
azure-search-documents==11.5.2
Additional Notes:
MainPlanner.py
test2.py
Final Answer of AI:
I encountered issues while trying to recall information about 'donyati' from previous conversations in the specified collection. Specifically, I was unable to connect to the information storage. Therefore, I cannot retrieve the requested information at this time.
Error:
The text was updated successfully, but these errors were encountered: