assistant for your documents. Sources, search, and control questions are explained in more detail here.">assistant for your documents. Sources, search, and control questions are explained in more detail here.">How to prepare an AI assistant for your own documents | Codex Bible
Free

How to prepare an AI assistant for your own documents

Prepare documents, search and test questions for an AI assistant. Check citations, document versions, missing answers and access before expanding the collection.

Instructions

To build an AI assistant for your own documents, start with a small practice collection and questions with known answers. The assistant should find suitable passages, cite them and say when the required information is missing.

Step 1. What to prepare

Select, for example, ten short documents without secrets or personal data. This is a convenient size for a first trial, not a technical limit. Save ID, title, version, date, and allowed readers for each.

Prepare questions and reference answers before launching the assistant. Add a question without an answer and two versions of one document with different conditions. Determine which version is considered valid.

Step 2. How to check the collection itself

Before assistant setup, check three things: which needed questions sources do not cover, which important viewpoints are missing, and where documents differ. For each discrepancy, record source fragment, date, and conditions. Different numbers for different periods do not necessarily contradict. Lack of info in the collection does not prove it does not exist.

Store AI paraphrases separately from originals. A paraphrase with a link is not independent confirmation of the same fact. Open the cited fragment and ensure it supports the exact claim. If including paraphrases in search, maintain links to originals and verify answers against them, not repeated old model answers. Checking gaps and contradictions is discussed in Futurepedia lesson on working with sources; own selection still needs source verification.

Step 3. How to choose search

For a small text collection, first evaluate regular word search. If semantic answers and many documents are needed, consider fragment similarity search. It’s often called vector search.

The file_search tool in the OpenAI Responses API uses files uploaded to a vector_store and can return file links in the response. This is a separate API integration. Having file reading in Codex itself does not create such an assistant.File Search Documentation.

Step 4. What to check in the first version

Question or Condition Result criterion
Answer is in one document Correct answer and specific confirmation
Two documents required Both sources are used and their conditions are preserved
No response Lack of information indicated
Documents contradict Versions named and selection rule
Document updated New accepted version used
User has no access Document and its fragments not issued

Rights must be applied before sending fragments to the model. The request 'do not show others' data' after receipt is not reliable isolation.

Full plan: An assistant for your own documents. Access boundaries: guide.

Step 5. How to fix errors and update the database

First find out if the needed fragment was found. If not, fix document preparation or search. If the fragment is correct but the answer is not, check how the model used conditions and dates.

When deleting a document, separately consider the source, search index, and saved fragments. When updating, repeat questions for which the correct answer version changed.

When removing a document, also check the assistant’s cache and memory. Repeat a control question to verify that the removed passage no longer appears in search or answers.

What you will have

You have a small assistant prototype with cited answers and checks for versions, missing information and access.

Next: How to check user access to application data.

Prompt for Codex

Paste into your project chat:

Find the source data in the available project and conversation and fill in the bracketed fields yourself. Ask me about any unknown goals, preferences or sources; do not invent them.
Prepare a local document assistant using [folder]. Check document versions, reader permissions and questions with known answers. Start with suitable simple search and cite the source of each answer. Test missing answers, conflicting versions, updated documents and denied access. Show a working sample without uploading personal documents to external services.

What to try next

In this guide
Saved