https://github.com/bbc-esq/poor-man-vector-database
Simple GUI to load a PDF/Docx/txt file and have LM Studio Answer based off of it.
https://github.com/bbc-esq/poor-man-vector-database
Last synced: 5 months ago
JSON representation
Simple GUI to load a PDF/Docx/txt file and have LM Studio Answer based off of it.
- Host: GitHub
- URL: https://github.com/bbc-esq/poor-man-vector-database
- Owner: BBC-Esq
- Created: 2023-08-06T20:19:04.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-31T04:41:34.000Z (about 1 year ago)
- Last Synced: 2024-08-01T04:44:22.505Z (about 1 year ago)
- Language: Python
- Size: 120 KB
- Stars: 13
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# [LM Studio](https://github.com/lmstudio-ai) Poor Man's Vector Database
### Extracts text from a document (pdf, docx, txt, py, html, md), and asks LM Studio about it, simulating a vector database.
## Installation
> ‼️ I have only tested it with 🐍[Python 3.10](https://www.python.org/downloads/release/python-31011/) or [Python 3.11](https://www.python.org/downloads/release/python-3116/) (I have not tested above 3.11.).Step 1 - Download the repo files in the latest release.
Step 2 - Open a command prompt in the folder that contains ```main.py``` and create a virtual environment:
```
python -m venv .
```Step 3 - Activate virtual environment
> On Linux or MacOS, run source bin/activate ```source bin/activate``` instead.
```
.\Scripts\activate
```Step 4 - Upgrade Pip
```
python -m pip install --upgrade pip
```Step 5 - Install Requirements
```
pip install -r requirements.txt
```## Usage
Within the virtual environment run:
```
python main.py
```
> ‼️ Don't forget to activate the virtual environment in the proper folder each time you want to use it.# Contact
All suggestions (positive and negative) are welcome. "bbc@chintellalaw.com" or feel free to message me on the [LM Studio Discord Server](https://discord.gg/aPQfnNkxGC).
### Screenshots:
