i-dot-ai / redbox

Bringing Generative AI to the way the Civil Service works
https://i-dot-ai.github.io/redbox/
MIT License
83 stars 27 forks source link

Add elbow filter to retriever #785

Closed wpfl-dbt closed 1 month ago

wpfl-dbt commented 1 month ago

Context

REDBOX-453. Our context window gets a lot of junk that can confuse the LLM. Search scores often follow a distribution with a plateau and a drop – the “elbow”. This ticket is to design a method to find that elbow and cut results there.

Changes proposed in this pull request

Guidance to review

Things to check