Skip to content

Commit 7770885

Browse files
committed
Fix OpenAI and GPT namespaces in Neo4j RAG example
1 parent bfcef49 commit 7770885

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

examples/rag/neo4j.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414
use Symfony\AI\Agent\Toolbox\Tool\SimilaritySearch;
1515
use Symfony\AI\Agent\Toolbox\Toolbox;
1616
use Symfony\AI\Fixtures\Movies;
17-
use Symfony\AI\Platform\Bridge\OpenAI\Embeddings;
18-
use Symfony\AI\Platform\Bridge\OpenAI\GPT;
19-
use Symfony\AI\Platform\Bridge\OpenAI\PlatformFactory;
17+
use Symfony\AI\Platform\Bridge\OpenAi\Embeddings;
18+
use Symfony\AI\Platform\Bridge\OpenAi\Gpt;
19+
use Symfony\AI\Platform\Bridge\OpenAi\PlatformFactory;
2020
use Symfony\AI\Platform\Message\Message;
2121
use Symfony\AI\Platform\Message\MessageBag;
2222
use Symfony\AI\Store\Bridge\Neo4j\Store;
@@ -59,7 +59,7 @@
5959
$indexer = new Indexer($vectorizer, $store);
6060
$indexer->index($documents);
6161

62-
$model = new GPT(GPT::GPT_4O_MINI);
62+
$model = new Gpt(Gpt::GPT_4O_MINI);
6363

6464
$similaritySearch = new SimilaritySearch($platform, $embeddings, $store);
6565
$toolbox = new Toolbox([$similaritySearch], logger: logger());

0 commit comments

Comments
 (0)