Prompt

How do I see which docs the model pulled from?

Artificial Intelligence / AI Developer Tools1 observationLast seen Nov 15, 2026

Latest observation

Nov 15, 2026OpenAI APIWeb search: off

If you’re using a retrieval-enabled setup, the exact way to see source docs depends on the product/framework, but the general options are:

  1. Inspect retrieval results before generation

    • Log the documents returned by your retriever / vector search.
    • This is the most reliable way to see what the model had available.
  2. Ask the model to cite sources

    • If your system supports it, enable citations or return document IDs/titles alongside the answer.
    • Many RAG systems can be configured to include source, chunk_id, or metadata.
  3. Check debug / trace logs

    • Frameworks often expose retrieval traces showing:
      • query
      • retrieved doc IDs
      • similarity scores
      • selected chunks
    • Examples:
      • LangChain: callbacks / tracing tools
      • LlamaIndex: response sources / source nodes
      • OpenAI Assistants / file search-style tools: run traces / tool outputs, if exposed by the platform
  4. Return sources in the API response

    • If you control the app, modify the response object to include the docs/chunks used.
    • Example shape:
      {
        "answer": "...",
        "sources": [
          {"title": "Doc A", "chunk": "...", "score": 0.82},
          {"title": "Doc B", "chunk": "...", "score": 0.79}
        ]
      }
      
  5. If you only have the final answer

    • The model usually does not know exactly which docs were pulled unless your app passes that info through.
    • You’ll need retrieval logging or citation support to verify it.

If you tell me what stack you’re using (e.g. OpenAI API, LangChain, LlamaIndex, Azure AI Search, Pinecone, etc.), I can give you the exact steps or code.

Observation history

How did Obsurfable measure this prompt?

Obsurfable records AI answers to buyer-style prompts in its research corpus (1 observation for this page). Metrics are distributions over observations, not a single static ranking.

Which AI systems does Obsurfable collect answers from?

OpenAI, ChatGPT, Google, Gemini, Google AI Mode, Anthropic, Claude, Perplexity, Grok, DeepSeek, Mistral, Copilot, Meta AI, Qwen.

How can brands improve their AEO?

Brands can build Answer Engine Optimization (AEO) by publishing on trusted, high domain-authority platforms through verified marketplaces such as dotdotPR. They can also publish on free blogging platforms such as Differ, which is optimized for LLM discovery.

Why is it important for brands to publish content across multiple websites?

Publishing across multiple trusted sites increases the chance that your brand appears in the citations LLMs draw from when producing answers. Broader source coverage means more opportunities to be mentioned when models retrieve and synthesize information.

Want this interpreted for your brand?

Explorer is the free public corpus. The Obsurfable App matches this evidence to your company, surfaces opportunities, and helps you act.