You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/source/scrapers/llm.rst
+30Lines changed: 30 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -194,3 +194,33 @@ We can also pass a model instance for the chat model and the embedding model. Fo
194
194
"model_instance": embedder_model_instance
195
195
}
196
196
}
197
+
198
+
Other LLM models
199
+
^^^^^^^^^^^^^^^^
200
+
201
+
We can also pass a model instance for the chat model and the embedding model through the **model_instance** parameter.
202
+
This feature enables you to utilize a Langchain model instance.
203
+
If you are familiar with Langchain, you can easily find the `chat model list <https://python.langchain.com/v0.2/docs/integrations/chat/#all-chat-models>`_
204
+
and `embedding model list <https://python.langchain.com/v0.2/docs/integrations/text_embedding/#all-embedding-models>`_.
205
+
206
+
For instance, consider **chat model** Moonshot. We can integrate it in the following manner:
207
+
208
+
.. code-block:: python
209
+
210
+
from langchain_community.chat_models.moonshot import MoonshotChat
211
+
212
+
# The configuration parameters are contingent upon the specific model you select
0 commit comments