- Notifications
You must be signed in to change notification settings - Fork0
run-llama/template-workflow-extract-basic
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
This is a starter for LlamaAgents. See theLlamaAgents (llamactl) getting started guide for context on local development and deployment.
To run the application, installuv and runuvx llamactl serve.
For some basic customizations, you can modifysrc/extraction_review/config.py
EXTRACTION_AGENT_NAME: Logical name for your Extraction Agent. WhenUSE_REMOTE_EXTRACTION_SCHEMAisFalse, this name is used to upsert the agent with your local schema; whenTrue, it is used to fetch an existing agent.EXTRACTED_DATA_COLLECTION: The Agent Data collection name used to store extractions (namespaced by agent name and environment).ExtractionSchema: When using a local schema, edit this Pydantic model to match the fields you want extracted. Prefer optional types where possible to allow for partial extractions. Note that the extraction process requires all values! so you must explicitly set values to be optional if they are not required. (pydantic default factories will not work, as pydantic only uses default values for missing fields).
The UI fetches the JSON Schema and collection name from the backend metadata workflow at runtime, and dynamicallygenerates an editing UI based on the schema. If you customize this application to have a different extraction schema fromthe presentation schema rendered in the UI, for example if you customize the extraction process to add additional fields or otherwisetransforma it, then you must return the presentation schema from the metadata workflow.
For more complex customizations, you can edit the rest of the application. For example, you could
- Modify the existing file processing workflow to provide additional context for the extraction process
- Take further action based on the extracted data.
- Add additional workflows to submit data upon approval.
Python and javascript pacakges contain helpful scripts to lint, format, and type check the code.
To check and fix python code:
uv run hatch run lintuv run hatch run typecheckuv run hatch runtest# run all at onceuv run hatch run all-fix
To check and fix javascript code, within theui directory:
pnpm run lintpnpm run typecheckpnpm runtest# run all at oncepnpm run all-fix
About
Llama Index Workflow Template
Resources
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Contributors2
Uh oh!
There was an error while loading.Please reload this page.