langchain-ai / langchain-databricks

MIT License
4 stars 7 forks source link

Make `endpoint_name` parameter optional for `DatabricksVectorSearch` #16

Closed B-Step62 closed 1 month ago

B-Step62 commented 1 month ago

The endpoint is now optional in the underlying VectorSearch SDK and it is automatically inferred from the index name. https://api-docs.databricks.com/python/vector-search/databricks.vector_search.html#databricks.vector_search.client.VectorSearchClient.get_index

Thus we can now make endpoint_name argument optional in LC class, with some helpful error message if users are running with older version of SDK.