Skip to content

Commit 2655376

Browse files
committed
feature #1063 [Store] Split Local bridge into Cache and Memory bridges (OskarStark)
This PR was squashed before being merged into the main branch. Discussion ---------- [Store] Split Local bridge into Cache and Memory bridges | Q | A | ------------- | --- | Bug fix? | no | New feature? | yes | Docs? | no | Issues | -- | License | MIT Commits ------- 1866e94 [Store] Split Local bridge into Cache and Memory bridges
2 parents a07dd4f + 1866e94 commit 2655376

File tree

17 files changed

+62
-62
lines changed

17 files changed

+62
-62
lines changed

examples/commands/stores.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414
use Doctrine\DBAL\DriverManager;
1515
use Doctrine\DBAL\Tools\DsnParser;
1616
use MongoDB\Client as MongoDbClient;
17+
use Symfony\AI\Store\Bridge\Cache\Store as CacheStore;
1718
use Symfony\AI\Store\Bridge\ClickHouse\Store as ClickHouseStore;
18-
use Symfony\AI\Store\Bridge\Local\CacheStore;
19-
use Symfony\AI\Store\Bridge\Local\InMemoryStore;
19+
use Symfony\AI\Store\Bridge\InMemory\Store as InMemoryStore;
2020
use Symfony\AI\Store\Bridge\ManticoreSearch\Store as ManticoreSearchStore;
2121
use Symfony\AI\Store\Bridge\MariaDb\Store as MariaDbStore;
2222
use Symfony\AI\Store\Bridge\Meilisearch\Store as MeilisearchStore;

examples/indexer/index-file-loader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
*/
1111

1212
use Symfony\AI\Platform\Bridge\OpenAi\PlatformFactory;
13-
use Symfony\AI\Store\Bridge\Local\InMemoryStore;
13+
use Symfony\AI\Store\Bridge\InMemory\Store as InMemoryStore;
1414
use Symfony\AI\Store\Document\Loader\TextFileLoader;
1515
use Symfony\AI\Store\Document\Transformer\TextReplaceTransformer;
1616
use Symfony\AI\Store\Document\Transformer\TextSplitTransformer;

examples/indexer/index-inmemory-loader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
*/
1111

1212
use Symfony\AI\Platform\Bridge\OpenAi\PlatformFactory;
13-
use Symfony\AI\Store\Bridge\Local\InMemoryStore;
13+
use Symfony\AI\Store\Bridge\InMemory\Store as InMemoryStore;
1414
use Symfony\AI\Store\Document\Loader\InMemoryLoader;
1515
use Symfony\AI\Store\Document\Metadata;
1616
use Symfony\AI\Store\Document\TextDocument;

examples/indexer/index-rss-loader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
*/
1111

1212
use Symfony\AI\Platform\Bridge\OpenAi\PlatformFactory;
13-
use Symfony\AI\Store\Bridge\Local\InMemoryStore;
13+
use Symfony\AI\Store\Bridge\InMemory\Store as InMemoryStore;
1414
use Symfony\AI\Store\Document\Loader\RssFeedLoader;
1515
use Symfony\AI\Store\Document\Transformer\TextSplitTransformer;
1616
use Symfony\AI\Store\Document\Vectorizer;

examples/indexer/index-with-filters.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
*/
1111

1212
use Symfony\AI\Platform\Bridge\OpenAi\PlatformFactory;
13-
use Symfony\AI\Store\Bridge\Local\InMemoryStore;
13+
use Symfony\AI\Store\Bridge\InMemory\Store as InMemoryStore;
1414
use Symfony\AI\Store\Document\Filter\TextContainsFilter;
1515
use Symfony\AI\Store\Document\Loader\InMemoryLoader;
1616
use Symfony\AI\Store\Document\Metadata;

examples/ollama/indexer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
*/
1111

1212
use Symfony\AI\Platform\Bridge\Ollama\PlatformFactory;
13-
use Symfony\AI\Store\Bridge\Local\InMemoryStore;
13+
use Symfony\AI\Store\Bridge\InMemory\Store as InMemoryStore;
1414
use Symfony\AI\Store\Document\Loader\TextFileLoader;
1515
use Symfony\AI\Store\Document\Transformer\TextReplaceTransformer;
1616
use Symfony\AI\Store\Document\Transformer\TextSplitTransformer;

examples/ollama/rag.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
use Symfony\AI\Platform\Bridge\Ollama\PlatformFactory;
1818
use Symfony\AI\Platform\Message\Message;
1919
use Symfony\AI\Platform\Message\MessageBag;
20-
use Symfony\AI\Store\Bridge\Local\InMemoryStore;
20+
use Symfony\AI\Store\Bridge\InMemory\Store as InMemoryStore;
2121
use Symfony\AI\Store\Document\Loader\InMemoryLoader;
2222
use Symfony\AI\Store\Document\Metadata;
2323
use Symfony\AI\Store\Document\TextDocument;

examples/rag/cache.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
use Symfony\AI\Platform\Bridge\OpenAi\PlatformFactory;
1818
use Symfony\AI\Platform\Message\Message;
1919
use Symfony\AI\Platform\Message\MessageBag;
20-
use Symfony\AI\Store\Bridge\Local\CacheStore;
20+
use Symfony\AI\Store\Bridge\Cache\Store as CacheStore;
2121
use Symfony\AI\Store\Document\Loader\InMemoryLoader;
2222
use Symfony\AI\Store\Document\Metadata;
2323
use Symfony\AI\Store\Document\TextDocument;

examples/rag/in-memory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
use Symfony\AI\Platform\Bridge\OpenAi\PlatformFactory;
1818
use Symfony\AI\Platform\Message\Message;
1919
use Symfony\AI\Platform\Message\MessageBag;
20-
use Symfony\AI\Store\Bridge\Local\InMemoryStore;
20+
use Symfony\AI\Store\Bridge\InMemory\Store as InMemoryStore;
2121
use Symfony\AI\Store\Document\Loader\InMemoryLoader;
2222
use Symfony\AI\Store\Document\Metadata;
2323
use Symfony\AI\Store\Document\TextDocument;

examples/retriever/basic.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
*/
1111

1212
use Symfony\AI\Platform\Bridge\OpenAi\PlatformFactory;
13-
use Symfony\AI\Store\Bridge\Local\InMemoryStore;
13+
use Symfony\AI\Store\Bridge\InMemory\Store as InMemoryStore;
1414
use Symfony\AI\Store\Document\Loader\TextFileLoader;
1515
use Symfony\AI\Store\Document\Transformer\TextSplitTransformer;
1616
use Symfony\AI\Store\Document\Vectorizer;

0 commit comments

Comments
 (0)