Skip to content

Commit f924bed

Browse files
committed
bug #241 [Examples] Fix OpenAI and GPT namespaces in Neo4j RAG example (chr-hertel)
This PR was merged into the main branch. Discussion ---------- [Examples] Fix OpenAI and GPT namespaces in Neo4j RAG example | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | Docs? | no | Issues | | License | MIT Follow up after #217 and #183 Commits ------- 7770885 Fix OpenAI and GPT namespaces in Neo4j RAG example
2 parents bfcef49 + 7770885 commit f924bed

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)