nit: add kg graph nb to docs 
diff --git a/docs/core_modules/data_modules/index/modules.md b/docs/core_modules/data_modules/index/modules.md
index eef15d1749641..e55884f0fd344 100644
--- a/docs/core_modules/data_modules/index/modules.md
+++ b/docs/core_modules/data_modules/index/modules.md
@@ -10,6 +10,8 @@ Tree Index <./index_guide.md>
 Keyword Table Index <./index_guide.md>
 /examples/index_structs/knowledge_graph/KnowledgeGraphDemo.ipynb
 /examples/index_structs/knowledge_graph/KnowledgeGraphIndex_vs_VectorStoreIndex_vs_CustomIndex_combined.ipynb
+/examples/query_engine/knowledge_graph_query_engine.ipynb
+/examples/query_engine/knowledge_graph_rag_query_engine.ipynb
 REBEL + Knowledge Graph Index <https://colab.research.google.com/drive/1G6pcR0pXvSkdMQlAK_P-IrYgo-_staxd?usp=sharing>
 SQL Index </examples/index_structs/struct_indices/SQLIndexDemo.ipynb>
 /examples/index_structs/struct_indices/duckdb_sql_query.ipynb
diff --git a/docs/core_modules/query_modules/query_engine/modules.md b/docs/core_modules/query_modules/query_engine/modules.md
index 85685ca88392a..533eeabd853e4 100644
--- a/docs/core_modules/query_modules/query_engine/modules.md
+++ b/docs/core_modules/query_modules/query_engine/modules.md
@@ -17,6 +17,7 @@ maxdepth: 1
 /examples/query_engine/json_query_engine.ipynb
 /examples/query_engine/pandas_query_engine.ipynb
 /examples/query_engine/knowledge_graph_query_engine.ipynb
+/examples/query_engine/knowledge_graph_rag_query_engine.ipynb
 ```
 
 ## Advanced
diff --git a/llama_index/graph_stores/nebulagraph.py b/llama_index/graph_stores/nebulagraph.py
index bcc74373240e6..e972964a668e0 100644
--- a/llama_index/graph_stores/nebulagraph.py
+++ b/llama_index/graph_stores/nebulagraph.py
@@ -428,7 +428,7 @@ def get_flat_rel_map(
                 f"    subj,"
                 f"    REDUCE(acc = collect(NULL), l in rels | acc + l) AS "
                 f"        flattened_rels"
-                f"RETURN"
+                f" RETURN"
                 f"  subj,"
                 f"  REDUCE(acc = subj, l in flattened_rels | acc + ', ' + l ) AS "
                 f"      flattened_rels"
