add uvicorn as py server for faster com
This commit is contained in:
@@ -472,7 +472,7 @@ use Symfony\Component\Config\Loader\ParamConfigurator as Param;
|
||||
* },
|
||||
* disallow_search_engine_index?: bool|Param, // Enabled by default when debug is enabled. // Default: true
|
||||
* http_client?: bool|array{ // HTTP Client configuration
|
||||
* enabled?: bool|Param, // Default: false
|
||||
* enabled?: bool|Param, // Default: true
|
||||
* max_host_connections?: int|Param, // The maximum number of connections to a single host.
|
||||
* default_options?: array{
|
||||
* headers?: array<string, mixed>,
|
||||
|
||||
@@ -57,6 +57,8 @@ parameters:
|
||||
mto.vector.search_script: '%mto.root%/src/Vector/vector_search.py'
|
||||
mto.vector.timeout: 600
|
||||
|
||||
mto.vector.service_url: 'http://127.0.0.1:8090'
|
||||
|
||||
|
||||
# ------------------------------------------------------------
|
||||
# Services
|
||||
@@ -153,11 +155,7 @@ services:
|
||||
|
||||
App\Vector\VectorSearchClient:
|
||||
arguments:
|
||||
$pythonBin: '%mto.vector.python_bin%'
|
||||
$scriptPath: '%mto.vector.search_script%'
|
||||
$vectorIndexPath: '%mto.knowledge.vector_index%'
|
||||
$vectorMetaPath: '%mto.knowledge.vector_index_meta%'
|
||||
$indexMetaPath: '%mto.knowledge.index_meta%'
|
||||
$serviceUrl: '%mto.vector.service_url%'
|
||||
$agentLogger: '@monolog.logger.agent'
|
||||
|
||||
App\Vector\VectorIndexBuilder:
|
||||
@@ -194,11 +192,7 @@ services:
|
||||
|
||||
App\Tag\TagVectorSearchClient:
|
||||
arguments:
|
||||
$pythonBin: '%mto.vector.python_bin%'
|
||||
$scriptPath: '%mto.vector.search_tags_script%'
|
||||
$vectorTagsIndexPath: '%mto.knowledge.vector_tags_index%'
|
||||
$vectorTagsMetaPath: '%mto.knowledge.vector_tags_index_meta%'
|
||||
$embeddingModel: '%mto.index.embedding_model%'
|
||||
$serviceUrl: '%mto.vector.service_url%'
|
||||
$agentLogger: '@monolog.logger.agent'
|
||||
|
||||
App\Tag\TagRoutingService: ~
|
||||
|
||||
Reference in New Issue
Block a user