diff --git a/examples/rag/neo4j.php b/examples/rag/neo4j.php index 0c84b6a2d..39fbb56e2 100644 --- a/examples/rag/neo4j.php +++ b/examples/rag/neo4j.php @@ -24,14 +24,13 @@ use Symfony\AI\Store\Document\TextDocument; use Symfony\AI\Store\Document\Vectorizer; use Symfony\AI\Store\Indexer; -use Symfony\Component\HttpClient\HttpClient; use Symfony\Component\Uid\Uuid; require_once dirname(__DIR__).'/bootstrap.php'; // initialize the store $store = new Store( - httpClient: HttpClient::create(), + httpClient: http_client(), endpointUrl: env('NEO4J_HOST'), username: env('NEO4J_USERNAME'), password: env('NEO4J_PASSWORD'), diff --git a/examples/rag/qdrant.php b/examples/rag/qdrant.php index d926db1de..4a105cd18 100644 --- a/examples/rag/qdrant.php +++ b/examples/rag/qdrant.php @@ -24,14 +24,13 @@ use Symfony\AI\Store\Document\TextDocument; use Symfony\AI\Store\Document\Vectorizer; use Symfony\AI\Store\Indexer; -use Symfony\Component\HttpClient\HttpClient; use Symfony\Component\Uid\Uuid; require_once dirname(__DIR__).'/bootstrap.php'; // initialize the store $store = new Store( - HttpClient::create(), + http_client(), env('QDRANT_HOST'), env('QDRANT_SERVICE_API_KEY'), 'movies', diff --git a/examples/rag/surrealdb.php b/examples/rag/surrealdb.php index 9e592c300..5cef91641 100644 --- a/examples/rag/surrealdb.php +++ b/examples/rag/surrealdb.php @@ -24,14 +24,13 @@ use Symfony\AI\Store\Document\TextDocument; use Symfony\AI\Store\Document\Vectorizer; use Symfony\AI\Store\Indexer; -use Symfony\Component\HttpClient\HttpClient; use Symfony\Component\Uid\Uuid; require_once dirname(__DIR__).'/bootstrap.php'; // initialize the store $store = new Store( - httpClient: HttpClient::create(), + httpClient: http_client(), endpointUrl: env('SURREALDB_HOST'), user: env('SURREALDB_USER'), password: env('SURREALDB_PASS'),