mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2024-10-01 01:06:10 -04:00
5306595176
* new skeleton Signed-off-by: Max Cembalest <max@nomic.ai> * v3 docs Signed-off-by: Max Cembalest <max@nomic.ai> --------- Signed-off-by: Max Cembalest <max@nomic.ai>
49 lines
1.9 KiB
Markdown
49 lines
1.9 KiB
Markdown
# LocalDocs
|
|
|
|
LocalDocs brings the information you have from files on-device into your LLM chats - **privately**.
|
|
|
|
## Create LocalDocs
|
|
|
|
!!! note "Create LocalDocs"
|
|
|
|
1. Click `+ Add Collection`.
|
|
|
|
2. Name your collection and link it to a folder.
|
|
|
|
<table>
|
|
<tr>
|
|
<td>
|
|
<img src="../assets/new_docs_annotated.png" alt="new GOT Docs" style="width:100%">
|
|
</td>
|
|
<td>
|
|
<img src="../assets/new_docs_annotated_filled.png" alt="new GOT Docs filled out" style="width:100%">
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
3. Click `Create Collection`. Progress for the collection is displayed on the LocalDocs page.
|
|
|
|
![Embedding in progress](../assets/baelor.png)
|
|
|
|
You will see a green `Ready` indicator when the entire collection is ready.
|
|
|
|
Note: you can still chat with the files that are ready before the entire collection is ready.
|
|
|
|
![Embedding complete](../assets/got_done.png)
|
|
|
|
Later on if you modify your LocalDocs settings you can rebuild your collections with your new settings.
|
|
|
|
4. In your chats, open `LocalDocs` with button in top-right corner to give your LLM context from those files.
|
|
|
|
![LocalDocs result](../assets/syrio_snippets.png)
|
|
|
|
5. See which files were referenced by clicking `Sources` below the LLM responses.
|
|
|
|
![Sources](../assets/open_sources.png)
|
|
|
|
## How It Works
|
|
|
|
A LocalDocs collection uses Nomic AI's free and fast on-device embedding models to index your folder into text snippets that each get an **embedding vector**. These vectors allow us to find snippets from your files that are semantically similar to the questions and prompts you enter in your chats. We then include those semantically similar snippets in the prompt to the LLM.
|
|
|
|
To try the embedding models yourself, we recommend using the [Nomic Python SDK](https://docs.nomic.ai/atlas/guides/embeddings)
|