Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Llama Index Workflow Template

NotificationsYou must be signed in to change notification settings

run-llama/template-workflow-extract-basic

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.

Simple customizations

For some basic customizations, you can modifysrc/extraction_review/config.py

  • EXTRACTION_AGENT_NAME: Logical name for your Extraction Agent. WhenUSE_REMOTE_EXTRACTION_SCHEMA isFalse, 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.

Complex customizations

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.

Linting and type checking

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

Stars

Watchers

Forks

Packages

No packages published

Contributors2

  •  
  •  

[8]ページ先頭

©2009-2025 Movatter.jp