In this tutorial data represents the folder name, if you just want to pass a single file: documents = SimpleDirectoryReader(input_files=["filepath1").load_data()
@WhiteFang_Jr Does this work on PDF files? For me, it works for plain text files. But when I use PDF files as input, the query has the following error message:
ConnectError: [WinError 10061] No connection could be made because the target machine actively refused it
from llama_index.core import Settings from llama_index.core import download_loader from llama_index.llms.ollama import Ollama from llama_index.embeddings.huggingface import HuggingFaceEmbedding
You are right. When you said that one has to deploy the model first, what does that entail? Does that mean issue the command like "ollama pull mistral"? @WhiteFang_Jr
Ollama's Readme file explains how to run Ollama by itself. It does not explain how to use it with other tools. In other words, it explains how to use CLI to chat with LLM via Ollama.