Skip to content

Commit

Permalink
fix: formatting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
jamescalam committed Sep 1, 2024
1 parent d4d3590 commit 97a9620
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
5 changes: 2 additions & 3 deletions docs/source/route_layer/dynamic-routes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ associated with that route.

For example we could provide a dynamic route with associated utterances:

::
.. code:: python
"what is x to the power of y?"
"what is 9 to the power of 4?"
Expand All @@ -26,7 +26,7 @@ For example we could provide a dynamic route with associated utterances:
and we could also provide the route with a schema outlining key features
of the function:

::
.. code:: python
def power(base: float, exponent: float) -> float:
"""Raise base to the power of exponent.
Expand Down Expand Up @@ -79,7 +79,6 @@ it correctly.
.. parsed-literal::
'17:57'
Expand Down
4 changes: 2 additions & 2 deletions docs/source/route_layer/local-execution.rst
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ hardware
Initializing Dynamic Routes
===========================
---------------------------

Similar to the ``02-dynamic-routes.ipynb`` notebook, we will be
initializing some dynamic routes that make use of LLMs for function
Expand Down Expand Up @@ -249,7 +249,7 @@ a ``HuggingFaceEncoder`` with ``sentence-transformers/all-MiniLM-L6-v2``
encoder = HuggingFaceEncoder()
``llama.cpp`` LLM
=================
-----------------

From here, we can go ahead and instantiate our ``llama-cpp-python``
``llama_cpp.Llama`` LLM, and then pass it to the
Expand Down
6 changes: 3 additions & 3 deletions docs/source/route_layer/save-load-from-file.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ The saved files contain all the information needed to initialize new
route layers. If we are using a remote index, we can use the
`sync features`_ to keep the route layer in sync with the index.

.. _sync features: sync.rst
.. _sync features: sync.html

Full Example
---------------
Expand All @@ -45,7 +45,7 @@ load a route layer from file.

We start by installing the library:

.. code:: ipython3
.. code:: none
!pip install -qU semantic-router
Expand All @@ -54,7 +54,7 @@ Define Route

First let's create a list of routes:

.. code:: ipython3
.. code:: python
from semantic_router import Route
Expand Down
2 changes: 2 additions & 0 deletions docs/source/route_layer/sync.rst
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,5 @@ You can try this yourself by running the following:
)
rl = RouteLayer(encoder=encoder, routes=routes, index=pc_index)
When initializing the `PineconeIndex` object, we can specify the `sync` parameter.

0 comments on commit 97a9620

Please sign in to comment.