Skip to content

Commit 01270d6

Browse files
committed
Several new features - added ability to filter embeddings by score, overfetch and then filter + many refactors
1 parent 0c2e9fd commit 01270d6

27 files changed

+406
-214
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ The author(s) are looking to add core maintainers for this opensource project. R
5959
- [Customize the prompt](#customize-the-prompt)
6060
- [Get context (dry run)](#get-context-dry-run)
6161
- [Get count of embedded chunks](#get-count-of-embedded-chunks)
62+
- [Set relevance cutoff](#)
6263
- [Dynamic loaders](#add-new-loaders-later)
6364
- [Loaders supported](#loaders-supported)
6465
- [Youtube video](#youtube-video)
@@ -216,6 +217,14 @@ You can fetch the count of embeddedings stored in your vector database at any ti
216217
await ragApplication.getEmbeddingsCount()
217218
```
218219

220+
## Set cut-off for relevance
221+
222+
The library can filter the embeddings returned from a vector store that have a low relevance score to the query being asked. To do this, set the cut-off value using the `setEmbeddingRelevanceCutOff` method -
223+
224+
```TS
225+
await ragApplication.setEmbeddingRelevanceCutOff(0.23)
226+
```
227+
219228
## Add new loaders later
220229

221230
You can add new loaders at any point dynamically (even after calling the `build` function on `RAGApplicationBuilder`). To do this, simply call the `addLoader` method -

0 commit comments

Comments
 (0)