This commit is contained in:
Erick Friis
2024-01-30 11:39:47 -08:00
parent e62779eb73
commit f693c115cc

View File

@@ -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?")