Update for llm-extraction-from-raw-html

This commit is contained in:
Eric Ciarla 2024-07-02 14:05:42 -04:00
parent 0175152577
commit 2d0d5ac392
2 changed files with 3 additions and 3 deletions

View File

@ -92,8 +92,8 @@
"properties": { "properties": {
"mode": { "mode": {
"type": "string", "type": "string",
"enum": ["llm-extraction"], "enum": ["llm-extraction", "llm-extraction-from-raw-html"],
"description": "The extraction mode to use, currently supports 'llm-extraction'" "description": "The extraction mode to use. llm-extraction: Extracts information from the cleaned and parsed content. llm-extraction-from-raw-html: Extracts information directly from the raw HTML."
}, },
"extractionPrompt": { "extractionPrompt": {
"type": "string", "type": "string",

View File

@ -107,7 +107,7 @@ export interface Params {
[key: string]: any; [key: string]: any;
extractorOptions?: { extractorOptions?: {
extractionSchema: z.ZodSchema | any; extractionSchema: z.ZodSchema | any;
mode?: "llm-extraction"; mode?: "llm-extraction" | "llm-extraction-from-raw-html";
extractionPrompt?: string; extractionPrompt?: string;
}; };
} }