Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] IBM watsonx embedding with tools throwing error #1770

Open
sdutta81 opened this issue Dec 16, 2024 · 0 comments
Open

[BUG] IBM watsonx embedding with tools throwing error #1770

sdutta81 opened this issue Dec 16, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@sdutta81
Copy link

sdutta81 commented Dec 16, 2024

Description

schema error raised for IBM watsonx while using TXTSearchTool
To use TXTSearchTool , I need to use provider and embedder but looks like "watson" provider not available.

Steps to Reproduce

`textSerarch = TXTSearchTool(
txt='data/input_data/myData.md',
config=dict(
embedder=dict(
provider="watson",
config=dict(
model="watsonx/intfloat/multilingual-e5-large",
api_url="https://us-south.ml.cloud.ibm.com/",
api_key="<my_api_key>",
project_id="<my_pro_id>",
)
)
)
)

@agent
def api_spec_reviewer_agent(self) -> Agent:
return Agent(
llm=WatsonXConfig.llm,
config=self.agents_config[API_SPEC_REVIEWER_AGENT_KEY],
tools=[textSerarch],
allow_delegation=False,
verbose=False,
)`

Expected behavior

It should start creating vector embeddings and search when necessary.

Screenshots/Code snippets

Provided above

Operating System

Other (specify in additional context)

Python Version

3.12

crewAI Version

Sequoia 15.1.1

crewAI Tools Version

0.86.0

Virtual Environment

Venv

Evidence

Screenshot 2024-12-14 at 3 26 15 PM
Screenshot 2024-12-14 at 3 26 25 PM

Possible Solution

Add watson provider

Additional context

None

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant