The best way to connect LLMs to your private data is currently retrieval augmented generation. LangChain has lots of advanced and production-ready functionality to help with this.
Jupyter Notebook (to follow along): https://github.com/hwchase17/langchai...
JavaScript Notebook: https://github.com/bracesproul/langch...
Links:
Retrieval Documentation: https://python.langchain.com/docs/mod...
Advanced Retrieval Methods: https://python.langchain.com/docs/mod...
QA with RAG Use Case Documentation: https://python.langchain.com/docs/use...