wiki
Batch search for wiki chunks
Changed onSearch for wikipedia documents for multiple queries in a single batch.
post/v1/wiki/search/batch
Request
- Base URLhttps://api.asknews.app
- AuthAPI key in header Authorization
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
queriesstring[] required
List of query strings to search for in parallel.
neighbor_chunksinteger nullable
Number of neighbor chunks to attach and return.
n_documentsinteger nullable
Number of documents to return per query.
full_articlesboolean nullable
If true, full articles will be returned.
hybrid_searchboolean nullable
If true, hybrid search will be used.
string_guaranteestring[] nullable
List of strings that must be present in the results.
diversifynumber nullable
Diversity factor for MMR re-ranking.
include_main_sectionboolean nullable
If true, the main section of the article will be prepended to each chunk.
has_wikidataboolean nullable
Filter results by whether the article has Wikidata.
Response
List of Wikipedia search results
Changes
- info
endpoint added
- info