← All tools
EDTOOLKITS GUIDES

Inspect the sources in a document-answer prompt

By Team Edtoolkits · AI learning

Keep filenames, pages and source numbers visible before asking a separate model to answer.

Use the guide alongside the working tool.

Open Chat with Your PDFs: A Simple RAG App →

Explore the lesson

Embed your saved chunks and store them in the local database.

Write a script that searches, builds a prompt with sources and asks your local model.

Ask questions and check the cited pages.

A comparison to try

Add two invented excerpts and compare an answerable question with one absent from them. Inspect the generated labels and instruction to acknowledge missing information.

Read the result

The model receives selected excerpts rather than every PDF automatically. References support tracing a claim, while the refusal instruction states what should happen when evidence is missing.

A mistake to avoid

This page builds text and does not read PDFs or run a model. Verify generated citations against the passage; its character-based token count is only approximate.

Teaching model and privacy

A written tutorial: nothing here runs a model in your browser. The prompt builder is a teaching copy of the script's prompt, working on text you type. You need a local model runner from the setup lessons; its address and model name may differ on your computer. Commands change as tools update, so check each project's official documentation if one fails.

Explore a related workflow

All practical guides →

Found unclear instructions or an unexpected result? Contact Team Edtoolkits.

YOUR BROWSER, YOUR CHOICE