C3 Generative AI Quickstart
The QuickStart utility automates initialization and configuration of C3 Generative AI Application deployments. This reference describes available functions and their parameters.
Main setup function
setup()
Runs complete initialization including infrastructure and application setup.
Parameters:
setupSpec(object orGenai.QuickStart.SetupSpec): Configuration object
What It Does:
- Enables automated cache invalidation
- Configures task node hardware profile (with GPU auto-selection)
- Initializes application layer (seeds packages, migrates credentials, deploys agents)
- Sets up runtime and embedder model installation jobs
- Configures leader node (may restart the leader node)
Example:
Genai.QuickStart.setup({
llmClientConfigName: 'gpt_4o',
threadPoolSize: 2
});Output: Displays Setup complete! Warning: leader node may restart. when successful.
Use for: Fresh shared environment deployments requiring complete infrastructure and application setup.
This function configures node pools which may not be suitable for production environments or handling large-scale data.
LLM configuration functions
setDynamicAgentConfig()
Configures the Dynamic Agent to use a specific LLM client.
Parameters:
llmClientConfigName(string): Name of the LLM configuration
Actions:
- Updates tool configurations (RAG, visualization, deep research)
- Updates system prompts
- Configures agent LLM settings
Example:
Genai.QuickStart.setDynamicAgentConfig('gpt_4o');Multimodal parsing functions
enableMew3()
Enables Mew3 multimodal extraction for PDF parsing with advanced layout detection.
Parameters:
fileExtensions(array, optional): File types to process (default: ['.pdf']). Note: Currently only.pdfextension is fully supported per GEN-14088.llmClientConfigName(string): LLM client for image and text verbalization
What It Does:
- Configures Mew3 for specified file extensions
- Sets LLM client for image/text verbalization
- Validates GPU availability for layout parsing model
- Validates model files exist at expected paths
- Validates LLM client connectivity
Example:
Genai.QuickStart.enableMew3(['.pdf'], 'gpt_4o');Automatic metadata tagging functions
createCategoryForAutomaticTagging()
Creates custom metadata categories for automatic document tagging.
Parameters:
categorySpecs(array): Array of category specification objects
Example:
Genai.QuickStart.createCategoryForAutomaticTagging([
{ id: 'financial_docs', label: 'Financial Documents' }
]);Agent deployment functions
deployCoreAgents()
Deploys core agents (Dynamic Canvas, Workflow Creation) from templates.
Parameters:
agentTemplatesToDeploy(array, optional): Template IDs (default: ['dynamic_canvas', 'default_workflow_creation'])deploySpec(object): Deployment specificationllmClientConfigName(string): LLM client configuration name
Example:
Genai.QuickStart.deployCoreAgents(
['dynamic_canvas', 'default_workflow_creation'],
GenaiCore.Agent.DeploySpec.make({
engineDeploySpec: {
threadPool: { minThreads: 2, initialThreads: 2, maxThreads: 2 },
nodePools: ['leader', 'task']
}
}),
'gpt_4o'
);SetupSpec configuration object
Configuration data structure for QuickStart functions:
{
llmClientConfigName: 'gpt_4o', // Required: LLM to use
threadPoolSize: 2, // Thread count (default: 2)
nodePools: ['leader', 'task'], // Node pools
taskNodeHwp: 'hardware_profile_name', // Hardware profile (optional)
embedderSpec: {
embedderModelName: 'intfloat/multilingual-e5-large-instruct' // Default if not specified
},
mew3FileExtensions: ['.pdf'], // File types for Mew3 (only .pdf fully supported)
manualCategories: [
{ id: 'cat1', label: 'Category 1' }
]
}Default Embedder Model: If embedderSpec is not provided, QuickStart automatically uses intfloat/multilingual-e5-large-instruct, which supports 98 languages and is optimized for semantic search across multilingual documents.