From 317765b43fb26554eb042ca8972f824c08958f35 Mon Sep 17 00:00:00 2001 From: Cristian Medeiros Date: Thu, 30 Jan 2025 18:27:05 -0300 Subject: [PATCH] Small update in memory.mdx, fixing Google AI parameters Adding some suggestions from AI Reviewer --- docs/concepts/memory.mdx | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/docs/concepts/memory.mdx b/docs/concepts/memory.mdx index e9c91cc07..508b4736a 100644 --- a/docs/concepts/memory.mdx +++ b/docs/concepts/memory.mdx @@ -211,10 +211,15 @@ my_crew = Crew( ### Using Google AI embeddings +### Prerequisites +Before using Google AI embeddings, ensure you have: +- Access to the Gemini API +- The necessary API keys and permissions + You will need to update your *pyproject.toml* dependencies: ```YAML dependencies = [ - "google-generativeai>=0.1", + "google-generativeai>=0.8.4", #main version in January/2025 - crewai v.0.100.0 and crewai-tools 0.33.0 "crewai[tools]>=0.100.0,<1.0.0" ] ``` @@ -231,8 +236,8 @@ my_crew = Crew( embedder={ "provider": "google", "config": { - "api_key": "", - "model": "models/" + "api_key": "", # Recommend fetching from environment variables + "model": "models/text-embedding-004" } } )