You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Make this work better with Azure Open AI * Fix typo * Update README.md Co-authored-by: Derek Legenzoff <delegenz@microsoft.com> --------- Co-authored-by: isafulf <51974293+isafulf@users.noreply.github.com> Co-authored-by: Derek Legenzoff <delegenz@microsoft.com>
export OPENAI_EMBEDDINGMODEL_DEPLOYMENTID=<Name of text-embedding-ada-002 model deployment>
79
+
export OPENAI_METADATA_EXTRACTIONMODEL_DEPLOYMENTID=<Name of deployment of model for metatdata>
80
+
export OPENAI_COMPLETIONMODEL_DEPLOYMENTID=<Name of general model deployment used for completion>
81
+
75
82
# Add the environment variables for your chosen vector DB.
76
83
# Some of these are optional; read the provider's setup docs in /docs/providers for more information.
77
84
@@ -237,6 +244,17 @@ The API requires the following environment variables to work:
237
244
|`BEARER_TOKEN`| Yes | This is a secret token that you need to authenticate your requests to the API. You can generate one using any tool or method you prefer, such as [jwt.io](https://jwt.io/). |
238
245
|`OPENAI_API_KEY`| Yes | This is your OpenAI API key that you need to generate embeddings using the `text-embedding-ada-002` model. You can get an API key by creating an account on [OpenAI](https://openai.com/). |
239
246
247
+
248
+
### Using the plugin with Azure OpenAI
249
+
250
+
The Azure Open AI uses URLs that are specific to your resource and references models not by model name but by the deployment id. As a result, you need to set additional environment variables for this case.
251
+
252
+
In addition to the OPENAI_API_BASE (your specific URL) and OPENAI_API_TYPE (azure), you should also set OPENAI_EMBEDDINGMODEL_DEPLOYMENTID which specifies the model to use for getting embeddings on upsert and query. For this, we recommend deploying text-embedding-ada-002 model and using the deployment name here.
253
+
254
+
If you wish to use the data preparation scripts, you will also need to set OPENAI_METADATA_EXTRACTIONMODEL_DEPLOYMENTID, used for metadata extraction and
255
+
OPENAI_COMPLETIONMODEL_DEPLOYMENTID, used for PII handling.
256
+
257
+
240
258
### Choosing a Vector Database
241
259
242
260
The plugin supports several vector database providers, each with different features, performance, and pricing. Depending on which one you choose, you will need to use a different Dockerfile and set different environment variables. The following sections provide brief introductions to each vector database provider.
0 commit comments