Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/integration-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ concurrency:
cancel-in-progress: true

env:
REQUIRED_PHP_EXTENSIONS: 'mongodb'
REQUIRED_PHP_EXTENSIONS: 'mongodb, redis'

jobs:
examples:
Expand Down
3 changes: 3 additions & 0 deletions examples/.env
Original file line number Diff line number Diff line change
Expand Up @@ -168,3 +168,6 @@ SUPABASE_MATCH_FUNCTION=match_documents
# Pogocache (message store)
POGOCACHE_HOST=http://127.0.0.1:9401
POGOCACHE_PASSWORD=symfony

# Redis (store)
REDIS_HOST=localhost
8 changes: 8 additions & 0 deletions examples/commands/stores.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
use Symfony\AI\Store\Bridge\Neo4j\Store as Neo4jStore;
use Symfony\AI\Store\Bridge\Postgres\Store as PostgresStore;
use Symfony\AI\Store\Bridge\Qdrant\Store as QdrantStore;
use Symfony\AI\Store\Bridge\Redis\Store as RedisStore;
use Symfony\AI\Store\Bridge\SurrealDb\Store as SurrealDbStore;
use Symfony\AI\Store\Bridge\Typesense\Store as TypesenseStore;
use Symfony\AI\Store\Bridge\Weaviate\Store as WeaviateStore;
Expand Down Expand Up @@ -88,6 +89,13 @@
env('QDRANT_SERVICE_API_KEY'),
'symfony',
),
'redis' => static fn (): RedisStore => new RedisStore(
new Redis([
'host' => env('REDIS_HOST'),
'port' => 6379,
]),
'symfony'
),
'surrealdb' => static fn (): SurrealDbStore => new SurrealDbStore(
httpClient: http_client(),
endpointUrl: env('SURREALDB_HOST'),
Expand Down
1 change: 1 addition & 0 deletions examples/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"require": {
"php": ">=8.2",
"ext-pdo": "*",
"ext-redis": "*",
"async-aws/bedrock-runtime": "^1.1",
"codewithkyrian/chromadb-php": "^0.4.0",
"codewithkyrian/transformers": "^0.6.2",
Expand Down
1 change: 0 additions & 1 deletion examples/rag/redis.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
use Symfony\AI\Agent\Toolbox\Tool\SimilaritySearch;
use Symfony\AI\Agent\Toolbox\Toolbox;
use Symfony\AI\Fixtures\Movies;
use Symfony\AI\Platform\Bridge\OpenAi\Embeddings;
use Symfony\AI\Platform\Bridge\OpenAi\PlatformFactory;
use Symfony\AI\Platform\Message\Message;
use Symfony\AI\Platform\Message\MessageBag;
Expand Down