Plugin Parameters
See plugin common configurations for configuration options available to all plugins.
embeddings_provider
Provider used to generate the embedding for vector retrieval.
azure_openai
Azure OpenAI endpoint and authentication used to generate embeddings.
endpoint
Azure OpenAI embedding model endpoint.
api_key
Azure OpenAI API key. Encrypted at rest when data encryption is enabled for gateway configuration storage.
vector_search_provider
Provider used to retrieve context with the generated embedding.
azure_ai_search
Azure AI Search endpoint and authentication used for vector retrieval.
endpoint
Azure AI Search endpoint.
api_key
Azure AI Search API key. Encrypted at rest when data encryption is enabled for gateway configuration storage.
ssl_verify
If true, verify TLS certificates when calling the embedding and vector search endpoints. Set to false only for temporary development or migration with an untrusted certificate.
Introduced in API7 Enterprise 3.9.10 and APISIX 3.17.0.
Request Body Parameters
Configure the ai_rag request object with the following fields.
ai_rag
Retrieval input used to generate an embedding and search for context before the LLM request is proxied.
embeddings
Input sent to Azure OpenAI to generate the embedding used for retrieval.
model
Azure OpenAI embedding deployment name. Required in the request body when the configured endpoint uses the Azure OpenAI v1 API. A legacy deployment-specific endpoint already identifies the deployment in its URL.
input
Text used to generate the embedding for vector retrieval. Include the user request separately in the LLM protocol's prompt field, such as
messagesfor Chat Completions.user
A unique identifier representing your end user, which helps in monitoring and detecting abuse.
encoding_format
vaild vaule:
floatorbase64Data type of the returned embeddings.
dimensions
Requested number of dimensions in the embedding output. When configured, it must match the Azure AI Search vector field dimensions. The dimensions for
text-embedding-ada-002are fixed at 1536. Fortext-embedding-3-smallandtext-embedding-3-large, supported values range from 1 to 1536 and 3072, respectively.
vector_search
Azure AI Search vector retrieval input.
fields
Name of the Azure AI Search vector field used for retrieval.