File tree Expand file tree Collapse file tree 5 files changed +13
-2
lines changed Expand file tree Collapse file tree 5 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ concurrency:
1515 cancel-in-progress: true
1616
1717env:
18- REQUIRED_PHP_EXTENSIONS: 'mongodb'
18+ REQUIRED_PHP_EXTENSIONS: 'mongodb, redis '
1919
2020jobs:
2121 examples:
Original file line number Diff line number Diff line change @@ -168,3 +168,6 @@ SUPABASE_MATCH_FUNCTION=match_documents
168168# Pogocache (message store)
169169POGOCACHE_HOST=http://127.0.0.1:9401
170170POGOCACHE_PASSWORD=symfony
171+
172+ # Redis (store)
173+ REDIS_HOST=localhost
Original file line number Diff line number Diff line change 2424use Symfony\AI\Store\Bridge\Neo4j\Store as Neo4jStore;
2525use Symfony\AI\Store\Bridge\Postgres\Store as PostgresStore;
2626use Symfony\AI\Store\Bridge\Qdrant\Store as QdrantStore;
27+ use Symfony\AI\Store\Bridge\Redis\Store as RedisStore;
2728use Symfony\AI\Store\Bridge\SurrealDb\Store as SurrealDbStore;
2829use Symfony\AI\Store\Bridge\Typesense\Store as TypesenseStore;
2930use Symfony\AI\Store\Bridge\Weaviate\Store as WeaviateStore;
8889 env('QDRANT_SERVICE_API_KEY'),
8990 'symfony',
9091 ),
92+ 'redis' => static fn (): RedisStore => new RedisStore(
93+ new Redis([
94+ 'host' => env('REDIS_HOST'),
95+ 'port' => 6379,
96+ ]),
97+ 'symfony'
98+ ),
9199 'surrealdb' => static fn (): SurrealDbStore => new SurrealDbStore(
92100 httpClient: http_client(),
93101 endpointUrl: env('SURREALDB_HOST'),
Original file line number Diff line number Diff line change 66 "require": {
77 "php": ">=8.2",
88 "ext-pdo": "*",
9+ "ext-redis": "*",
910 "async-aws/bedrock-runtime": "^1.1",
1011 "codewithkyrian/chromadb-php": "^0.4.0",
1112 "codewithkyrian/transformers": "^0.6.2",
Original file line number Diff line number Diff line change 1414use Symfony\AI\Agent\Toolbox\Tool\SimilaritySearch;
1515use Symfony\AI\Agent\Toolbox\Toolbox;
1616use Symfony\AI\Fixtures\Movies;
17- use Symfony\AI\Platform\Bridge\OpenAi\Embeddings;
1817use Symfony\AI\Platform\Bridge\OpenAi\PlatformFactory;
1918use Symfony\AI\Platform\Message\Message;
2019use Symfony\AI\Platform\Message\MessageBag;
You can’t perform that action at this time.
0 commit comments