lpgcast.cli¶
Command line: lpgcast (alias text2lpg).
Attributes¶
Classes¶
Functions:¶
cast(schema_path, episodes_path, out_dir, db_path, replay, recreate_schema, concurrency)
¶
Cast EPISODES into SCHEMA and save the result under OUT.
Episodes that produce nothing are quarantined and the run goes on; a misconfigured model, or a cache miss under --replay, stops it.
Source code in lpgcast/cli.py
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 | |
main()
¶
select_command(schema_path, text, episodes_path, show_sheet)
¶
Show the slice of SCHEMA each text would be cast against. Makes no model call.
Prints one JSON line per text: the mode, the seeds and how each lane ranked them, the retrieval metrics and the slice's vertex and edge counts.
Source code in lpgcast/cli.py
serve(host, port)
¶
Serve POST /cast over HTTP (needs the server extra).
Every request needs Authorization: Bearer $LPGCAST_SERVE_API_KEY; without
a key the service refuses to cast unless LPGCAST_SERVE_ALLOW_ANONYMOUS is
set. Model settings come from LPGCAST_LLM_*.
Source code in lpgcast/cli.py
sheet(schema_path, as_json_schema)
¶
Print what a model is shown for SCHEMA. Makes no model call.