@@ -39,11 +39,12 @@ Checkout the repository, start the docker environment and install dependencies:
39
39
``` shell
40
40
git clone
[email protected] :symfony/ai-demo.git
41
41
cd ai-demo
42
+ composer install
42
43
docker compose up -d
43
- docker compose run composer install
44
+ symfony serve -d
44
45
```
45
46
46
- Now you should be able to open https://localhost/ in your browser,
47
+ Now you should be able to open https://localhost:8000 / in your browser,
47
48
and the chatbot UI should be available for you to start chatting.
48
49
49
50
> [ !NOTE]
@@ -61,7 +62,7 @@ echo "OPENAI_API_KEY='sk-...'" > .env.local
61
62
Verify the success of this step by running the following command:
62
63
63
64
``` shell
64
- docker compose exec app bin/ console debug:dotenv
65
+ symfony console debug:dotenv
65
66
```
66
67
67
68
You should be able to see the ` OPENAI_API_KEY ` in the list of environment variables.
@@ -73,13 +74,13 @@ The [Chroma DB](https://www.trychroma.com/) is a vector store that is used to st
73
74
To initialize the Chroma DB, you need to run the following command:
74
75
75
76
``` shell
76
- docker compose exec app bin/ console app:blog:embed -vv
77
+ symfony console app:blog:embed -vv
77
78
```
78
79
79
80
Now you should be able to run the test command and get some results:
80
81
81
82
``` shell
82
- docker compose exec app bin/ console app:blog:query
83
+ symfony console app:blog:query
83
84
```
84
85
85
86
** Don't forget to set up the project in your favorite IDE or editor.**
@@ -115,7 +116,7 @@ To add the server, add the following configuration to your MCP Client's settings
115
116
You can test the MCP server by running the following command to start the MCP client:
116
117
117
118
``` shell
118
- php bin/ console mcp:server
119
+ symfony console mcp:server
119
120
```
120
121
121
122
Then, paste ` {"method":"tools/list","jsonrpc":"2.0","id":1} ` to list the tools available on the MCP server.
0 commit comments