Prerequisites
- A deployment (refer to how to set up an application for deployment) and details on hosting options.
- API keys for your embedding provider (in this case, OpenAI).
langchain >= 0.3.8
(if you specify using the string format below).
Steps
- Update your
langgraph.json
configuration file to include the store configuration:
- Uses OpenAI’s text-embedding-3-small model for generating embeddings
- Sets the embedding dimension to 1536 (matching the model’s output)
- Indexes all fields in your stored data (
["$"]
means index everything, or specify specific fields like["text", "metadata.title"]
)
- To use the string embedding format above, make sure your dependencies include
langchain >= 0.3.8
: