langchain-ai / langchain-databricks

MIT License
5 stars 6 forks source link

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

Closed B-Step62 closed 2 months ago

B-Step62 commented 2 months 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.