To test wisecore locally, refer to the following link: https://github.com/HuemulSolutions/wisecore-orch
version 0.4
Wisecore is an advanced AI-powered knowledge management platform that enables automated generation of business documents. The application uses multiple Large Language Models (LLMs) to generate structured content based on customizable templates and domain-specific context.
- Automated Document Generation: Document creation using AI with multiple LLM models
- Customizable Templates: Template system with interdependent sections
- Multiple LLM Models: Support for GPT-4.1, Claude Sonnet-4, Llama-4 Maverick, GPT-OSS, and Granite-4
- Integrated Chatbot: Conversational interaction with generated content
- Context Management: Advanced context system and dependencies between sections
- RESTful API: Complete interface for integration with other applications
- Real-time Streaming: Content generation with real-time response
- PostgreSQL Database: Robust storage with vector support
- Organization System: Multi-tenant management with folders and document types
- Framework: FastAPI (Python 3.11)
- Database: PostgreSQL with pgvector extension
- ORM: SQLAlchemy with async support
- AI/LLM: LangChain, LangGraph
- Migrations: Alembic
- Containerization: Docker
src/
├── chatbot/ # Conversational chatbot system
├── database/ # Data models and repositories
├── graph/ # Generation flow logic (LangGraph)
├── llm/ # Language model integration
├── routes/ # API endpoints
├── services/ # Business logic
├── config.py # Application configuration
├── main.py # Application entry point
└── schemas.py # Validation schemas (Pydantic)
The system handles the following main entities:
- Organizations: Organizations with multi-tenant management
- Documents: Base documents with metadata and description
- Templates: Reusable templates with structured sections
- Sections: Individual sections with prompts and dependencies
- Executions: Generation executions with state and LLM model
- Folders: Hierarchical organization system
- DocumentTypes: Document classification with colors
- Context: Additional context to improve generation
- LLM: Available language model configuration
POST /generation/stream- Stream document generationPOST /generation/generate_document- Complete document generationPOST /generation/fix_section- Fix specific sectionsPOST /generation/redact_section_prompt- Improve section promptsPOST /generation/chatbot- Chatbot interaction
GET /documents/- List documentsPOST /documents/- Create documentsGET /documents/{id}- Get specific documentPUT /documents/{id}- Update documentDELETE /documents/{id}- Delete document
GET /templates/- List templatesPOST /templates/- Create templateGET /sections/- List sectionsPOST /sections/- Create section
GET /executions/- List executionsPOST /executions/- Create executionGET /executions/{id}/status- Execution status
GET /llms/- List available models
- Entrypoint: Context and configuration initialization
- Sort Sections: Section ordering by dependencies
- Get Dependencies: Resolution of dependencies between sections
- Execute Section: Content generation using LLM
- Save Section Execution: Persistence of generated content
- Should Continue: Process continuity evaluation
- End Execution: Finalization and consolidation
- GPT-4.1: Advanced OpenAI model
- Claude Sonnet-4: Anthropic model
- Llama-4 Maverick: Optimized Meta model
- GPT-OSS: Open source version
- Granite-4: IBM model
DATABASE_URL=postgresql+asyncpg://user:password@localhost/wisecore
ENVIRONMENT=LOCAL
ALEMBIC_DATABASE_URL=postgresql://user:password@localhost/wisecore
DEFAULT_LLM=gpt-4.1
MODEL_GATEWAY_URL=https://your-model-gateway.com
MODEL_GATEWAY_APIKEY=your-api-key- Python 3.11+
- PostgreSQL 14+ with pgvector extension
- Docker (optional)
- Clone the repository
git clone https://github.com/HuemulSolutions/wisecore.git
cd wisecore- Create virtual environment
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate- Install dependencies
pip install -r requirements.txt- Setup database
# Create PostgreSQL database
# Run migrations
alembic upgrade head- Configure environment variables
cp .env.example .env.dev
# Edit .env.dev with your configurations- Run the application
uvicorn src.main:app --reloaddocker build -t wisecore .
docker run -p 8000:8000 wisecorePOST /organizations/
{
"name": "My Company",
"description": "Company description"
}POST /documents/
{
"name": "Monthly Report",
"description": "Monthly sales report",
"organization_id": "organization-uuid"
}POST /generation/generate_document
{
"document_id": "document-uuid",
"execution_id": "execution-uuid",
"instructions": "Generate with focus on Q4 metrics"
}Migrations are handled with Alembic. To create a new migration:
alembic revision --autogenerate -m "Change description"
alembic upgrade headWiseCore is licensed under the Elastic License 2.0.
- ✅ Free to use for personal and commercial purposes
- ✅ Modify and distribute the code
- ✅ Use internally in your business without restrictions
- ❌ Cannot offer as SaaS or managed service
- ❌ Cannot resell the software as a product
- ❌ Cannot sell consulting services primarily based on WiseCore
For more details, see:
If you're unsure whether your use case is permitted, please contact us:
- Email: developer.code@huemulsolutions.com
- GitHub Issues: https://github.com/yourusername/wisecore/issues
We're open to discussing special cases and custom commercial licenses.
For technical support or inquiries, contact the Huemul Solutions team.