Relative Content

Tag Archive for langchainretrieval-augmented-generationpgvectorsimilarity-searchhybrid-search

BM25 + PgVector Dense retriever doesn’t give expected accuracy in hybrid searching

Iam a building a prototype for fetching the relevant documents for an input question (should search based on keywords and context). For this, I have the data frames of vector embeddings (all-mpnet-base-v2) of different documents which are stored in PGVector. Iam using an ensembled retriever with BM25 as a keyword based retriever and PGVector search query as the context based conten retriever. Here Iam attaching the code