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

Make 'endpoint' parameter optional for DatabricksVectorSearch #17

Merged
merged 2 commits into from
Sep 23, 2024

Conversation

B-Step62
Copy link
Collaborator

Resolve #16.

The vector search client no longer requires endpoint_name parameter, so we can make it optional in the constructor as well.

Signed-off-by: B-Step62 <[email protected]>
Copy link
Collaborator

@harupy harupy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

endpoint_name=endpoint, index_name=index_name
)
except Exception as e:
if endpoint is None and "Wrong vector search endpoint" in str(e):
Copy link
Collaborator

@harupy harupy Sep 20, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

where does Wrong vector search endpoint come from?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is the exception raised from the VectorSearch client (< 0.35). It is not open-sourced or documented either unfortunately😔

@B-Step62 B-Step62 merged commit b388b0c into langchain-ai:main Sep 23, 2024
12 checks passed
@B-Step62 B-Step62 deleted the endpoint-optional branch September 23, 2024 13:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make endpoint_name parameter optional for DatabricksVectorSearch
2 participants