Files
cim_summary/backend/src/services/llmUtils/index.ts
admin 87c6da4225 Refactor LLM service architecture and improve document processing
- Refactor LLM service with provider pattern (Anthropic, OpenAI, OpenRouter)
- Add structured LLM prompts and utilities (token estimation, cost calculation, JSON extraction)
- Implement RAG improvements with optimized chunking and embedding services
- Add financial extraction monitoring service
- Add parallel document processor
- Improve error handling with dedicated error handlers
- Add comprehensive TypeScript types for LLM, document, and processing
- Update optimized agentic RAG processor and simple document processor
2025-11-11 21:04:42 -05:00

10 lines
265 B
TypeScript

/**
* LLM Utility Functions
* Centralized exports for all LLM utility functions
*/
export { extractJsonFromResponse } from './jsonExtractor';
export { estimateTokenCount, truncateText } from './tokenEstimator';
export { estimateCost } from './costCalculator';