From: jjanczur (@jjanczur) <noreply+jjanczur@github.com>
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Subject: Re: [pgvector/pgvector] issue #461: Increase max vectors dimension limit for index
Date: Thu, 12 Dec 2024 21:57:39 +0000
Message-ID: <gh-pgvector-pgvector-461-c2540093108@github.com> (raw)
In-Reply-To: <gh-pgvector-pgvector-461@github.com>
References: <gh-pgvector-pgvector-461@github.com>
Hi, sure!
We began by reviewing results from well known benchmarks such as MTEB and MIRACL and their results.
Following this, we conducted an internal evaluation using our own dataset. This involved testing various embedding models and experimenting with different chunk sizes and overlaps, primarily on German, Dutch, and French legal texts, including court decisions and patents.
(We had mainly German court decisions and contracts in German and Dutch)
Our initial focus was on optimizing the chunk size and overlap settings to suit our specific use case.
We designed tests using texts, questions and pre-identified chunks. These texts were complex, with questions heavily relying on intricate legal nuances. While we experimented with metrics like NDCG@10 and MAP@10, consolidating the results into meaningful insights was more challenging than anticipated. 😅
Ultimately, we applied RAGAS benchmarks to a similar set of test questions and answers within a standard RAG setup.
Although I don’t recall the precise metrics, higher-dimensional models consistently outperformed others on this type of complex documents. For our use case, even a 20% performance improvement was significant, and as I recall, the results exceeded that threshold. (At least in our internal test, on our internal data, that was close to the production use case)