langchain-ai / rag-from-scratch

2.73k stars 814 forks source link

mutliple documents retrievers #17

Open akhilajallavaram opened 7 months ago

akhilajallavaram commented 7 months ago

I've gone through the notebooks in the repo what I have observed is you used single blog but my question is what if we have around 4-5 different sources of info which might be relevant or irrelevant but if we ask a query it has to give solution regarded to the specific document passed, I checked the rag_from_scratch_5_to_9.ipynb notebook for that but the flow diagram and the implementation doesn't seem to match somehow you just used one blog, what if we have multiple docs from multiple sources relevant or irrelevant, how to do that with Lang chain?