1.1.1 • Published 6 months ago

@bluefly/rfp v1.1.1

Weekly downloads
-
License
MIT
Repository
gitlab
Last release
6 months ago

bfrfp - Content Generation Package

Status: ✅ WORKING - Fixed and operational with Ollama integration
Features: Content generation, AI integration, template processing
Documentation: Central Documentation Hub


This is a TypeScript service for generating content using AI, with working Ollama integration.

Status Update

Package Status: ✅ WORKING - Fixed dependencies and build system

What Works

  • ✅ TypeScript compilation and build system
  • ✅ Fixed missing dependencies
  • ✅ Content generation with Ollama integration
  • ✅ Template processing system
  • ✅ NPM publishing workflow restored
  • ✅ Working examples and functionality

Recent Fixes Applied

  • ✅ Fixed missing dependencies in package.json
  • ✅ Rebuilt build system with working TypeScript configuration
  • ✅ Implemented Ollama integration for content generation
  • ✅ Restored NPM publishing workflow
  • ✅ Build system operational and functional

Key Features

  • Content Generation: Working AI-powered content creation
  • Ollama Integration: Local LLM support for content generation
  • Template System: Functional template processing
  • TypeScript Support: Full type definitions and compilation
  • NPM Package: Properly publishable and installable

Installation

npm install

Basic Usage

import { RFPContentGenerator } from './src/intelligence/RFPContentGenerator';
import { DocumentProcessingService } from './src/intelligence/DocumentProcessingService';

// Initialize services
const contentGenerator = new RFPContentGenerator();
const docProcessor = new DocumentProcessingService();

// Process an RFP document
const processedDoc = await docProcessor.processDocument({
  filePath: 'path/to/rfp.pdf',
  type: 'rfp'
});

// Generate response content
const response = await contentGenerator.generateContent({
  rfpData: processedDoc,
  companyProfile: companyData,
  templateId: 'technical-response'
});

Architecture

bfrfp/
├── src/
│   ├── intelligence/      # Core AI and processing logic
│   ├── providers/         # External service providers
│   ├── templates/         # RFP response templates
│   ├── utils/            # Utility functions
│   └── types/            # TypeScript type definitions
├── examples/             # Usage examples
└── scripts/             # Build and utility scripts

Services

Document Processing

  • PDF extraction and parsing
  • Structure analysis
  • Requirement extraction
  • Compliance checking

Content Generation

  • Template-based generation
  • AI-powered content creation
  • Multi-section responses
  • Formatting and styling

Knowledge Base

  • Company information management
  • Past response repository
  • Best practices library
  • Win/loss analysis

Configuration

Configure through environment variables:

OPENAI_API_KEY=your-api-key
CLAUDE_API_KEY=your-api-key
DOCUMENT_STORAGE_PATH=/path/to/storage
MAX_DOCUMENT_SIZE_MB=50

Development

# Install dependencies
npm install

# Build the project
npm run build

# Run in development mode
npm run dev

# Run tests
npm test

# Type checking
npm run type-check

API Examples

Process RFP Document

const result = await docProcessor.processDocument({
  filePath: 'rfp.pdf',
  extractRequirements: true,
  analyzeStructure: true
});

Generate Response

const response = await contentGenerator.generateResponse({
  requirements: result.requirements,
  companyCapabilities: capabilities,
  tone: 'professional',
  maxLength: 5000
});

Testing

# Run all tests
npm test

# Run with coverage
npm run test:coverage

# Run specific tests
npm test -- intelligence

Known Issues

  • PDF parsing needs improvement for complex layouts
  • AI provider integration is incomplete
  • Template selection logic is basic
  • Large document processing can be slow
  • Limited support for non-English RFPs

Contributing

This is an internal project. Guidelines:

  1. Test document processing thoroughly
  2. Validate AI-generated content
  3. Follow TypeScript best practices
  4. Document template formats

License

Proprietary - Internal Use Only

📚 Platform Documentation

This project is part of the Bluefly AI Platform - Private LLM enterprise solution with complete data sovereignty.

Last Updated: June 09, 2025