thematic_search.RootQuery
- class thematic_search.RootQuery(db)
Entry point for all queries on a TopicDatabase. Access via topicdb.q
- __init__(db)
Methods
__init__(db)index_expr(expr[, threshold])Initialize an SampleQuery with the indices inside an IndexExpr
neighbours(text[, k])Embed a text string and return an SampleQuery carrying the query vector.
samples(indices)Use a set of document indices as the query entry point.
samples_where(query)Request the set of samples whose metadata matches a Pandas query.
topic(layer, cluster_number)Enter the query via a known topic node.
topic_idx(idx)Enter the query via a known topic index.
topic_name(name)Entry the query via a known topic name string.
topics_where(query)Request the set of topics whose metadata matches a Pandas query.