You don't need Langchain, here's how to do RAG without it
vigneshwarar.substack.com
vigneshwarar.substack.com
Quoting from https://github.com/criteo/autofaiss
> Using faiss efficient indices, binary search, and heuristics, Autofaiss makes it possible to automatically build in 3 hours a large (200 million vectors, 1TB) KNN index in a low amount of memory (15 GB) with latency in milliseconds (10ms).
I would highly recommend taking a look at AutoFaiss. You just have to set the maximum memory to build the index, and it will come up with the configuration.