deepset-ai / haystack

:mag: AI orchestration framework to build customizable, production-ready LLM applications. Connect components (models, vector DBs, file converters) to pipelines or agents that can interact with your data. With advanced retrieval methods, it's best suited for building RAG, question answering, semantic search or conversational agent chatbots.
https://haystack.deepset.ai
Apache License 2.0
16.93k stars 1.85k forks source link

feat: The SentenceWindowRetriever has now an extra output key containing all the documents belonging to the context window #8283

Closed davidsbatista closed 1 month ago

davidsbatista commented 1 month ago

Proposed Changes:

Adds an extra key in the output of the SentenceWindowRetriever, returning a List[Document] containing all the Document objects belonging to the context window

How did you test it?

unit tests, integration tests, manual verification

Notes for the reviewer

I've decided for a extra output key so that there are no breaking changes.

Checklist

coveralls commented 1 month ago

Pull Request Test Coverage Report for Build 10574185228

Details


Files with Coverage Reduction New Missed Lines %
components/retrievers/sentence_window_retriever.py 10 76.09%
<!-- Total: 10 -->
Totals Coverage Status
Change from base Build 10528666835: -0.02%
Covered Lines: 6975
Relevant Lines: 7734

💛 - Coveralls