Blog / AI agents

Document search API: what it should do for your apps and AI agents

By the troveGEN team · Updated 11 November 2026 · 2 min read

Short answer

A document search API ingests your files and, given a question, returns the passages that answer it, ranked and with their sources. For applications and AI agents, the features that matter most are search by both words and meaning, reranking, filters, permissions enforced in the query, and reliable handling of scans and tables.

With troveGEN

troveGEN is a document search API that reads the documents you really have and returns ranked passages with their page and section.

See what troveGEN provides ↓

What it replaces

Building document search yourself means a parser for every file type, OCR for scans, a chunking strategy, an embedding model, a vector database, a keyword index, a ranking step and access control, all kept in step as files change. A document search API offers that chain behind a few calls.

Features that decide quality

  • Hybrid search: keyword and semantic search merged, so names, codes and paraphrases all match
  • Reranking: a model re-orders the top candidates by how well they answer the question
  • Metadata filters: restrict by department, date, customer or any field you attach
  • Permissions in the query: each result checked against the requester’s access before ranking
  • Citations: page, section and document on every result
  • Honest empty results: nothing returned when nothing is relevant
  • Real-world documents: scans, tables, long PDFs and websites handled properly
  • Multiple languages, including questions in one language about documents in another

Questions to ask a provider

  • Where are my vectors stored, and can I use my own database?
  • How are deleted documents removed from the index?
  • How is sensitive data handled before indexing?
  • Can I measure search quality on my own questions?
  • Is there an SDK and an MCP server for agents?

Key takeaways

  • A document search API turns files into ranked, cited passages for a question.
  • Hybrid search, reranking, permissions and good parsing decide its quality.
  • Ask where vectors live and how deletions propagate.

How troveGEN helps with document search

troveGEN reads PDFs, Office files, scans, spreadsheets, email and websites, then searches them by words and meaning with optional AI ranking, metadata filters and permissions inside the query. Each result carries its page and section, and it returns nothing rather than the closest wrong passage. It runs managed, in your own vector database, or offline, with an SDK and an MCP server.

What troveGEN provides

  • PDF, Office, scans, spreadsheets, email and websites
  • Hybrid search with optional AI ranking
  • Metadata filters and permissions inside the query
  • Citations and honest empty results
  • Managed, your own vector database, or offline

See search Start free — 500 pages a month

Frequently asked questions

What is a document search API?

A service that ingests your files and returns the passages answering a question, ranked and with their sources.

Is semantic search enough?

Usually not. Semantic search misses exact names, codes and numbers; hybrid search combines it with keyword search.

Can a document search API respect user permissions?

A good one applies access rules inside the search, so restricted passages are never returned to someone who may not see them.

How does troveGEN help with document search?

troveGEN is a document search API that reads the documents you really have and returns ranked passages with their page and section. It provides: PDF, Office, scans, spreadsheets, email and websites; Hybrid search with optional AI ranking; Metadata filters and permissions inside the query; Citations and honest empty results; Managed, your own vector database, or offline.

Keep reading