updates to add more docs and correct imports with huggingface embedding server enabled

This commit is contained in:
Lorenze Jay
2024-10-22 12:27:47 -07:00
parent 5803b3fb69
commit e2f70cb53f
2 changed files with 29 additions and 4 deletions

View File

@@ -164,7 +164,8 @@ my_crew = Crew(
embedder={
"provider": "google",
"config": {
api_key="YOUR_API_KEY"
"api_key": "<YOUR_API_KEY>",
"model_name": "<model_name>"
}
}
)
@@ -231,6 +232,25 @@ my_crew = Crew(
}
)
```
### Using HuggingFace embeddings
```python Code
from crewai import Crew, Agent, Task, Process
my_crew = Crew(
agents=[...],
tasks=[...],
process=Process.sequential,
memory=True,
verbose=True,
embedder={
"provider": "huggingface",
"config": {
"api_url": "<api_url>",
}
}
)
```
### Resetting Memory