diff --git a/.changeset/khaki-jeans-end.md b/.changeset/khaki-jeans-end.md
new file mode 100644
index 0000000000000000000000000000000000000000..8cd9e095e986f652b2ab2ce9ed6bf1b3bef3c7f1
--- /dev/null
+++ b/.changeset/khaki-jeans-end.md
@@ -0,0 +1,5 @@
+---
+"create-llama": patch
+---
+
+Add missing environment variable config for web data source
diff --git a/.changeset/popular-berries-stare.md b/.changeset/popular-berries-stare.md
new file mode 100644
index 0000000000000000000000000000000000000000..8e8a38346d2f6493399b914965f39a8aa1db8098
--- /dev/null
+++ b/.changeset/popular-berries-stare.md
@@ -0,0 +1,5 @@
+---
+"create-llama": patch
+---
+
+Fixed llama-index package versions
diff --git a/helpers/env-variables.ts b/helpers/env-variables.ts
index 2b084f3a5aee66f5a94f60fe5876c3f4009738d6..b65b0df29d1e986abd9574ec8ba73490314e2761 100644
--- a/helpers/env-variables.ts
+++ b/helpers/env-variables.ts
@@ -5,6 +5,7 @@ import {
   TemplateDataSource,
   TemplateFramework,
   TemplateVectorDB,
+  WebSourceConfig,
 } from "./types";
 
 type EnvVar = {
@@ -105,18 +106,22 @@ const getDataSourceEnvs = (
 ) => {
   switch (dataSource.type) {
     case "web":
+      const config = dataSource.config as WebSourceConfig;
       return [
         {
           name: "BASE_URL",
           description: "The base URL to start web scraping.",
+          value: config.baseUrl,
         },
         {
           name: "URL_PREFIX",
           description: "The prefix of the URL to start web scraping.",
+          value: config.baseUrl,
         },
         {
           name: "MAX_DEPTH",
           description: "The maximum depth to scrape.",
+          value: config.depth?.toString(),
         },
       ];
     case "file":
diff --git a/templates/types/simple/fastapi/pyproject.toml b/templates/types/simple/fastapi/pyproject.toml
index 45c3ae567a6a1b7392255a6aa49fe896dbb12f3f..5dae9d818b5afd85cab75d35379ae2a56dd72cea 100644
--- a/templates/types/simple/fastapi/pyproject.toml
+++ b/templates/types/simple/fastapi/pyproject.toml
@@ -10,7 +10,9 @@ python = "^3.11,<3.12"
 fastapi = "^0.109.1"
 uvicorn = { extras = ["standard"], version = "^0.23.2" }
 python-dotenv = "^1.0.0"
-llama-index = "^0.10.7"
+llama-index = "0.10.15"
+llama-index-core = "0.10.15"
+llama-index-agent-openai = "0.1.5"
 
 [build-system]
 requires = ["poetry-core"]
diff --git a/templates/types/streaming/fastapi/pyproject.toml b/templates/types/streaming/fastapi/pyproject.toml
index 45c3ae567a6a1b7392255a6aa49fe896dbb12f3f..5dae9d818b5afd85cab75d35379ae2a56dd72cea 100644
--- a/templates/types/streaming/fastapi/pyproject.toml
+++ b/templates/types/streaming/fastapi/pyproject.toml
@@ -10,7 +10,9 @@ python = "^3.11,<3.12"
 fastapi = "^0.109.1"
 uvicorn = { extras = ["standard"], version = "^0.23.2" }
 python-dotenv = "^1.0.0"
-llama-index = "^0.10.7"
+llama-index = "0.10.15"
+llama-index-core = "0.10.15"
+llama-index-agent-openai = "0.1.5"
 
 [build-system]
 requires = ["poetry-core"]