Prompt
How do I find out where LLMs are pulling company info from?
Latest observation
To find out where an LLM is getting company information from, you usually need to separate three different cases:
- It’s recalling training data
- It’s using live retrieval / search / tools
- It’s hallucinating and making it up
Here’s how to investigate each one.
1) Check whether the model is using retrieval or the open web
If you’re using a product like ChatGPT Enterprise, Claude, Perplexity, or a custom chatbot, the answer may come from:
- a built-in web search
- connected docs / knowledge base
- internal CRM or RAG system
- uploaded files
How to check:
- Look for UI indicators like “searching web,” “sources,” “citations,” or “retrieved documents.”
- Ask the system directly:
- “What sources are you using for this answer?”
- “Did you search the web or use internal documents?”
- Inspect the app’s configuration, logs, or developer docs if it’s your own system.
2) Ask for citations or source traces
If the model supports it, request:
- exact URLs
- document titles
- passage quotes
- timestamps
- whether the answer came from memory or retrieval
Example prompt:
“List the sources used for each factual claim about this company. For each claim, provide the document or URL and quote the supporting text.”
If it can’t provide sources, that’s a warning sign the answer may be from memory or invention.
3) Use cross-checking against known sources
Take the company facts the model gives you and verify them against:
- the company website
- SEC filings / annual reports
- press releases
- LinkedIn / Crunchbase / public registries
- reputable news coverage
- official API documentation, if relevant
If the model’s answer aligns with a public source, that source may be what it learned from during training, or what it retrieved live.
4) Test whether it’s “memorized” vs “retrieved”
You can probe with follow-up questions like:
- “What is your confidence level?”
- “When was this information last updated?”
- “Is this based on a source you can cite, or your internal knowledge?”
- “If you can’t cite it, please say so.”
If the model is truly using retrieval, it should be able to name a document or URL more reliably than if it’s just recalling from training.
5) For your own LLM app, inspect the retrieval pipeline
If you control the system, check:
- vector database / search index contents
- chunking and embedding pipeline
- reranker outputs
- prompt template
- tool-call logs
- source metadata attached to chunks
This is the best way to see exactly where company info came from.
6) Know the limitations
You often cannot know with certainty exactly what training example caused a specific answer. Foundation models generally don’t expose a trace back to individual training documents.
What you can usually determine:
- whether the answer came from retrieval or not
- which documents were retrieved
- whether the answer is consistent with public sources
- whether the model is likely hallucinating
Practical approach
If you want a quick workflow:
- Ask the model for sources.
- Verify those sources independently.
- If no sources are given, treat the answer as unverified.
- If you own the app, review retrieval/tool logs.
- For sensitive company info, prefer official or primary sources.
If you want, I can also give you:
- a step-by-step method for auditing an LLM answer
- a prompt template to force source attribution
- or a technical checklist for RAG systems