Open ir0ntr0nik opened 4 weeks ago
SQL statement to rename the column provenance_mapping
to document_ids
:
ALTER TABLE predication_inverted_index
RENAME COLUMN provenance_mapping TO document_ids
Example for a document_ids entry: [id_1, id_2, id_3, ..., id_n]
(list stored as a string, ids are always integers)
python compute_reverse_index_predication.py
sidenotes:
Solved.
Can we improve the error shown to users when explanation has failed? For instance, "Explanation failed - please try again"
Sort by confidence descending (in frontend)
The idea is to replace the current provenance retrieval based on precomputed predications with the computation at runtime. The following things have to be modified:
PredicationInvertedIndex
query_inverted_index_for_fact_pattern
&process_query_with_expansion
)