We use cookies to ensure you get the best experience on our website. Some of these cookies are provided by third parties. You are free to decide which categories you would like to permit and can withdraw this consent at any time (via cookie preferences link on the footer).
By accepting the necessary cookies, you agree to our privacy policy and terms of service, both located in the footer of the website.
Learn more on our terms of service and privacy policy.
Search Wikipedia
asknews wiki <query>Search Wikipedia
Arguments:
| Argument | Description |
|---|---|
<query> | Wikipedia search query |
Options:
| Option | Description |
|---|---|
-n, --limit <number> | alias for --n-documents Default: "10". |
--neighbor-chunks <value> | Number of neighbor chunks to attach and return. If 0, then no neighbor chunks will be returned. [query, string, optional, default: 1] |
--full-articles <value> | If true, then full articles will be returned. If false, then only chunks and their neighbors will be returned. Beware that returning full articles increases data size which increases token usage downstream. [query, string, optional, default: false] |
--hybrid-search <value> | If true, then hybrid search will be used. If false, then only vector search will be used. [query, string, optional, default: false] |
--string-guarantee <value> | List of strings that must be present in the results. If empty, then no string guarantee will be applied. [query, string, optional] |
--diversify <value> | Diversity factor for MMR re-ranking. 0.0 means no diversity (pure relevance), 1.0 means full diversity. [query, string, optional, default: 0] |
--include-main-section <value> | If true, then the main section of the article will be included at the start of each chunk's content. If false, then only the chunk content will be returned. Useful because the main section often contains important context. [query, string, optional, default: false] |
Examples:
asknews wiki "semiconductor lithography" --output jsonAll commands support --output human|table|json|jsonl|yaml, --json, API/auth URL
overrides, request timeout, and color control. Result data is written to stdout; diagnostics
are written to stderr.