AI File Stores: Turn Your Storage Files into Knowledge
12 December 2024Today we're releasing File Stores, a simple way to augment your Nhost AI Assistants with knowledge from documents in Nhost Storage.
With File Stores you can build useful applications that can process and analyze your documents across various industries. Here are some examples of what you can build:
- healthcare applications to summarize patient case histories, clinical notes, and medical reports
- academic applications to summarize complex topics for lesson plans or student materials or help researchers distill complex topics from lengthy research papers
- law applications to summarize contracts, or other legal documents
- accounting applications to summarize tax regulations, financial statements, or audit reports
The sky is the limit! Chatting with your documents is as easy as uploading files to your buckets and using GraphQL to ask questions!
What's a File Store?
File Stores are a simple abstraction on top of Nhost Storage that you can use to extend your assistant's knowledge base with text documents.
When creating a File Store, you can specify as many storage buckets as you want and Graphite will take care of creating embeddings for existing and new documents. It is really that simple!
How it works
Graphite glues everything together by creating embeddings for the files in the storage buckets you specify when creating a File Store. The 2 main actions that trigger the creation of embeddings are:
- When a File Store is created, for each bucket selected, Graphite checks if the bucket is already indexed:
- If not, it creates the embeddings for all the supported files/documents in the bucket. Unsupported files are ignored.
- If the bucket is already indexed, it will ignore it.
- When a user uploads a file to a bucket, Graphite checks whether the bucket is already being used by a File Store:
- If it is, Graphite creates the embeddings for the document, if it is supported.
- If it isn't, Graphite ignores the file.
Everything is managed for us without writing a single line of code!
How do you use it?
A video is worth a thousand words, so here's a quick demo of how it works:
Chat with your documents today!
Getting started is easy:
- Visit your project's AI Settings section in the Nhost Dashboard and upgrade the AI service to its latest version: v0.7.1.
- Once the upgrade is finished, visit your project's File Stores section in the Nhost Dashboard to create your first File Store.
- Edit or create a new AI Assistant and select the File Store you want to use.
- Start chatting with your documents!
We're excited to see what you will build with File Stores, so please share any feedback and ideas/projects with us on Twitter or Discord.