?
dataSources.entities
Lists the entities that matching passages are about, by passage count, highest first.
DataSource.entities(options?) → { entities: { id, chunks }[], latencyMs }
Returns the entities the matching passages are about, ordered by passage count, highest first. Filter on one entity to see what appears beside it, which gives you a co-mention graph with no extra work. Filter on a date range to see who or what was written about then. With no filter, the call covers the whole corpus. Counts are approximate and count passages, not documents. limit defaults to 20 and goes up to 1,000. The call shares the search rate limit of 300 a minute per app.
Parameters
filter
SearchFilter
Which passages to look across. Omit to cover the whole corpus.
limit
number
How many entities to return. Defaults to 20, at most 1,000.
What appears beside an asset
const { entities } = await Manuals.entities({ filter: { entities: ['P-101A'] }, limit: 10, }); // [{ id: 1, chunks: 42 }, { id: 2, chunks: 17 }, ...]