mirror of
https://github.com/hwchase17/langchain.git
synced 2026-01-24 05:50:18 +00:00
readme
This commit is contained in:
@@ -10,18 +10,7 @@ pip install -U langchain-nomic
|
||||
|
||||
And you should configure credentials by setting the following environment variables:
|
||||
|
||||
* TODO: fill this out
|
||||
|
||||
## Chat Models
|
||||
|
||||
`ChatNomic` class exposes chat models from Nomic.
|
||||
|
||||
```python
|
||||
from langchain_nomic import ChatNomic
|
||||
|
||||
llm = ChatNomic()
|
||||
llm.invoke("Sing a ballad of LangChain.")
|
||||
```
|
||||
* `NOMIC_API_KEY`: your nomic API key
|
||||
|
||||
## Embeddings
|
||||
|
||||
@@ -31,15 +20,4 @@ llm.invoke("Sing a ballad of LangChain.")
|
||||
from langchain_nomic import NomicEmbeddings
|
||||
|
||||
embeddings = NomicEmbeddings()
|
||||
embeddings.embed_query("What is the meaning of life?")
|
||||
```
|
||||
|
||||
## LLMs
|
||||
`NomicLLM` class exposes LLMs from Nomic.
|
||||
|
||||
```python
|
||||
from langchain_nomic import NomicLLM
|
||||
|
||||
llm = NomicLLM()
|
||||
llm.invoke("The meaning of life is")
|
||||
```
|
||||
embeddings.embed_query("What is the meaning of life?")
|
||||
Reference in New Issue
Block a user