This app demonstrates how to create your own AI-powered VIKTOR app to search through documents, using AzureAI.
The app can be published and installed in your own VIKTOR environment. The app makes uses of the API from AzureAI (similar to what ChatGPT is running on), ensuring your data is safe and is not used to train any model.
In the steps below is described how to use the app.
Upload your PDF documents. It is possible to submit multiple documents at once. The PDF files are processed automatically. Depending on the size of the document, this could take a while.
Click on the "Submit documents" button to collect all data from the uploaded PDF files.
Ask any question to your document(s). The question is answered using AzureAI. The relevant text from your document is shown in the sources. The question is answered based on the text in the sources.
The app answers in the same language as the language of your question. Try it out yourself!
Simply install the app like any other VIKTOR application. Refer to the VIKTOR documentation of how this is done. Additionally, the AzureAI model needs to be hosted and set up. More information about how to set up your own AzureAI model, can be found on the website of Microsoft. The process is quite straighforward and should not take longer than 10-15 minutes.
For this application two models are required:
- Completion model. For example: gpt-3.5-turbo or gpt-4-turbo
- Embeddings model. For example: ada-2
Make sure the names of the models in your AzureAI environment resemble the names in the config.py file, referred to as COMPLETIONS_MODEL and EMBEDDINGS_MODEL.
Once the app is created, three environment variables need to be set: ENDPOINT, API_KEY and API_VERSION. Please refer to our documentation for how to set up the environment variables in the app.
For any questions about the app refer to our community forum. Feel free to ask any questions about the installation, usage or feature requests here!
This is a tree type app.# revit_chat