diff --git a/README.md b/README.md index e075e04..1cf31b0 100644 --- a/README.md +++ b/README.md @@ -32,6 +32,31 @@ This is the contents of the published config file: ```php return [ + 'enabled' => env('EMBEDDINGS_ENABLED', true), + 'driver' => env('EMBEDDINGS_DRIVER', 'null'), // 'null' / 'openai' + 'queue' => true, + 'database' => [ + 'connection' => env('EMBEDDINGS_DATABASE_CONNECTION', 'pgsql'), + 'table' => env('EMBEDDINGS_DB_TABLE', 'embeddings'), + ], + 'openai' => [ + 'key' => env('OPENAI_API_KEY'), + ], + + /* + |-------------------------------------------------------------------------- + | Chunk Sizes + |-------------------------------------------------------------------------- + | + | These options allow you to control the maximum chunk size when you are + | mass importing data into the embed engine. This allows you to fine + | tune each of these chunk sizes based on the power of the servers. + | + */ + 'chunk' => [ + 'embeddable' => 500, + 'unembeddable' => 500, + ], ]; ``` diff --git a/src/EngineManager.php b/src/EngineManager.php index ea7b7ad..1d3b935 100644 --- a/src/EngineManager.php +++ b/src/EngineManager.php @@ -69,8 +69,9 @@ public function forgetEngines() */ public function getDefaultDriver() { - if (is_null($driver = config('embeddings.driver'))) { - return 'openai'; + $driver = config('embeddings.driver'); + if (is_null($driver)) { + return 'null'; } return $driver;