Local notes often contain details a model has never seen. LM Studio can attach a document to a chat so its replies can use information from the file.

A short document that fits in the model's context is supplied in full with the conversation. This suits questions about facts stated in a note, such as a meeting time or room, without changing the model itself.

A text chat model must already be loaded in an open chat, and the document must be saved on your computer. Generated replies can still misread a file, so dates, times, and other details need comparison with the original document before you rely on them.

Steps to chat with documents in LM Studio:

  1. Click the + button below the message box.
  2. Select Attach file from the menu.
  3. Click Upload File if the File Attachments and RAG notice appears.

    The first-use notice in LM Studio 0.4.28 lists PDF, DOCX, TXT, and CSV, with up to five files and a maximum combined size of 30 MB.

  4. Select your document in the file chooser.

    The club-notes.txt file in Documents is a short text note stating that the next club meeting starts at 18:30 in room Birch.

  5. Click Open to attach the selected document.
  6. Enter a question about a fact stated in the attached document.

    The filename appears above the message box; club-notes.txt is identified as Plain text.

    What time and room is the meeting in the attached notes? Answer in one short sentence.
  7. Send the question with the purple up-arrow button.
  8. Confirm that the reply's meeting time and room match the attached document.

    The reply gives 18:30 and Birch Room, matching the note. The inject-full-content message reports that all content fits in the context, so the complete short note was available for this answer.

Share this guide