Skip to content

Commit 2dfcf7a

Browse files
authored
Add symfony/ai-*-store recipes (#1503)
* Add recipes for Symfony AI store bridges (0.1) Add 21 store bridge recipes that append configuration to ai.yaml under the ai.store key using add-lines directive. Stores: Azure Search, Cache, ChromaDB, ClickHouse, Cloudflare, Elasticsearch, ManticoreSearch, MariaDB, Meilisearch, Milvus, MongoDB, Neo4j, OpenSearch, Pinecone, Postgres, Qdrant, Redis, Supabase, SurrealDB, Typesense, Weaviate * Remove optional fields from AI store recipes Only set required connection parameters, let users configure optional fields like vector_field, dimensions, etc. * Simplify AI store recipes to only required fields Remove fields that have defaults (table, collection, index_name, etc. default to the store name like 'default'). * Use separate YAML config files for AI store recipes Switch from add-lines to copy-from-recipe with dedicated config/packages/ai.yaml files for each store. * Rename store YAML files to unique names Use ai_<store>_store.yaml instead of ai.yaml to avoid conflicts when multiple stores are installed.
1 parent c3f82df commit 2dfcf7a

File tree

42 files changed

+295
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+295
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
ai:
2+
store:
3+
azuresearch:
4+
default:
5+
endpoint: '%env(AZURE_SEARCH_ENDPOINT)%'
6+
api_key: '%env(AZURE_SEARCH_API_KEY)%'
7+
api_version: '2024-07-01'
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"copy-from-recipe": {
3+
"config/": "%CONFIG_DIR%/"
4+
},
5+
"env": {
6+
"#1": "AZURE_SEARCH_ENDPOINT=",
7+
"#2": "AZURE_SEARCH_API_KEY="
8+
}
9+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
ai:
2+
store:
3+
cache:
4+
default:
5+
service: 'cache.app'
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"copy-from-recipe": {
3+
"config/": "%CONFIG_DIR%/"
4+
}
5+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
ai:
2+
store:
3+
chromadb:
4+
default:
5+
collection: 'my_collection'
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"copy-from-recipe": {
3+
"config/": "%CONFIG_DIR%/"
4+
}
5+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
ai:
2+
store:
3+
clickhouse:
4+
default:
5+
dsn: '%env(CLICKHOUSE_DSN)%'
6+
database: 'default'
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"copy-from-recipe": {
3+
"config/": "%CONFIG_DIR%/"
4+
},
5+
"env": {
6+
"#1": "CLICKHOUSE_DSN="
7+
}
8+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
ai:
2+
store:
3+
cloudflare:
4+
default:
5+
account_id: '%env(CLOUDFLARE_ACCOUNT_ID)%'
6+
api_key: '%env(CLOUDFLARE_API_KEY)%'
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"copy-from-recipe": {
3+
"config/": "%CONFIG_DIR%/"
4+
},
5+
"env": {
6+
"#1": "CLOUDFLARE_ACCOUNT_ID=",
7+
"#2": "CLOUDFLARE_API_KEY="
8+
}
9+
}

0 commit comments

Comments
 (0)