Skip to content

Commit 1f5da88

Browse files
author
Dijana Pavlovic
committed
Fix bash with multiline string
1 parent 7357518 commit 1f5da88

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

docs/intro/tutorials/ai_fastapi_searchbot.rst

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ with semantic search-based cross-chat memory.
186186
"response": "string",
187187
}
188188
189-
1. Implement web search
189+
3. Implement web search
190190
=======================
191191

192192
Now that we have our web app infrastructure in place, let's add some substance
@@ -956,10 +956,10 @@ In this tutorial we'll write queries using :ref:`EdgeQL <ref_intro_edgeql>` and
956956
957957
That concludes our User-related functionality. Next, we need to handle Chats and Messages. Since the process is quite similar to what we've just covered, we won't go into detail. Instead, you can implement these endpoints yourself as an exercise or simply copy the following code if you're in a rush.
958958
959-
.. code-block:: txt
959+
.. code-block:: bash
960960
:class: collapsible
961961
962-
echo 'select Chat {
962+
$ echo 'select Chat {
963963
messages: { role, body, sources },
964964
user := .<chats[is User],
965965
} filter .user.name = <str>$username;
@@ -988,7 +988,8 @@ In this tutorial we'll write queries using :ref:`EdgeQL <ref_intro_edgeql>` and
988988
body,
989989
sources,
990990
chat := .<messages[is Chat]
991-
} filter .chat = chat;' > app/queries/get_messages.edgeql &&
991+
} filter .chat = chat;
992+
' > app/queries/get_messages.edgeql &&
992993
echo 'with
993994
user := (select User filter .name = <str>$username),
994995
update Chat

0 commit comments

Comments
 (0)