Incremental Proposition Extraction
Generic async proposition extraction from incremental sources (conversations, message streams, etc.). Uses IncrementalAnalyzer for windowed, deduplicated processing.
This is NOT a Spring component — consuming applications create it as a @Bean so that @EventListener and @Async are honoured by the Spring container.
Parameters
maps the event's NamedEntity user to the context ID used for proposition storage. Defaults to NamedEntity.getId.
optional function to add extra template variables to the SourceAnalysisContext built for each extraction.
Constructors
Properties
Functions
Extract propositions from a file via Tika and persist them. Requires embabel-agent-rag-tika on the classpath.
Extract propositions from a file via Tika, on the terms the request sets — the source it was read from, the revision of that source, the content profile it runs under, the extraction run it belongs to.
Extract propositions from raw text and persist them.
Extract propositions from raw text on the terms the request sets — the source it was read from, the revision of that source, the content profile it runs under, the extraction run it belongs to.
Synchronous listener — runs on the publisher's thread during publishEvent(). Increments the in-flight counter BEFORE the async handler is dispatched, so isIdle can see events that are in Spring's executor queue.
Binds the store that records which extraction run produced which claims, and returns this extractor so a bean method can do it in one expression.
Binds the lineage store and says what happens when a lineage write cannot be made.