# multilingual-dokugpt Chat with multilingual documents in a language you prefer ## What it is `multilingual-dokugpt` is a quasi-localgpt that makes use of `langchain`, generates embeddings `locally` and save them in a Chroma vectorstore. It's `quasi-local` since querying is still made through a remote service (OPENAI or compatible). ## Features * Handle documents (think of books or manuals) in multiple languages and multiple formats (.txt or plaintext in other suffixes, .docx, .pdf, .epub) * Can use PawanOsman reverse proxy free api-key of the form `pk-....`. Refer to `.env.sample` ## Demo [https://huggingface.co/spaces/mikeee/multilingual-dokugpt](https://huggingface.co/spaces/mikeee/multilingual-dokugpt) ## Usage * Clone this repo ``` git clone https://github.com/ffreemt/multilingual-dokugpt cd multilingual-dokugpt ``` * [Optional] Create a `venv` e.g. ``` python -m venv .venv call .venv\Scripts\activate # Windows # source .venv/bin/activate # Linux/Mac ``` * Install packages ``` python -m pip install -r requirements.txt ``` * Setup OPENAI_API_KEY e.g. ``` set OPENAI_API_KEY=sk... # Windows cmd # export OPENAI_API_KEY=sk... # bash or setup .env (refer to `.env.sample`) ``` * Start the program ``` python main.py ``` * Browse to ``` http://127.0.0.1:7860 ``` ## TODO * Make it a true localgpt by replacing remote querying with a local `llm`. ## License `multilingual-dokugpt` is released under the MIT License. See the LICENSE file for more details.