Giter Site home page Giter Site logo

document-searcher's Introduction

Document searcher

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.

Usage of the app

In the steps below is described how to use the app.

Step 1: Upload PDF files

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.

Step 2: Submit documents

Click on the "Submit documents" button to collect all data from the uploaded PDF files.

Step 3: Search through your document(s)

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.

Any language is supported

The app answers in the same language as the language of your question. Try it out yourself!

Installation of the app

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.

Questions

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!

App structure

This is a tree type app.

document-searcher's People

Contributors

ddijkhuizen avatar jjvandenberg1 avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.