![How to use local files to train Ollama with Msty Knowledge Stacks](https://www.zdnet.com/a/img/resize/03470de13246b538aab902aa6a4fcd1019856943/2025/02/11/9cb2a95c-f639-4db9-9945-dac913fdf8b6/how-to-use-local-files-to-train-ollama-with-msty-knowledge-stacks.jpg?auto=webp&width=1280)
For a number of weeks, I've been utilizing Msty for analysis functions. One of many predominant causes I selected this route is that I like the thought of conserving these interactions remoted to my native machine. Due to Msty and Ollama, that's a reasonably straightforward job.
One Msty/Ollama characteristic that has intrigued me is the flexibility so as to add your personal content material to what's known as a Information Stack, which may allow you to combine native knowledge sources to reinforce the AI's potential to offer extra related and contextual responses. When you've added a doc stack, Msty can then function a sensible assistant with information of no matter it’s you deem price realizing. When you've created a Information Stack, Msty indexes it with a separate mannequin for use for a chat session.
Additionally: I attempted Sanctum's native AI app, and it's precisely what I wanted to maintain my knowledge personal
Give it some thought this fashion: You've written a number of paperwork a few specific matter and also you wish to use them to gasoline your AI chats. With Information Stacks, this isn’t solely doable — it's straightforward.
You may add totally different objects to a Information Stack, reminiscent of:
- Recordsdata (PDF, CSV, MD, JSON, EPUB, DOCX, RTF, and TXT)
- Folders
- Obsidian vaults (from the Obsidian note-taking app)
- Notes
- YouTube transcripts
The method is far easier than you may suppose and the outcomes are spectacular.
Let me present you the way it works.
Methods to create your first Information Stack
What you'll want: To make this work, you'll want each Ollama and Msty put in. You'll additionally wants some supported information so as to add (see the checklist above).
Be certain to pick Use Native AI Mannequin for this.
Making a Textual content Stack Information Stack for ZDNET.
You may drag and drop or add paperwork manually.
Relying on what number of paperwork you've added to your Information Stack, the compose course of can take a while. Wait till it completes. As soon as the compose course of is completed, shut the Information Stack Pop-up.
Methods to add your Information Stack to a chat
Together with your Information Stack added, it's time to start out chatting. It's really quite simple. Click on the New button (or hit Ctrl+N) to start out a brand new chat. Within the chat window, click on the Information Stacks button above the chat window (not the one within the sidebar).
Be certain to click on the folder icon within the backside toolbar.
From the pop-up menu, choose your new Information Stack so as to add it to the chat. When you've executed that, begin chatting. Ask a query that might be answered in considered one of your paperwork, and you need to get the anticipated reply.
Additionally: How I made Perplexity AI the default search engine in my browser (and why you need to too)
I've run a number of checks with Msty Information Stacks, and each time I got here away impressed. This characteristic is a good way to make use of your personal paperwork/knowledge for an AI chat, whereas guaranteeing it stays in your native machine and isn't saved or utilized by a 3rd social gathering. It's additionally fairly cool to see what number of of your paperwork are cited in a chat.
As you may see, my work is being cited within the chat.
This could get you began with Msty Information Stacks. When you're on top of things with how they work, I’d recommend you poke round among the extra superior options (like Similarity and Chunks).