Skip to content

Commit

Permalink
Fix bash with multiline string
Browse files Browse the repository at this point in the history
  • Loading branch information
diksipav committed Feb 28, 2025
1 parent 7357518 commit 1f5da88
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions docs/intro/tutorials/ai_fastapi_searchbot.rst
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ with semantic search-based cross-chat memory.
"response": "string",
}
1. Implement web search
3. Implement web search
=======================

Now that we have our web app infrastructure in place, let's add some substance
Expand Down Expand Up @@ -956,10 +956,10 @@ In this tutorial we'll write queries using :ref:`EdgeQL <ref_intro_edgeql>` and
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.
.. code-block:: txt
.. code-block:: bash
:class: collapsible
echo 'select Chat {
$ echo 'select Chat {
messages: { role, body, sources },
user := .<chats[is User],
} filter .user.name = <str>$username;
Expand Down Expand Up @@ -988,7 +988,8 @@ In this tutorial we'll write queries using :ref:`EdgeQL <ref_intro_edgeql>` and
body,
sources,
chat := .<messages[is Chat]
} filter .chat = chat;' > app/queries/get_messages.edgeql &&
} filter .chat = chat;
' > app/queries/get_messages.edgeql &&
echo 'with
user := (select User filter .name = <str>$username),
update Chat
Expand Down

0 comments on commit 1f5da88

Please sign in to comment.