Elasticsearch vector store supporting vector and hybrid search.
Hybrid search combines kNN vector search with BM25 full-text search
using RRF. Enable by passing a HybridRetrievalStrategy to the constructor.
class ElasticVectorSearch// Vector search (default)
const vectorStore = new ElasticVectorSearch(embeddings, { client, indexName });
// Hybrid search
const hybridStore = new ElasticVectorSearch(embeddings, {
client,
indexName,
strategy: new HybridRetrievalStrategy()
});