Update docs as well.

This commit is contained in:
Brandon Hancock
2024-11-01 10:43:47 -04:00
parent 12b0cf6100
commit 9933d8f880
2 changed files with 25 additions and 2 deletions

View File

@@ -254,6 +254,31 @@ my_crew = Crew(
)
```
### Using Watson embeddings
```python Code
from crewai import Crew, Agent, Task, Process
# Note: Ensure you have installed and imported `ibm_watsonx_ai` for Watson embeddings to work.
my_crew = Crew(
agents=[...],
tasks=[...],
process=Process.sequential,
memory=True,
verbose=True,
embedder={
"provider": "watson",
"config": {
"model": "<model_name>",
"api_url": "<api_url>",
"api_key": "<YOUR_API_KEY>",
"project_id": "<YOUR_PROJECT_ID>",
}
}
)
```
### Resetting Memory
```shell

View File

@@ -116,8 +116,6 @@ class RAGStorage(BaseRAGStorage):
url=config.get("api_url"),
)
elif provider == "watson":
# https://ibm.github.io/watsonx-ai-python-sdk/fm_embeddings.html
try:
import ibm_watsonx_ai.foundation_models as watson_models
from ibm_watsonx_ai import Credentials