Llama dataset metadata
LlamaDatasetMetadataPack #
Bases: BaseLlamaPack
A llamapack for creating and saving the necessary metadata files for submitting a llamadataset: card.json and README.md.
Source code in llama-index-packs/llama-index-packs-llama-dataset-metadata/llama_index/packs/llama_dataset_metadata/base.py
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 |
|
run #
run(index: BaseIndex, benchmark_df: DataFrame, rag_dataset: LabelledRagDataset, name: str, description: str, baseline_name: str, source_urls: Optional[List[str]] = None, code_url: Optional[str] = None)
Main usage for a llamapack. This will build the card.json and README.md and save them to local disk.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
index
|
BaseIndex
|
the index from which query_engine is derived and used in the rag evaluation. |
required |
benchmark_df
|
DataFrame
|
the benchmark dataframe after using RagEvaluatorPack |
required |
rag_dataset
|
LabelledRagDataset
|
the LabelledRagDataset used for evaluations |
required |
name
|
str
|
The name of the new dataset e.g., "Paul Graham Essay Dataset" |
required |
baseline_name
|
str
|
The name of the baseline e.g., "llamaindex" |
required |
description
|
str
|
The description of the new dataset. |
required |
source_urls
|
Optional[List[str]]
|
description. Defaults to None. |
None
|
code_url
|
Optional[str]
|
description. Defaults to None. |
None
|
Source code in llama-index-packs/llama-index-packs-llama-dataset-metadata/llama_index/packs/llama_dataset_metadata/base.py
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 |
|