chapter twelve
This chapter covers
- Using GPT4All to query your private data
- Using PDF documents for querying by a large language model (LLM)
- Loading CSV and JSON files for querying
- Using LLMs to analyze your data files
Up to this point, you’ve explored the capabilities of LLMs and their use through platforms such as OpenAI and Hugging Face. Although these services ease the burden of hosting models, they come at a cost. But running powerful models locally also requires significant setup effort and cost.
Developers often face the common challenge of using LLMs to answer questions about their data, whereas businesses emphasize the need to maintain data privacy. Chapter 8 discussed sending data to OpenAI for embedding and querying with LangChain and LlamaIndex. This chapter delves deeper into the topic, focusing on querying local private documents without compromising data privacy. The chapter discusses two approaches: