(note) assumes that you have setup a route in the gateway called 'embeddings'from langchain.embeddings import JavelinAIGatewayEmbeddingsfrom langchain.embeddings.openai import OpenAIEmbeddingsembeddings = JavelinAIGatewayEmbeddings(    gateway_uri="http://localhost:8000", # replace with service URL or host/port of Javelin    route="embeddings",)print(embeddings.embed_query("hello"))print(embeddings.embed_documents(["hello"]))    ---------------------------------------------------------------------------    ImportError                               Traceback (most recent call last)    Cell In[9], line 1    ----> 1 from langchain.embeddings import JavelinAIGatewayEmbeddings          2 from langchain.embeddings.openai import OpenAIEmbeddings          4 embeddings = JavelinAIGatewayEmbeddings(          5     gateway_uri="http://localhost:8000", # replace with service URL or host/port of Javelin          6     route="embeddings",          7 )    ImportError: cannot import name 'JavelinAIGatewayEmbeddings' from 'langchain.embeddings' (/usr/local/Caskroom/miniconda/base/lib/python3.11/site-packages/langchain/embeddings/__init__.py)Step 5: Chat ExampleThis section illustrates how to interact with the Javelin AI Gateway to facilitate a chat with a large language model. Here is a Python script that demonstrates this:
This Jupyter Notebook will explore how to interact with the Javelin AI Gateway using the Python SDK.
This Jupyter Notebook will explore how to interact with the Javelin AI Gateway using the Python SDK. ->: (note) assumes that you have setup a route in the gateway called 'embeddings'from langchain.embeddings import JavelinAIGatewayEmbeddingsfrom langchain.embeddings.openai import OpenAIEmbeddingsembeddings = JavelinAIGatewayEmbeddings(    gateway_uri="http://localhost:8000", # replace with service URL or host/port of Javelin    route="embeddings",)print(embeddings.embed_query("hello"))print(embeddings.embed_documents(["hello"]))    ---------------------------------------------------------------------------    ImportError                               Traceback (most recent call last)    Cell In[9], line 1    ----> 1 from langchain.embeddings import JavelinAIGatewayEmbeddings          2 from langchain.embeddings.openai import OpenAIEmbeddings          4 embeddings = JavelinAIGatewayEmbeddings(          5     gateway_uri="http://localhost:8000", # replace with service URL or host/port of Javelin          6     route="embeddings",          7 )    ImportError: cannot import name 'JavelinAIGatewayEmbeddings' from 'langchain.embeddings' (/usr/local/Caskroom/miniconda/base/lib/python3.11/site-packages/langchain/embeddings/__init__.py)Step 5: Chat ExampleThis section illustrates how to interact with the Javelin AI Gateway to facilitate a chat with a large language model. Here is a Python script that demonstrates this: