mirror of
https://github.com/technovangelist/videoprojects.git
synced 2026-09-10 07:16:19 -04:00
928 B
928 B
Build RAG with Python
- Install the magic tools:
- Debian/Ubuntu
:sudo apt-get install libmagic1` - Windows: You'll need DLLs for libmagic. @julian-r maintains a pypi package with the DLLs, you can fetch it with:
pip install python-magic-bin - Mac:
brew install libmagic
- Get started by installing the requirements:
pip install -r requirements.txt - Make sure you have the models listed in config.ini. so for nomic-embed-text, run
ollama pull nomic-embed-text. Update the config to show whatever models you want to use. - Then run ChromaDB in a separate terminal:
chroma run --host localhost --port 8000 --path ../vectordb-stores/chromadb - Edit the list of docs in
sourcedocs.txt - Import the docs:
python3 import.py - Perform a search:
python3 search.py <yoursearch>
