I'm working on implementing CrewAI's short-term memory feature, but it's not behaving as expected.
embedder_config = {
"provider": "openai",
"config": {
"api_key": "XXXXXXX",
"api_base": "https://xxxx.openai.azure.com/",
"api_type": "azure",
"api_version": "2024-02-01",
"model_name": "xxxxx",
"deployment_id": "xxxx"
}
}
# Create ShortTermMemory with embedder
self.short_term_memory = ShortTermMemory(embedder_config=embedder_config)
# Create crew with custom short-term memory
self.crew = Crew(
agents=[self.agent],
tasks=[],
memory=True,
short_term_memory=self.short_term_memory,
verbose=False
)
The memory system initializes without errors, but the agent doesn't seem to retain context from previous conversations as expected.
How can I successfully implemented CrewAI's short-term memory with Azure OpenAI embeddings?
Any guidance, documentation links, or working examples?