langchain-ai / langchain-google

MIT License
117 stars 149 forks source link

community: add custom embedding functionality to VertexAISearchRetriever #567

Closed ThibaultScalbert closed 3 weeks ago

ThibaultScalbert commented 1 month ago

PR Description

Add the option to bring your own embedding to the langchain retriever. To use it you need to bring the model, the column of the datastore with the embedding and the ratio for the ranking_expression.

Type

🆕 New Feature ✅ Test