From 52189a46bc812b21bcfec7e2435611bc851aed2c Mon Sep 17 00:00:00 2001 From: Lorenze Jay Date: Wed, 20 Nov 2024 13:43:08 -0800 Subject: [PATCH] more docs --- docs/concepts/knowledge.mdx | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/docs/concepts/knowledge.mdx b/docs/concepts/knowledge.mdx index 712f950ad..ae854c2e6 100644 --- a/docs/concepts/knowledge.mdx +++ b/docs/concepts/knowledge.mdx @@ -87,3 +87,23 @@ crew = Crew( result = crew.kickoff(inputs={"question": "What city does John live in and how old is he?"}) ``` + +## Embedder Configuration + +You can also configure the embedder for the knowledge store. This is useful if you want to use a different embedder for the knowledge store than the one used for the agents. + +```python +... +string_source = StringKnowledgeSource( + content="Users name is John. He is 30 years old and lives in San Francisco.", + metadata={"preference": "personal"} +) +crew = Crew( + ... + knowledge={ + "sources": [string_source], + "metadata": {"preference": "personal"}, + "embedder_config": {"provider": "openai", "config": {"model": "text-embedding-3-small"}}, + }, +) +```