Types
_AvailFilters
Bases: TypedDict
Internal class for the available parameter set.
Source code in parameter_search/custom_types.py
GitDataFileConfig
Bases: TypedDict
Git data instance for a file.
Attributes:
Name | Type | Description |
---|---|---|
filename |
str
|
The file (paper) to associate this github repository info with. |
git_info |
GitData
|
The github repository information for document ingestion. |
Source code in parameter_search/custom_types.py
SearchSpace
Bases: TypedDict
Search space used for hyperparameter search.
Attributes:
Name | Type | Description |
---|---|---|
filenames |
list[str]
|
The file (paper) name's to process. |
loader |
list[str]
|
The list of available data loaders to test. |
chunking_config |
list[str]
|
The chunking strategies to test. |
embedding_model |
list[str]
|
The embedding models to test. |
vector_store |
list[str]
|
The vector stores to test. |
similarity_top_k |
list[int]
|
The similarity top k values to test. |
llm |
list[str]
|
The LLMs to test. |
git_data |
Optional[list[GitDataFileConfig]]
|
The git data information. |
other_docs |
Optional[dict[str, list[str]]]
|
Any other documents to include (keys are the paper name to associate with). |
Source code in parameter_search/custom_types.py
create_git_data_file_config(filename, git_info)
Constructor for the GitDataFileConfig TypedDict.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
filename |
str
|
The file (paper) to associate this github repository info with. |
required |
git_info |
GitData
|
The github repository information for document ingestion. |
required |
Returns:
Type | Description |
---|---|
GitDataFileConfig
|
|
Source code in parameter_search/custom_types.py
init_search_space(filenames=None, loader=None, chunking_config=None, embedding_model=None, vector_store=None, similarity_top_k=None, llm=None, git_data=None, other_docs=None)
Creates a search space instance.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
filenames |
list[str] | str | None
|
The filenames to test over for the search space (if |
None
|
loader |
list[str] | str | None
|
The data loaders for the search space (if |
None
|
chunking_config |
list[str] | str | or None
|
The chunking strategies for the search space (if |
None
|
embedding_model |
list[str] | str | or None
|
The embedding model for the search space (if |
None
|
vector_store |
list[str] | str | or None
|
The vector store for the search space (if |
None
|
similarity_top_k |
list[int] | int | or None
|
The similarity top k for the search space (if |
None
|
llm |
list[str] | str | or None
|
The llm for the search space (if |
None
|
git_data |
list[GitDataFileConfig] | GitDataFileConfig | None
|
The git data for each file (if |
None
|
other_docs |
dict[str, list[str]] | None
|
The other documents to include (if |
None
|
Returns:
Type | Description |
---|---|
SearchSpace
|
The search space grid. |
Source code in parameter_search/custom_types.py
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 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 |
|