Skip to main content

Document Context Integration

Document Context

All AI features can leverage uploaded project documentation for enhanced accuracy through intelligent document processing and retrieval.

Overview

Pidima's Document Context Integration uses advanced RAG (Retrieval-Augmented Generation) technology to make AI features more accurate and relevant by grounding them in your actual project documentation.

How It Works

RAG Technology

RAG (Retrieval-Augmented Generation) combines two powerful AI capabilities:

  • Retrieval: AI searches through your documents to find relevant information
  • Generation: AI uses retrieved context to generate accurate, grounded responses

This approach ensures AI features reference your actual specifications rather than relying solely on general knowledge.

Document Processing

When you upload documents to your project:

  1. Content Extraction: Text is extracted from PDFs, Word docs, and other formats
  2. Semantic Chunking: Documents are broken into meaningful sections
  3. Embedding Creation: AI creates searchable representations of content
  4. Index Building: Content is organized for fast retrieval
  5. Version Tracking: Multiple document versions are processed and managed

See Document Versioning & RAG Processing for detailed information.

Documents with RAG processing and version management

AI Features Enhanced by Document Context

AI Chatbot Assistant

The chatbot leverages documents to:

  • Answer questions about specifications
  • Reference specific document sections
  • Cite page numbers and clauses
  • Compare requirements to documented standards
  • Explain technical terms from your documentation

Example:

You: "What voltage specifications does our battery requirement need?"
AI: "According to EV_Battery_Requirements.pdf (v1.1, Section 3.1):
Nominal voltage: 12.0V ±0.6V (11.4V to 12.6V measured at rest)

This matches requirement SYSTEM-REQ-00003."

See AI Chatbot Assistant for complete guide.

Requirements Assist

Document context improves all Requirements Assist operations:

Autofill Missing Fields

  • Uses documents to determine appropriate requirement types
  • Assigns domains based on specification structure
  • Sets priority levels matching documented criticality

Rewrite Requirements

  • References specification language and terminology
  • Ensures enhanced requirements match documented standards
  • Maintains consistency with project documentation

Level Generation

  • Derives requirements from source specifications
  • Maintains traceability to document sections
  • Uses documented decomposition patterns

See Requirements Assist for detailed features.

Generate Tests

Test generation benefits from document context:

  • Creates tests matching documented test procedures
  • Includes acceptance criteria from specifications
  • References standard test methods in documents
  • Ensures coverage of documented requirements

See Generate Tests for test generation guidance.

Configuring Document Context

Applied Levels

Control which requirement levels use each document:

  1. Go to ProjectDocument Attachments
  2. Click Edit next to a document version
  3. Select Applied Levels:
    • ✓ Customer Requirements
    • ✓ System Requirements
    • ✓ Subsystem Requirements
    • ✓ Component Requirements
  4. Save configuration

AI features only use documents relevant to the requirement level you're working on.

Applied Modules

Specify which functional modules reference each document:

  1. Edit document settings
  2. Select Applied Modules:
    • Software
    • Hardware
    • Mechanical
    • Electrical
    • Safety
    • Security
  3. Save configuration

This ensures AI features reference domain-specific documentation.

Monitoring RAG Processing

Track document processing status:

  • Processed (Green): Document fully indexed and available
  • Processing (Yellow): Document being processed, AI access limited
  • Failed (Red): Processing error, document not available

View processing status in the Document Attachments table and enable monitoring for active documents.

Benefits of Document Context

Improved Accuracy

  • Domain-Specific: AI understands your industry terminology
  • Project-Specific: Responses match your project's standards
  • Version-Aware: Uses correct document versions
  • Citation-Backed: AI responses reference actual specifications

Enhanced Consistency

  • Standardized Language: AI uses terms from your documents
  • Uniform Format: Generated content matches documented patterns
  • Compliance: Ensures alignment with documented standards
  • Traceability: Links AI outputs to source documentation

Time Savings

  • Faster Requirement Writing: AI suggests text from specifications
  • Reduced Manual Research: AI finds relevant document sections
  • Quick Answers: Chatbot retrieves information instantly
  • Automated Cross-Reference: AI links related document sections

Best Practices

Document Preparation

Use Text-Based Documents

  • PDF with embedded text (not just scanned images)
  • Word documents (.docx)
  • Markdown or plain text for best results
  • OCR scanned documents before upload if necessary

Structure Documents Clearly

  • Use headings and sections consistently
  • Number sections and clauses
  • Include table of contents
  • Break very large documents into logical parts

Keep Documents Current

  • Upload latest versions promptly
  • Mark obsolete versions as inactive
  • Enable monitoring for frequently updated documents
  • Document version changes in descriptions

Configuration Strategy

Set Appropriate Scope

  • Don't apply documents to all levels if they're level-specific
  • Use module filtering to reduce irrelevant context
  • Review and update scopes when project structure changes

Monitor Actively Used Documents

  • Enable monitoring for specifications in active development
  • Disable monitoring for finalized, stable documents
  • Set appropriate refresh intervals based on update frequency

Maintain Document Library

  • Remove obsolete document versions periodically
  • Archive documents for completed project phases
  • Keep document descriptions current and descriptive

Using Document Context Effectively

Reference Documents in Prompts

  • "According to the battery specification document..."
  • "Based on our safety standards document..."
  • "Using the test procedure specification..."

Ask Specific Document Questions

  • "What does section 3.2 of the battery spec say about CCA ratings?"
  • "Find all requirements in the safety standard related to fault handling"
  • "Compare this requirement to the documented acceptance criteria"

Validate AI Responses

  • Check cited document sections yourself
  • Verify page numbers and quotes
  • Ensure AI interpretation matches your understanding
  • Provide feedback on incorrect references

Document Context in Workflows

Requirements Creation

  1. Upload project specifications to Document Attachments
  2. Wait for RAG processing to complete (green "Processed" status)
  3. Use Requirements Assist to import or enhance requirements
  4. AI references specifications automatically
  5. Review and approve AI-generated content

Test Case Development

  1. Ensure test procedure documents are uploaded and processed
  2. Select requirements needing test coverage
  3. Use "Generate Tests" with document context enabled
  4. AI creates tests matching documented procedures
  5. Review and customize generated tests

Requirement Review

  1. Open requirement in detail view
  2. Ask AI Chatbot: "Does this requirement match our specifications?"
  3. Chatbot analyzes requirement against documents
  4. Review AI feedback and cited sections
  5. Update requirement based on insights

Compliance Verification

  1. Upload regulatory standards and compliance documents
  2. Configure Applied Levels for compliance documents
  3. Use Requirements Assist to check compliance
  4. Ask Chatbot: "Does this meet ISO 26262 requirements?"
  5. Review AI analysis and document citations

Async Processing

All AI operations run asynchronously for optimal performance:

  • Email Notifications: Receive updates when operations complete
  • Progress Tracking: Monitor job status through the Jobs page
  • Token Usage: Track AI usage and costs
  • Batch Processing: Handle large volumes of requirements efficiently
  • Background Processing: Continue working while AI processes documents

Large document processing happens in the background, allowing you to continue working on other tasks.

Troubleshooting

Document Not Being Used by AI

If AI doesn't reference your document:

  1. Check document status is "Processed" (green)
  2. Verify Applied Levels and Modules match your work
  3. Ensure document version is "Active"
  4. Try asking chatbot specifically about the document
  5. Check if monitoring is enabled

Incorrect Document References

If AI cites wrong document sections:

  1. Verify document structure is clear (use headings)
  2. Check if document OCR quality is good (for scanned PDFs)
  3. Ensure document content is not corrupted
  4. Try re-uploading document
  5. Provide feedback via thumbs down on AI response

Slow AI Responses

If AI features are slow when using documents:

  1. Reduce number of large documents with "Applied" to all levels
  2. Be more specific with Applied Levels and Modules
  3. Break very large documents into smaller files
  4. Disable monitoring on unused documents
  5. Contact support for project optimization