You
YouRetriever #
Bases: BaseRetriever
Retriever for You.com's Search API (unified web and news search).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
api_key
|
Optional[str]
|
You.com API key, if |
None
|
callback_manager
|
Optional[CallbackManager]
|
Callback manager for instrumentation |
None
|
count
|
Optional[int]
|
Maximum number of search results to return per section (web/news), range 1-100, defaults to 10 |
None
|
safesearch
|
Optional[Literal['off', 'moderate', 'strict']]
|
Safesearch settings, one of "off", "moderate", "strict" |
None
|
country
|
Optional[str]
|
Country code (ISO 3166-2), ex: 'US' for United States |
None
|
language
|
Optional[str]
|
Language of results in BCP 47 format, ex: 'en' for English, defaults to 'EN' |
None
|
freshness
|
Optional[str]
|
Recency of results - "day", "week", "month", "year", or custom range "YYYY-MM-DDtoYYYY-MM-DD" |
None
|
offset
|
Optional[int]
|
Offset for pagination (in multiples of count), range 0-9 |
None
|
livecrawl
|
Optional[Literal['web', 'news', 'all']]
|
Which section(s) to live crawl - "web", "news", or "all" |
None
|
livecrawl_formats
|
Optional[Literal['html', 'markdown']]
|
Format of live-crawled content - "html" or "markdown" |
None
|
Source code in .build/python/llama-index-integrations/retrievers/llama-index-retrievers-you/llama_index/retrievers/you/base.py
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 | |
options: members: - YouRetriever