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" } } )