Introducing Directory Watching in RLAMA: Automate Your Document Management
In the ever-evolving landscape of AI-driven tools, managing your documents efficiently is crucial. That's why we're excited to introduce a new feature in RLAMA: Directory Watching. This feature allows you to automatically monitor specific folders for new files and seamlessly integrate them into your Retrieval-Augmented Generation (RAG) systems.
What is RLAMA?
RLAMA is a powerful AI-driven question-answering tool designed to work with your local Ollama models. It enables you to create, manage, and interact with RAG systems tailored to your documentation needs. With RLAMA, you can easily index documents, generate embeddings, and retrieve relevant information using natural language queries.
Why Directory Watching?
Managing documents can be a tedious task, especially when new files are frequently added to your project. The Directory Watching feature automates this process, ensuring that your RAG systems are always up-to-date with the latest documents. Whether you're working on a project with constantly evolving documentation or simply want to keep your RAG systems current, this feature is designed to save you time and effort.
How to Set Up Directory Watching
Setting up directory watching in RLAMA is straightforward. Here’s a step-by-step guide:
Step 1: Create a RAG System
First, you need to create a RAG system by indexing your initial documents. Use the following command:
rlama rag llama3 my-docs ./initial-documents
This command creates a new RAG system named my-docs
using the llama3
model and indexes the documents located in the ./initial-documents
folder.
Step 2: Enable Directory Watching
Once your RAG system is created, you can set up directory watching to monitor a specific folder for new files. Use the following command:
rlama watch my-docs ./watched-folder 60
In this example, the command sets up directory watching for the my-docs
RAG system, monitoring the ./watched-folder
every 60 minutes for new files. If you prefer to check for new files only when the RAG is used, you can set the interval to 0
:
rlama watch my-docs ./watched-folder 0
Customizing Your Watch Settings
You can customize the directory watching settings to fit your needs. For example, you can exclude certain directories or file types from being indexed:
rlama watch my-docs ./watched-folder 30 --exclude-dir=node_modules,tmp --process-ext=.md,.txt
This command will check the ./watched-folder
every 30 minutes, excluding the node_modules
and tmp
directories, and only processing files with .md
and .txt
extensions.
Step 3: Manually Check for Updates
If you want to manually check the watched directory for new files, you can use the following command:
rlama check-watched my-docs
This command will scan the specified directory and add any new documents to your RAG system.
Step 4: Disable Directory Watching
If you ever need to disable directory watching for a RAG system, simply run:
rlama watch-off my-docs
Conclusion
The new Directory Watching feature in RLAMA is designed to streamline your document management process, ensuring that your RAG systems are always up-to-date with the latest information. By automating the indexing of new files, you can focus more on your work and less on manual updates.
We invite you to try out this feature and see how it can enhance your experience with RLAMA. For more information, check out the RLAMA documentation or join our community on Discord.
Happy documenting!