PHP code example of dreistein / d-ai

1. Go to this page and download the library: Download dreistein/d-ai library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

dreistein / d-ai example snippets


$GLOBALS['TYPO3_CONF_VARS']['DB']['Connections']['pgvector'] = [
    'driver' => 'pdo_pgsql',
    'host' => '127.0.0.1',
    'port' => 5432,
    'dbname' => 'typo3_dai',
    'user' => 'typo3_dai',
    'password' => 'your-password',
    'charset' => 'utf8',
];
foreach ([
    'tx_dai_domain_model_project',
    'tx_dai_llm_config',
    'tx_dai_data_source',
    'tx_dai_ingest_job',
    'tx_dai_domain_model_document',
] as $table) {
    $GLOBALS['TYPO3_CONF_VARS']['DB']['TableMapping'][$table] = 'pgvector';
}