Skip to content

justingibbs/docling

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Document Requirement Processor

This application processes documents using Docling and PydanticAI to identify and extract requirements from policy documents.

Setup

  1. Install dependencies using UV:
# Create and activate a virtual environment
uv venv
source .venv/bin/activate  # On Unix/macOS
# or
.venv\Scripts\activate  # On Windows

# Install the project in editable mode (-e)
# This allows you to modify the code without reinstalling
uv install -e .
  1. Create a .env file in the root directory and add your Anthropic API key:
ANTHROPIC_API_KEY=your_api_key_here
  1. Place your policy documents in the policy-documents directory.

Usage

Run the application:

uv run src/main.py

The application will:

  1. Load all documents from the policy-documents directory
  2. Process each document to identify requirements
  3. Save identified requirements to requirement-output.json

Output

Requirements are saved in JSON format with the following structure:

{
  "id": "REQ-001",
  "text": "The actual requirement text",
  "type": "functional|non-functional|security|performance",
  "priority": "high|medium|low",
  "dependencies": ["REQ-X", "REQ-Y"]
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages