AzionVectorStore
is used to manage and search through a collection of documents using vector embeddings, directly on Azion’s Edge Plataform using Edge SQL.
This guide provides a quick overview for getting started with Azion EdgeSQL vector stores. For detailed documentation of all AzionVectorStore
features and configurations head to the API reference.
Overview
Integration details
Class | Package | [PY support] | Version |
---|---|---|---|
AzionVectorStore | @langchain/community | ❌ |
Setup
To use theAzionVectorStore
vector store, you will need to install the @langchain/community
package. Besides that, you will need an Azion account and a Token to use the Azion API, configuring it as environment variable AZION_TOKEN
. Further information about this can be found in the Documentation.
This guide will also use OpenAI embeddings, which require you to install the @langchain/openai
integration package. You can also use other supported embeddings models if you wish.
Credentials
Once you’ve done this set the AZION_TOKEN environment variable:Instantiation
Manage vector store
Add items to vector store
Delete items from vector store
Query vector store
Once your vector store has been created and the relevant documents have been added you will most likely wish to query it during the running of your chain or agent.Query directly
Performing a simple similarity search can be done as follows:Query by turning into retriever
You can also transform the vector store into a retriever for easier usage in your chains.Usage for retrieval-augmented generation
For guides on how to use this vector store for retrieval-augmented generation (RAG), see the following sections:- Tutorials: working with external knowledge.
- How-to: Question and answer with RAG
- Retrieval conceptual docs